]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: udf: Fix detection of UDF images with block size 1024 and 4096
authorPali Rohár <pali.rohar@gmail.com>
Wed, 14 Jun 2017 21:15:14 +0000 (23:15 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Jun 2017 13:17:45 +0000 (15:17 +0200)
commit83b8df64a24f8698a47fa09cadeff4750d5a0275
tree02abd8f123c1c5b477c7576cb544c46ff8ca1c30
parent24fb943e54b4edaea0fa13f721bc29ff67380172
libblkid: udf: Fix detection of UDF images with block size 1024 and 4096

When detecting block size of UDF filesystem, try to use also block size
512, 1024, 2048 and 4096. This would allow blkid to detect UDF filesystem
in image file created from 4K hard disk (which should have UDF block size
4096).

Before this patch only UDF images with block size of 512 and 2048 were
detected as only block size from blkid_probe_get_sectorsize() and 2048 were
used (blkid_probe_get_sectorsize() returns for disk images 512).
libblkid/src/superblocks/udf.c