Send description of this patch.
There are two limitation for mkfs.xfs -nsize/log option:
1) directory block size must be a power of 2 size.
2) it can't be less than a file system block size.
Current man page don't include the above information. User could
be confused with errors, say "Illegal value xxx for -n size option", but
they can't find out the cause by checking the man page.
The patch adds the two limitations to the manpage.
On 10-04-26 19:53, Wengang Wang wrote:
> Signed-off-by: Wengang Wang <wen.gang.wang@xxxxxxxxxx>
> man/man8/mkfs.xfs.8 | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
> diff --git a/man/man8/mkfs.xfs.8 b/man/man8/mkfs.xfs.8
> index 4b147e9..bdaa153 100644
> --- a/man/man8/mkfs.xfs.8
> +++ b/man/man8/mkfs.xfs.8
> @@ -478,6 +478,8 @@ in bytes with
> or as a base two logarithm
> .I value
> .RB "with " log= .
> +The block size must be a power of 2 size and cannot be made less than the
> +filesystem block size.
> The default size
> .I value
> for version 2 directories is 4096 bytes (4 KiB),
> xfs mailing list