udf: Fix loading of VAT inode when drive wrongly reports number of recorded blocks
authorJan Kara <jack@suse.cz>
Tue, 14 Jul 2009 17:30:23 +0000 (19:30 +0200)
committerJan Kara <jack@suse.cz>
Thu, 30 Jul 2009 15:28:26 +0000 (17:28 +0200)
commit4bf17af0dbfe4cf20cb750e22e8e926273e7a7a4
tree9d7218df82274d1dd564f3ba06ca8c65a99234c1
parent658874f05d040ca96eb5ba9b1c30ce0ff287d762
udf: Fix loading of VAT inode when drive wrongly reports number of recorded blocks

VAT inode is located in the last block recorded block of the medium. When the
drive errorneously reports number of recorded blocks, we failed to load the VAT
inode and thus mount the medium. This patch makes kernel try to read VAT inode
from the last block of the device if it is different from the last recorded
block.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c