fix: empty index block is EIO, not EOPNOTSUPP

master
szaka 2008-02-02 13:19:00 +00:00
parent a7b27505ea
commit 6066e9f04d
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}