Disable RepairMFT if partition has been found using backup boot sector.

This commit is contained in:
Christophe Grenier 2008-05-19 00:00:05 +02:00
parent 42983929f3
commit 2d62f25b7f

View file

@ -136,6 +136,15 @@ int repair_MFT(disk_t *disk_car, partition_t *partition, const int verbose, cons
free(ntfs_header);
return 0;
}
if(partition->sb_offset!=0)
{
log_info("Please quit TestDisk and reboot your computer before trying to fix the MFT.\n");
display_message("Please quit TestDisk and reboot your computer before trying to fix the MFT.\n");
free(buffer_mftmirr);
free(buffer_mft);
free(ntfs_header);
return -1;
}
/*
log_debug("MFT\n");
dump_log(buffer_mft, mftmirr_size_bytes);