aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/udf_sb.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-04-07 09:59:23 -0400
committerJan Kara <jack@suse.cz>2008-04-17 08:23:10 -0400
commit423cf6dc04eb79d441bfda2b127bc4b57134b41d (patch)
treed4b9f7a35dfbdd9a2fbf986bf05c959674e4086a /fs/udf/udf_sb.h
parent38b74a53e5625b7bbbd08918294b86f1db2f0565 (diff)
udf: Cleanup anchor block detection.
UDF anchor block detection is complicated by several things - there are several places where the anchor point can be, some of them relative to the last recorded block which some devices report wrongly. Moreover some devices on some media seem to have 7 spare blocks sectors for every 32 blocks (at least as far as I understand the old code) so we have to count also with that possibility. This patch splits anchor block detection into several functions so that it is clearer what we actually try to do. We fix several bugs of the type "for such and such media, we fail to check block blah" as a result of the cleanup. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udf_sb.h')
-rw-r--r--fs/udf/udf_sb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/udf_sb.h b/fs/udf/udf_sb.h
index fb2a6e9f8dac..8308a12e1232 100644
--- a/fs/udf/udf_sb.h
+++ b/fs/udf/udf_sb.h
@@ -100,7 +100,7 @@ struct udf_sb_info {
100 100
101 /* Sector headers */ 101 /* Sector headers */
102 __s32 s_session; 102 __s32 s_session;
103 __u32 s_anchor[4]; 103 __u32 s_anchor[3];
104 __u32 s_last_block; 104 __u32 s_last_block;
105 105
106 struct buffer_head *s_lvid_bh; 106 struct buffer_head *s_lvid_bh;