]> 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)
committerPali Rohár <pali.rohar@gmail.com>
Wed, 14 Jun 2017 21:15:14 +0000 (23:15 +0200)
commit501aeb60a4914d8e4b273eb1529d70bc6ffaa077
treeedfcd678c0a177ca21f7d04135abdffb83a96146
parent2a67d912c642765b63cdc41b07515e30e77839ff
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