Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/ntfstools
In directory usw-pr-cvs1:/tmp/cvs-serv12277/ntfstools
Modified Files:
mkntfs.c
Log Message:
Really fix the library and mkntfs while at it.
Index: mkntfs.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/ntfstools/mkntfs.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -U2 -r1.61 -r1.62
--- mkntfs.c 14 Apr 2002 15:26:24 -0000 1.61
+++ mkntfs.c 15 Apr 2002 19:02:41 -0000 1.62
@@ -3689,6 +3689,6 @@
for (i = 0; i < opt.mft_size / opt.mft_record_size; i++) {
if (!opt.no_action)
- lw = mst_pwrite(f, buf + i * opt.mft_record_size,
- opt.mft_record_size, pos);
+ lw = ntfs_mst_pwrite(f, pos, 1, opt.mft_record_size,
+ buf + i * opt.mft_record_size);
if (lw != opt.mft_record_size)
err_exit("%s\n", lw == -1 ? strerror(errno) :
@@ -3715,6 +3715,6 @@
*usnp = cpu_to_le16(usn);
if (!opt.no_action)
- lw = mst_pwrite(f, buf + i * opt.mft_record_size,
- opt.mft_record_size, pos);
+ lw = ntfs_mst_pwrite(f, pos, 1, opt.mft_record_size,
+ buf + i * opt.mft_record_size);
if (lw != opt.mft_record_size)
err_exit("%s\n", lw == -1 ? strerror(errno) :
|