Changes by: flatcap
Update of /cvsroot/linux-ntfs/linux-ntfs/ntfstools
In directory usw-pr-cvs1:/tmp/cvs-serv23546
Modified Files:
mkntfs.c
Log Message:
the backup boot sector is in no-mans-land beyond the normal clusters
Index: mkntfs.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/ntfstools/mkntfs.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -U2 -r1.33 -r1.34
--- mkntfs.c 2001/06/13 11:51:17 1.33
+++ mkntfs.c 2001/06/13 12:21:51 1.34
@@ -2781,6 +2781,7 @@
strerror(errno));
/* $Bitmap could overlap the end of the volume.
- Any bits in this region must be set */
- for (i = opt.nr_clusters+1; i < lcn_bitmap_byte_size<<3; i++)
+ * Any bits in this region must be set.
+ * This region also encompassed the backup boot sector. */
+ for (i = opt.nr_clusters; i < lcn_bitmap_byte_size<<3; i++)
ntfs_set_bit(lcn_bitmap, (__u64) i, 1);
@@ -3300,10 +3301,4 @@
"is run on your next boot into Windows.\n");
}
- /*
- * Mark backup bootsector as used in volume bitmap if the bitmap is
- * large enough.
- */
- if (opt.nr_clusters < (lcn_bitmap_byte_size << 3))
- ntfs_set_bit(lcn_bitmap, opt.nr_clusters, 1);
//dump_mft_record(m);
Dprintf("Creating $BadClus (mft record 8)\n");
|