From: Eric Sandeen Date: Mon, 16 Sep 2002 20:38:02 +0000 (+0000) Subject: Bump to 2.3.3 X-Git-Tag: v2.4.0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0640ee149b5527edcf4c6c80c9e36d0770c37632;p=thirdparty%2Fxfsprogs-dev.git Bump to 2.3.3 --- diff --git a/VERSION b/VERSION index 195a8efa3..156b7c3c8 100644 --- a/VERSION +++ b/VERSION @@ -3,5 +3,5 @@ # PKG_MAJOR=2 PKG_MINOR=3 -PKG_REVISION=2 +PKG_REVISION=3 PKG_BUILD=0 diff --git a/doc/CHANGES b/doc/CHANGES index 80ede90b4..8ebb2b280 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,3 +1,7 @@ +xfsprogs-2.3.3 (16 September 2002) + - Fix mkfs bug when optimizing AG size on striped devices, + ASSERT(agcount != 0) tripped on single-ag filesystems. + xfsprogs-2.3.2 (10 September 2002) - Use pread/pwrite instead of lseek + read/write. diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index d67e97862..0e67fc1c5 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -1486,12 +1486,13 @@ main(int argc, char **argv) usage(); } agsize = XFS_AG_MIN_BLOCKS(blocklog); - if (dblocks < agsize) + if (dblocks < agsize) { agcount = 1; - else + agsize = dblocks; + } else { agcount = dblocks / agsize; - - agsize = dblocks / agcount + (dblocks % agcount != 0); + agsize = dblocks / agcount +(dblocks % agcount != 0); + } } /* @@ -1637,15 +1638,20 @@ main(int argc, char **argv) } } } - if ((agsize % dswidth) == 0) { + if (((agsize % dswidth) == 0) && (agcount > 1)) { /* This is a non-optimal configuration because all AGs - * start on the same disk in the stripe. Decreasing + * start on the same disk in the stripe. Changing * the AG size by one sunit will guarantee that this - * does not happen + * does not happen. */ tmp_agsize = agsize - dsunit; - if (tmp_agsize < XFS_AG_MIN_BLOCKS(blocklog)) + if (tmp_agsize < XFS_AG_MIN_BLOCKS(blocklog)) { tmp_agsize = agsize + dsunit; + if (dblocks < agsize) { + /* oh well, nothing to do */ + tmp_agsize = agsize; + } + } if (daflag || dasize) { fprintf(stderr, "Warning: AG size is a multiple of stripe width. This can cause performance\n\