diff options
author | Sami Kerola | 2015-06-24 10:15:13 +0200 |
---|---|---|
committer | Karel Zak | 2015-07-30 11:39:14 +0200 |
commit | 2159dbf365e47d7db9961c1aec95549be75c5759 (patch) | |
tree | e64ac882d0262b05ca577b30a1a1087e5697cd75 /disk-utils/mkfs.minix.8 | |
parent | mkfs.minix: add fs_control structure, and remove most global variables (diff) | |
download | kernel-qcow2-util-linux-2159dbf365e47d7db9961c1aec95549be75c5759.tar.gz kernel-qcow2-util-linux-2159dbf365e47d7db9961c1aec95549be75c5759.tar.xz kernel-qcow2-util-linux-2159dbf365e47d7db9961c1aec95549be75c5759.zip |
mkfs.minix: check user input carefully
File name lenght and version input needs to be checked against each
other, which will determine what version of file system is in question.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.minix.8')
-rw-r--r-- | disk-utils/mkfs.minix.8 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/disk-utils/mkfs.minix.8 b/disk-utils/mkfs.minix.8 index e46a76898..fcf0e7c56 100644 --- a/disk-utils/mkfs.minix.8 +++ b/disk-utils/mkfs.minix.8 @@ -42,10 +42,9 @@ Check the device for bad blocks before creating the filesystem. If any are found, the count is printed. .TP \fB\-n\fR, \fB\-\-namelength\fR \fIlength\fR -Specify the maximum length of filenames. -Currently, the only allowable values are 14 and 30. -The default is 30. Note that kernels older than 0.99p7 -only accept namelength 14. +Specify the maximum length of filenames. Currently, the only allowable +values are 14 and 30 for file system versions 1 and 2. Version 3 allows +only value 60. The default is 30. .TP \fB\-i\fR, \fB\-\-inodes\fR \fInumber\fR Specify the number of inodes for the filesystem. @@ -57,7 +56,7 @@ The file has one bad-block number per line. The count of bad blocks read is printed. .TP .B \-1 -Make a Minix version 1 filesystem. +Make a Minix version 1 filesystem. This is the default. .TP .BR \-2 , " \-v" Make a Minix version 2 filesystem. |