diff options
author | Nate Clark | 2017-01-04 18:31:37 +0100 |
---|---|---|
committer | Nate Clark | 2017-01-04 20:42:59 +0100 |
commit | b7b26945d1e4491934111d65ac49091daefbdda8 (patch) | |
tree | b58694cc729364f66c3fd2e25fdab3916d500ecc /tests/expected/minix | |
parent | build-sys: test_linux_version is Linux only (diff) | |
download | kernel-qcow2-util-linux-b7b26945d1e4491934111d65ac49091daefbdda8.tar.gz kernel-qcow2-util-linux-b7b26945d1e4491934111d65ac49091daefbdda8.tar.xz kernel-qcow2-util-linux-b7b26945d1e4491934111d65ac49091daefbdda8.zip |
disk-utils/mkfs.minix: Set ninodes after checking max
ninodes in the superblock needs to be set after inodes is checked
against MINIX_MAX_INODES otherwise a value larger than MINIX_MAX_INODES
can be attempted to be stored in the superblock.
Without this change the command "mkfs.minix -2 -i 65530 <dev>" would
write a minix superblock with ninodes set to 0.
Signed-off-by: Nate Clark <nate@neworld.us>
Diffstat (limited to 'tests/expected/minix')
-rw-r--r-- | tests/expected/minix/mkfs-v2i65535 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/expected/minix/mkfs-v2i65535 b/tests/expected/minix/mkfs-v2i65535 new file mode 100644 index 000000000..761a36b7f --- /dev/null +++ b/tests/expected/minix/mkfs-v2i65535 @@ -0,0 +1,9 @@ +create minix fs -2 -i 65535 +65535 inodes +10224 blocks +Firstdatazone=4107 (4107) +Zonesize=1024 +Maxsize=2147483647 + +mkfs return value: 0 +umount the image |