On Tue, 9 Jul 2002, Anton Altaparmakov wrote:
>
> System/special/reserved files. Typical. )-: Ok, we need to do something
> about those...
Please note, resizer has an additional check mechanism: building his
own cluster bitmap and compares that with the on-disk cluster bitmap.
If they don't exactly match or a mapped cluster is referenced more
then once it will exit.
> I think the best approach would be to special case inodes 0-23 and
> treat them specially.
Apparently yes, also additionally or instead of checking the mft
bitmap if these inodes are used or not would be a way.
> For them it is allowed to not have FILE in which case you just
> need to skip them. But actually you should also make sure that the
> magic isn't BAAD, CHKD, or HOLE. For either of these you should
> abort for now at least. So the best way would be to use
> read_mft_record and (pseudo code):
>
> if (magic != FILE) {
> if ((mft_no < 24) && (mft_no >= 16) &&
> (magic != one of BAAD, CHKD, HOLE))
> continue;
> abort;
> }
Ok, I'll add additional checks.
Szaka
|