]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: log stripe unit fails to influence default log size
authorDave Chinner <dchinner@redhat.com>
Tue, 24 Feb 2015 04:05:25 +0000 (15:05 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 24 Feb 2015 04:05:25 +0000 (15:05 +1100)
commitbd76b93e4315982575f78f3e68238396ff636dee
treeaee237b0fb2979c30414e0e32dddf09d7915639d
parent0ab7cbc83f59c8aea8cdc98454a978848af6a41a
mkfs: log stripe unit fails to influence default log size

This fails on a 4GB, 4k physical sector size device:

# mkfs.xfs -f -l version=2,su=256k /dev/ram1
log size 2560 blocks too small, minimum size is 3264 blocks
....

The combination of 4k sectors and a log stripe unit increase the
minimum size of the log.  We should be automatically calculating an
appropriate, valid log size when the user does not specify it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
mkfs/xfs_mkfs.c