From 2159dbf365e47d7db9961c1aec95549be75c5759 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 24 Jun 2015 09:15:13 +0100 Subject: 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 --- disk-utils/mkfs.minix.8 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'disk-utils/mkfs.minix.8') 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. -- cgit v1.2.3-55-g7522