Skip to content

Commit

Permalink
udf: Try anchor in block 256 first
Browse files Browse the repository at this point in the history
Anchor block can be located at several places on the medium. Two of the
locations are relative to media end which is problematic to detect. Also
some drives report some block as last but are not able to read it or any
block nearby before it. So let's first try block 256 and if it is all fine,
don't look at other possible locations of anchor blocks to avoid IO errors.
This change required a larger reorganization of code but the new code is
hopefully more readable and definitely shorter.

Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Jan Kara committed Apr 2, 2009
1 parent 225fede commit 4034600
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 248 deletions.
Loading

0 comments on commit 4034600

Please sign in to comment.