public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* UDF: alternate anchor block detection
@ 2011-10-03 11:46 Amit Sahrawat
  2011-10-04 14:51 ` Marcin Slusarz
  0 siblings, 1 reply; 4+ messages in thread
From: Amit Sahrawat @ 2011-10-03 11:46 UTC (permalink / raw)
  To: linux-kernel, linux-fsdevel

While mounting UDF media, when the primary AVDP is not found at block
256, UDF code tries to read-in the alternate AVDP.
In the function udf_find_anchor, udf_scan_anchors is called 3 times,
where each call to udf_scan_anchors read 12 blocks.
In case there is no alternate AVDP stored, a total of 36 blocks are
read before mount fails - causing time delay for Mount Failure.

1) After first call to udf_scan_anchors and before the second call
there is varconv conversion, for the older drivers, which skips 7
blocks after every 32 blocks. What are these older drivers? Do we
still require this code?

2) After varconv conversion, why is there a third call to
udf_scan_anchors? In the 1st call and 3rd call to udf_scan_anchors,
exactly same blocks are read, so this 3rd call seems to be redundant.

I suggest this modified code for udf_find_anchor :-
lastblock = udf_scan_anchors(sb,udf_variable_to_fixed(sbi->s_last_block),fileset);
        if (lastblock)
                goto out;
         else {
                /* VARCONV didn't help. Clear it. */
                UDF_CLEAR_FLAG(sb, UDF_FLAG_VARCONV);
                return 0;
        }

Please share your opinion to the above '2' points.


Thanks & Regards,
Amit Sahrawat

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <CAOiN93m2OUnv95jpCT++Edv0yCwWG1mWa6uAYsuk2MGjKHZpJQ@mail.gmail.com>]

end of thread, other threads:[~2011-10-06 23:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 11:46 UDF: alternate anchor block detection Amit Sahrawat
2011-10-04 14:51 ` Marcin Slusarz
     [not found] <CAOiN93m2OUnv95jpCT++Edv0yCwWG1mWa6uAYsuk2MGjKHZpJQ@mail.gmail.com>
2011-10-06 21:50 ` UDF " Jan Kara
2011-10-06 23:08   ` NamJae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox