From: Nathan Scott Date: Mon, 5 Apr 2004 02:30:23 +0000 (+0000) Subject: Get the units right for a forced 32K aligned v2 log stripe size. X-Git-Tag: v2.7.0~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51d0582680b4dbc52e1b5e2d97857d1c1afe85b;p=thirdparty%2Fxfsprogs-dev.git Get the units right for a forced 32K aligned v2 log stripe size. --- diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 86b0f3e4f..61c1f65bc 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -1793,7 +1793,7 @@ an AG size that is one stripe unit smaller, for example %llu.\n"), fprintf(stderr, _("log stripe unit (%d bytes) is too large (maximum is 256KiB)\n"), (lsunit * blocksize)); - lsunit = 32 * 1024; + lsunit = (32 * 1024) >> blocklog; fprintf(stderr, _("log stripe unit adjusted to 32KiB\n")); }