Hello,
On Wed, 21 Apr 2004 fa...@pa... wrote:
> I know that you are busy but in order to finish my project I need one little
> hint. What I am gonna finish is to expand the utility ntfsfix that check for
> the consistency of the disk.
But the purpose of ntfsfix is different: it marks NTFS for consistency
check and resets the journal file.
> I have creat a code that store the current $Bitmap in an array and now
> I am creating my own bitmap exploring the disk.
Sounds like what ntfsresize (and ntfsclone) does as the first step, for
two years.
I just recently started to convert the relevant parts of the code to be a
function (something like check_allocation_bitmap()). It's in the BK
repository and so far only in ntfsresize.c. What you need seems to be is
basically these parts from the ntfsresize code:
ntfs_fsck_t fsck;
memset(&fsck, 0, sizeof(fsck));
setup_lcn_bitmap(&fsck.lcn_bitmap);
build_allocation_bitmap(&fsck);
compare_bitmaps(&fsck.lcn_bitmap);
This works since the start but to be reusable it still needs some days of
work.
I'm going to a vacation tomorrow and perhaps during that you could
finnish the conversation, clean up or get the idea how to continue
your implementation.
Cheers,
Szaka
|