• Jan Kara's avatar
    udf: Cleanup anchor block detection. · 423cf6dc
    Jan Kara authored
    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: default avatarJan Kara <jack@suse.cz>
    423cf6dc
udf_sb.h 3.49 KB