diff options
author | Joshua Hudson | 2015-06-24 10:15:08 +0200 |
---|---|---|
committer | Karel Zak | 2015-07-30 11:39:12 +0200 |
commit | da41ff553a5cde7caa1b36f3e64e77ff6e8da33d (patch) | |
tree | 9a987b4adbf5c554d09b367673e3fecd0604340e /bash-completion/mkfs.minix | |
parent | libmount: make mnt_get_filesystems() more robust [clang analyze] (diff) | |
download | kernel-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