]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: don't warn about log sunit size if it was auto-discovered
authorEric Sandeen <sandeen@sandeen.net>
Wed, 29 Oct 2014 05:35:02 +0000 (16:35 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 29 Oct 2014 05:35:02 +0000 (16:35 +1100)
commit392e896e41fdaffd6fcc51e270a61b91bf9ff2fe
treeea7a3173260259936f1890752a4a4814429061c9
parente21c11e3bac9d37fa404ae28b36bac6989b1623b
mkfs: don't warn about log sunit size if it was auto-discovered

Today, users doing a bare mkfs on storage with a large default
stripe size may be surprised to get this warning:

 log stripe unit (%d bytes) is too large (maximum is 256KiB
 log stripe unit adjusted to 32KiB

through no fault of their own.  The fallback is appropriate
and harmless, and there's no need to warn about this in the
defaults case.

However, we keep the warning if a large log stripe unit was
specified by the user on the commandline.

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