]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: make minix prober more robust
authorKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2016 13:35:33 +0000 (14:35 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2016 13:47:40 +0000 (14:47 +0100)
commit7675d69d017830cfd9d131e8d49e633b6dd535bb
tree6f50e10baa32d8bf28ad02f33d4e7ced617cace3
parent8afabdb1fa1388c022101d0a8ab932bcaa3c8e34
libblkid: make minix prober more robust

It seems that the current minix probing code is not robust enough and
it returns false positive for Fedora f24 install images. The crazy thing
is that the image pass also all Linux kernel minix_fill_super() checks
and mount(2) fails later when it tries to read filesystem root
directory.

The fsck.minix requires sb->s_log_zone_size to be zero (Linux kernel
does not care about it), let's use the same requirement for libblkid.

Note, it would be possible to check minix root directory inode in
libblkid, but this solution requires minix prober specific seek &
read. We want to avoid extra read operations...

References: https://bugzilla.redhat.com/show_bug.cgi?id=1299255
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/minix.c