Subject: Bug#3777: mkfs.minix option parsing oddities

From: Ian Jackson <[email-masked]>
Date: Sun, 14 Jul 96 12:42 BST

Package: util-linux
Version: 2.5-4

It looks like the parsing is such that -i requires its value in a
separate option, and -n requires it stuck onto the end !

Ian.

-root@chiark:rootdisk> mkfs.minix -i 400 -n30 /dev/fd0 1440
400 inodes
1440 blocks
Firstdatazone=17 (17)
Zonesize=1024
Maxsize=268966912

-root@chiark:rootdisk> mkfs.minix -i 400 /dev/fd0 1440
400 inodes
1440 blocks
Firstdatazone=17 (17)
Zonesize=1024
Maxsize=268966912

-root@chiark:rootdisk> mkfs.minix -i400 /dev/fd0 1440
Usage: mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name blocks
-root@chiark:rootdisk> mkfs.minix -n30 /dev/fd0 1440
480 inodes
1440 blocks
Firstdatazone=19 (19)
Zonesize=1024
Maxsize=268966912

-root@chiark:rootdisk> mkfs.minix -n 30 /dev/fd0 1440
Usage: mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name blocks
-root@chiark:rootdisk> mkfs.minix -n 30 -i400 /dev/fd0 1440
Usage: mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name blocks
-root@chiark:rootdisk> mkfs.minix -n30 -i 400 /dev/fd0 1440
400 inodes
1440 blocks
Firstdatazone=17 (17)
Zonesize=1024
Maxsize=268966912

-root@chiark:rootdisk>