From e09aa715eeb516a004e3a3fb4815bcf64ee142a1 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 21 May 2013 00:26:23 -0500 Subject: [PATCH 1/1] ntfs-3g_capture.c: Only warn when an inode cannot be opened --- src/ntfs-3g_capture.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ntfs-3g_capture.c b/src/ntfs-3g_capture.c index 978c2b49..f5929292 100644 --- a/src/ntfs-3g_capture.c +++ b/src/ntfs-3g_capture.c @@ -515,8 +515,12 @@ wim_ntfs_capture_filldir(void *dirent, const ntfschar *name, * directory tree rooted at it */ ntfs_inode *ni = ntfs_inode_open(ctx->dir_ni->vol, mref); if (!ni) { - ERROR_WITH_ERRNO("Failed to open NTFS inode"); - ret = -1; + /* XXX This used to be treated as an error, but NTFS-3g seemed + * to be unable to read some inodes on a Windows 8 image for + * some reason. */ + WARNING_WITH_ERRNO("Failed to open NTFS file \"%s/%s\"", + ctx->path, mbs_name); + ret = 0; goto out_free_mbs_name; } path_len = ctx->path_len; -- 2.43.0