Skip to contentSkip to conversation

mkfs.f2fs.8: Better document the -g argument.

PATCH Applied John A. Leuenhagen via Linux-f2fs-devel 2 participants 2 messages Dec 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs.f2fs.8: Better document the -g argument.

To use Android defaults, you must use -g android. However, the man page previously implied that you need only use -g.

Since you must specify android, I figured it would be appropriate to name that field default-options in the man page. If there was ever a reason to have a different set of default options, the -g option could be used with a new default-options value, i.e. -g example.

---
 man/mkfs.f2fs.8 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
man/mkfs.f2fs.8 +9 -2
index 0aca4dc..c90ebcc 100644
@@ -32,6 +32,7 @@ mkfs.f2fs \- create an F2FS file system
 ]
 [
 .B \-g
+.I default-options
 ]
 [
 .B \-i
@@ -136,8 +137,14 @@ Force overwrite when an existing filesystem is detected on the device.
 By default, mkfs.f2fs will not write to the device if it suspects that
 there is a filesystem or partition table on the device already.
 .TP
-.BI \-g
-Add default Android options.
+.BI \-g " default-options"
+Use a default set of options.
+The following values are supported:
+.RS 1.2i
+.TP 1.2i
+.B android
+Use default options for Android.
+.RE
 .TP
 .BI \-i
 Enable extended node bitmap.
Signature · 8 lines
2.26.2



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Applied
#1 lore raw
Quoted 7 lines · On 12/17, John A. Leuenhagen via Linux-f2fs-devel wrote:

To use Android defaults, you must use -g android. However, the man page previously implied that you need only use -g.

Since you must specify android, I figured it would be appropriate to name that field default-options in the man page. If there was ever a reason to have a different set of default options, the -g option could be used with a new default-options value, i.e. -g example.

Applied, thanks~

Quoted 44 lines
---
 man/mkfs.f2fs.8 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
man/mkfs.f2fs.8 +9 -2
index 0aca4dc..c90ebcc 100644
@@ -32,6 +32,7 @@ mkfs.f2fs \- create an F2FS file system
 ]
 [
 .B \-g
+.I default-options
 ]
 [
 .B \-i
@@ -136,8 +137,14 @@ Force overwrite when an existing filesystem is detected on the device.
 By default, mkfs.f2fs will not write to the device if it suspects that
 there is a filesystem or partition table on the device already.
 .TP
-.BI \-g
-Add default Android options.
+.BI \-g " default-options"
+Use a default set of options.
+The following values are supported:
+.RS 1.2i
+.TP 1.2i
+.B android
+Use default options for Android.
+.RE
 .TP
 .BI \-i
 Enable extended node bitmap.
Signature · 8 lines
2.26.2



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel