From d1f14ea75257aaeca135a227bcf39a5218992c83 Mon Sep 17 00:00:00 2001 From: szaka Date: Tue, 15 Jul 2008 16:52:10 +0000 Subject: [PATCH] ntfs_non_resident_attr_expand(): fix corruption during rollback (Yura Pakhuchiy) --- libntfs-3g/attrib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 1df6c6f9..2f8abbec 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -4903,7 +4903,7 @@ rollback: ntfs_log_perror("Couldn't truncate runlist. Rollback failed"); } else { /* Prepare to mapping pairs update. */ - na->allocated_size = org_alloc_size << vol->cluster_size_bits; + na->allocated_size = org_alloc_size; /* Restore mapping pairs. */ if (ntfs_attr_update_mapping_pairs(na, 0 /*na->allocated_size >> vol->cluster_size_bits*/)) {