summaryrefslogtreecommitdiffstats
path: root/bash-completion/mkfs.minix
diff options
context:
space:
mode:
authorJoshua Hudson2015-06-24 10:15:08 +0200
committerKarel Zak2015-07-30 11:39:12 +0200
commitda41ff553a5cde7caa1b36f3e64e77ff6e8da33d (patch)
tree9a987b4adbf5c554d09b367673e3fecd0604340e /bash-completion/mkfs.minix
parentlibmount: make mnt_get_filesystems() more robust [clang analyze] (diff)
downloadkernel-qcow2-util-linux-da41ff553a5cde7caa1b36f3e64e77ff6e8da33d.tar.gz
kernel-qcow2-util-linux-da41ff553a5cde7caa1b36f3e64e77ff6e8da33d.tar.xz
kernel-qcow2-util-linux-da41ff553a5cde7caa1b36f3e64e77ff6e8da33d.zip
mkfs.minix: increase maximum minix v2 and v3 file system sizes
mkfs.minix misbehaves when attempting to create a large v2 or v3 filesystem. I finally traced it down to attempting to create too many inodes so that the first zone is past 65535 blocks in. This obviously doesn't work as the on-disk superblock says this is a 16 bit integer. I wrote a patch that catches this, clamps to the absolute v2/v3 limit (like it already does for v1), and sets the blocks per inode to a more reasonable ratio when exceeding half a gigabyte. Having a half-gig filesystem with most files being smaller than 3k isn't really reasonable. I suppose if you don't want to adjust inode sizes automatically you could take that part out, and it will just crab sooner. Given the non-attention in the code, I suspect nobody ever had cause to try such a big minix filesystem. Well I have my reasons involving some deeply embedded work where ext2 would place too much strain on the hardware. Reviewed-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Joshua Hudson <joshudson@gmail.com>
Diffstat (limited to 'bash-completion/mkfs.minix')
0 files changed, 0 insertions, 0 deletions