Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/ntfstools
In directory usw-pr-cvs1:/tmp/cvs-serv8419
Modified Files:
mkntfs.c
Log Message:
mkntfs alpha 4
==============
- set back up boot sector as used in volume bitmap
- almost no errors left. only thing chkdsk now complains about is the root dir
security descriptor.
Index: mkntfs.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/ntfstools/mkntfs.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -U2 -r1.20 -r1.21
--- mkntfs.c 2001/06/10 02:25:38 1.20
+++ mkntfs.c 2001/06/10 14:00:12 1.21
@@ -3081,4 +3081,10 @@
err_exit("Couldn't write backup boot sector: %s\n", _s);
}
+ /*
+ * Mark backup bootsector as used in volume bitmap if the bitmap is
+ * large enough.
+ */
+ if (opt.nr_sectors < (lcn_bitmap_byte_size << 3))
+ ntfs_set_bit(lcn_bitmap, opt.nr_sectors, 1);
//dump_mft_record(m);
Dprintf("Creating $BadClus (mft record 8)\n");
|