From 20d700841b73579107103dfc6a2f9f83acd4ffc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 12 Jul 2021 08:31:18 +0200 Subject: [PATCH] Shown in log the inode of directory read error The unreadable directory record was poorly identified --- libntfs-3g/dir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libntfs-3g/dir.c b/libntfs-3g/dir.c index bee6fbbe..0a3c87dd 100644 --- a/libntfs-3g/dir.c +++ b/libntfs-3g/dir.c @@ -400,8 +400,9 @@ descend_into_child_node: if (br != 1) { if (br != -1) errno = EIO; - ntfs_log_perror("Failed to read vcn 0x%llx", - (unsigned long long)vcn); + ntfs_log_perror("Failed to read vcn 0x%llx from inode %lld", + (unsigned long long)vcn, + (unsigned long long)ia_na->ni->mft_no); goto close_err_out; }