• J
    udf: Cleanup anchor block detection. · 423cf6dc
    Jan Kara 提交于
    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: NJan Kara <jack@suse.cz>
    423cf6dc
super.c 53.1 KB