From c48091cf9dbfc2d818eced4cd994e57c2bf852d1 Mon Sep 17 00:00:00 2001 From: szaka Date: Thu, 25 Oct 2007 18:57:50 +0000 Subject: [PATCH] ntfs_ir_truncate(): log only the real errors --- libntfs-3g/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/index.c b/libntfs-3g/index.c index 227ce53a..cb4918b3 100644 --- a/libntfs-3g/index.c +++ b/libntfs-3g/index.c @@ -1218,7 +1218,7 @@ static int ntfs_ir_truncate(ntfs_index_context *icx, int data_size) icx->ir->index.allocated_size = cpu_to_le32(data_size); - } else + } else if (ret == STATUS_ERROR) ntfs_log_perror("Failed to truncate INDEX_ROOT"); ntfs_attr_close(na);