From 6066e9f04de29ffc8e5dbad46445cb9a1fd65fa3 Mon Sep 17 00:00:00 2001 From: szaka Date: Sat, 2 Feb 2008 13:19:00 +0000 Subject: [PATCH] fix: empty index block is EIO, not EOPNOTSUPP --- libntfs-3g/index.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libntfs-3g/index.c b/libntfs-3g/index.c index 62fbd1b0..53b0d4b3 100644 --- a/libntfs-3g/index.c +++ b/libntfs-3g/index.c @@ -1696,9 +1696,8 @@ descend: goto descend; if (ntfs_ih_zero_entry(&ib->index)) { - errno = EOPNOTSUPP; - ntfs_log_perror("Failed to find any entry in an index block. " - "Please run chkdsk."); + errno = EIO; + ntfs_log_perror("Empty index block"); goto out; }