]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Get the units right for a forced 32K aligned v2 log stripe size.
authorNathan Scott <nathans@sgi.com>
Mon, 5 Apr 2004 02:30:23 +0000 (02:30 +0000)
committerNathan Scott <nathans@sgi.com>
Mon, 5 Apr 2004 02:30:23 +0000 (02:30 +0000)
mkfs/xfs_mkfs.c

index 86b0f3e4f31c23db10432a8e57b4867b8a2d9268..61c1f65bc5a107fb08d5eb9808003cb42de16249 100644 (file)
@@ -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"));
        }