Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6986/ntfsprogs
Modified Files:
ntfsclone.c
Log Message:
Wiped timestamp data stats were off by 5% in general
Index: ntfsclone.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsclone.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -p -r1.73 -r1.74
--- ntfsclone.c 6 Feb 2006 20:51:17 -0000 1.73
+++ ntfsclone.c 6 Feb 2006 22:17:24 -0000 1.74
@@ -729,6 +729,8 @@ static void wipe_index_root_timestamps(A
entry->key.file_name.last_data_change_time = timestamp;
entry->key.file_name.last_mft_change_time = timestamp;
+ wiped_timestamp_data += 32;
+
} else if (ntfs_names_are_equal(NTFS_INDEX_Q,
sizeof(NTFS_INDEX_Q) / 2 - 1,
(ntfschar *)((char *)attr +
@@ -740,11 +742,14 @@ static void wipe_index_root_timestamps(A
quota_q = (QUOTA_CONTROL_ENTRY *)((u8 *)entry +
entry->data_offset);
/*
- * FIXME: no guarantee it's indeed /$Extend/$Quota:$Q
- * till we only check for quota version 2 ...
+ * FIXME: no guarantee it's indeed /$Extend/$Quota:$Q.
+ * For now, as a minimal safeguard, we check only for
+ * quota version 2 ...
*/
- if (le32_to_cpu(quota_q->version) == 2)
+ if (le32_to_cpu(quota_q->version) == 2) {
quota_q->change_time = timestamp;
+ wiped_timestamp_data += 4;
+ }
}
entry = (INDEX_ENTRY*)((u8*)entry + le16_to_cpu(entry->length));
|