]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Fix regression in UDF anchor block detection
authorTomas Janousek <tomi@nomi.cz>
Mon, 23 Jun 2008 13:12:35 +0000 (15:12 +0200)
committerJan Kara <jack@suse.cz>
Tue, 24 Jun 2008 09:38:03 +0000 (11:38 +0200)
commitfd7e5f24a89c611a03d6b38fcc4f59bf1d6ce68f
treec5a3e26a11f0b886c27d3af3ac2dd63976b2ff81
parentc2c494e6a6b06ad22c70c7f95ce5ce6780a2535b
udf: Fix regression in UDF anchor block detection

In some cases it could happen that some block passed test in
udf_check_anchor_block() even though udf_read_tagged() refused to read it later
(e.g. because checksum was not correct).  This patch makes
udf_check_anchor_block() use udf_read_tagged() so that the checking is
stricter.

This fixes the regression (certain disks unmountable) caused by commit
c2a225544be7c1acffa00f7bbb7c9ed2802d514e.

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