summaryrefslogtreecommitdiffstats
path: root/tests/expected/minix
diff options
context:
space:
mode:
authorNate Clark2017-01-04 18:31:37 +0100
committerNate Clark2017-01-04 20:42:59 +0100
commitb7b26945d1e4491934111d65ac49091daefbdda8 (patch)
treeb58694cc729364f66c3fd2e25fdab3916d500ecc /tests/expected/minix
parentbuild-sys: test_linux_version is Linux only (diff)
downloadkernel-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-v2i655359
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