To anyone familiar with QIC-113g (possibly just Claus):
I just got to writing the code which locates the directory section of
the volume, and I think I've come across a problem. Could someone just
check a bit of the specification for me, and check if I'm right?
From QIC-113g, section 7.1.1 (bottom of page 14):
When the bit [directory last] is set the File Set Directory shall
be segment aligned and located by subtracting the Directory
Section Size (offsets 92-95) rounded up to an integral number
of segments from the Ending Segment Number (offsets 6-7). This
is to accomodate finding the start of the Directory Section.
"rounded up to an integral number of segments" is very confusing. Do I
assume a segment size of 32K, 29K, or work it out for each individual
segment (the Directory Section Size is specified in bytes)?
Question: algorithm for locating the directory section segment starting
number?
Problem: segment sizes vary. If there are too many bad sectors there,
then I'll get the wrong segment.
Am I right? If so, then I guess that I'll just have to hope that it
doesn't happen :-(
I could account for bad sectors to locate it, but who knows whether
other implementations account for it?
It would be nice if someone could point out that I'm just being
braindead :-)
Thanks,
Robie.
--
Robie Basak <[EMAIL PROTECTED]>
PGP signature