From bac5d23b7bff64fcc1d23b4b0538b8fec7644fa6 Mon Sep 17 00:00:00 2001 From: szaka Date: Sun, 22 Mar 2009 00:06:10 +0000 Subject: [PATCH] ntfs_ir_make_space: prefer INDEX_ALLOCATION instead of ATTRIBUTE_LIST --- libntfs-3g/index.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/libntfs-3g/index.c b/libntfs-3g/index.c index 8d3502ef..f759b17d 100644 --- a/libntfs-3g/index.c +++ b/libntfs-3g/index.c @@ -1229,15 +1229,11 @@ static int ntfs_ir_make_space(ntfs_index_context *icx, int data_size) ntfs_log_trace("Entering\n"); - ret = ntfs_ir_truncate(icx, data_size); - if (ret == STATUS_RESIDENT_ATTRIBUTE_FILLED_MFT) { - - ret = ntfs_ir_reparent(icx); - if (ret == STATUS_OK) - ret = STATUS_KEEP_SEARCHING; - else - ntfs_log_perror("Failed to nodify INDEX_ROOT"); - } + ret = ntfs_ir_reparent(icx); + if (ret == STATUS_OK) + ret = STATUS_KEEP_SEARCHING; + else + ntfs_log_perror("Failed to nodify INDEX_ROOT"); return ret; }