On Wed, Sep 16, 2020 at 10:40:56PM +0200, Pavel Reichl wrote: > When a too-small device is created with stripe geometry, we hit an > assert in align_ag_geometry(): > > mkfs.xfs: xfs_mkfs.c:2834: align_ag_geometry: Assertion `cfg->agcount != 0' failed. > > This is because align_ag_geometry() finds that the size of the last > (only) AG is too small, and attempts to trim it off. Obviously 0 > AGs is invalid, and we hit the ASSERT. > > Reported-by: Zdenek Kabelac <zkabelac@xxxxxxxxxx> > Suggested-by: Dave Chinner <dchinner@xxxxxxxxxx> > Signed-off-by: Pavel Reichl <preichl@xxxxxxxxxx> Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx>