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/ts/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/ts/minix')
-rwxr-xr-x | tests/ts/minix/mkfs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ts/minix/mkfs b/tests/ts/minix/mkfs index 4fc6ad3e0..7af0b109a 100755 --- a/tests/ts/minix/mkfs +++ b/tests/ts/minix/mkfs @@ -49,6 +49,7 @@ mkfs_and_mount_minix 'v1c14' '-1 -n 14' mkfs_and_mount_minix 'v1c30' '-1 -n 30' mkfs_and_mount_minix 'v2c14' '-2 -n 14' mkfs_and_mount_minix 'v2c30' '-2 -n 30' +mkfs_and_mount_minix 'v2i65535' '-2 -i 65535' mkfs_and_mount_minix 'v3c60' '-3 -n 60' ts_finalize |