Backport upstream patch: udf-use-hw-sector-size.diff
authorPali Rohár <pali.rohar@gmail.com>
Mon, 13 Aug 2012 07:44:28 +0000 (09:44 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Mon, 13 Aug 2012 07:44:28 +0000 (09:44 +0200)
commit1387d6bebf1f20e7d872da87751c51227bec390e
tree94d1746421ef5921b6fd3e62c4bf6af70abc77d2
parent49a29bb3a5a896371607acba97069e91eb549be4
Backport upstream patch: udf-use-hw-sector-size.diff

https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1197e4dfcf4ac17d763a59e5de1d4d4b9781a555

udf: use hardware sector size

This patch makes the UDF FS driver use the hardware sector size as the
default logical block size, which is required by the UDF specifications.
While the previous default of 2048 bytes was correct for optical disks,
it was not for hard disks or USB storage devices, and made it impossible
to use such a device with the default mount options.  (The Linux mkudffs
tool uses a default block size of 2048 bytes even on devices with
smaller hardware sectors, so this bug is unlikely to be noticed unless
UDF-formatted USB storage devices are exchanged with other OSs.)

To avoid regressions for people who use loopback optical disk images or
who used the (sometimes wrong) defaults of mkudffs, we also try with
a block size of 2048 bytes if no anchor was found with the hardware
sector size.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jan Kara <jack@suse.cz>
kernel-power-2.6.28/debian/patches/series
kernel-power-2.6.28/debian/patches/udf-use-hw-sector-size.diff [new file with mode: 0644]