btrfs-progs: doc: fix incorrect format of 'l' option in mkfs.btrfs
Subsystems (2)
PATCH 1/1 btrfs-progs: doc: fix incorrect format of 'l' option in mkfs.btrfs
The format of 'l' option in mkfs.btrfs.txt is wrong.
And, when the head of the character string is 65536, the following warning is displayed.
$ make
Making all in Documentation
[ASCII] mkfs.btrfs.xml
asciidoc: WARNING: mkfs.btrfs.xml.tmp1: line 67: list item index: expected 1 got 65536
[XMLTO] mkfs.btrfs.8
[GZ] mkfs.btrfs.8.gz
rm mkfs.btrfs.8 mkfs.btrfs.xmlSo, fix it.
--- Documentation/mkfs.btrfs.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Documentation/mkfs.btrfs.txt +3 -4
@@ -59,19 +59,18 @@ By default, mkfs.btrfs will not write to the device if it suspects that there is a filesystem or partition table on the device already. -n|--nodesize <size> -+ + -l|--leafsize <size>:: Specify the nodesize, the tree block size in which btrfs stores data. The default value is 16KB (16384) or the page size, whichever is -bigger. Must be a multiple of the sectorsize, but not larger than -65536. Leafsize always equals nodesize and the options are aliases. +bigger. Must be a multiple of the sectorsize, but not larger than 65536. +Leafsize always equals nodesize and the options are aliases. -L|--label <name>:: Specify a label for the filesystem. + NOTE: <name> should be less than 256 characters. - -m|--metadata <profile>:: Specify how metadata must be spanned across the devices specified. Valid values are 'raid0', 'raid1', 'raid5', 'raid6', 'raid10', 'single' or 'dup'.
Signature · 1 line
2.1.0
Hi Tsutomu,
Quoted 12 lines · Tsutomu Itoh
The format of 'l' option in mkfs.btrfs.txt is wrong.
And, when the head of the character string is 65536, the following warning is displayed.$ make Making all in Documentation [ASCII] mkfs.btrfs.xml asciidoc: WARNING: mkfs.btrfs.xml.tmp1: line 67: list item index: expected 1 got 65536 [XMLTO] mkfs.btrfs.8 [GZ] mkfs.btrfs.8.gz rm mkfs.btrfs.8 mkfs.btrfs.xml
Quoted 3 lines
So, fix it.
Signed-off-by Tsutomu Itoh <[email protected]>
It looks good to me.
Current man 8 mkfs.btrfs is wrong as follows.
===============================================================================
...
-n|--nodesize <size>
+ -l|--leafsize <size>:: Specify the nodesize, the tree block size in which btrfs stores data. The default value is 16KB (16384) or the page size, whichever is bigger. Must be a multiple of the sectorsize, but not larger than 65536. Leafsize always equals nodesize and the options are aliases.
...
===============================================================================
In addition, after removing '+' between '-n' and '-l' to fix this problem, the warning which you said is displayed. After applying this patch, both two problems disappeared.
Thanks,
Satoru
Quoted 32 lines
--- Documentation/mkfs.btrfs.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)Documentation/mkfs.btrfs.txt +3
-4@@ -59,19 +59,18 @@ By default, mkfs.btrfs will not write to the device if it suspects that there is a filesystem or partition table on the device already. -n|--nodesize <size> -+ + -l|--leafsize <size>:: Specify the nodesize, the tree block size in which btrfs stores data. The default value is 16KB (16384) or the page size, whichever is -bigger. Must be a multiple of the sectorsize, but not larger than -65536. Leafsize always equals nodesize and the options are aliases. +bigger. Must be a multiple of the sectorsize, but not larger than 65536. +Leafsize always equals nodesize and the options are aliases. -L|--label <name>:: Specify a label for the filesystem. + NOTE: <name> should be less than 256 characters. - -m|--metadata <profile>:: Specify how metadata must be spanned across the devices specified. Valid values are 'raid0', 'raid1', 'raid5', 'raid6', 'raid10', 'single' or 'dup'.