From eb27d2059f913f8c2215e4ac01cadb0c486ac2f2 Mon Sep 17 00:00:00 2001 From: szaka Date: Tue, 10 Feb 2009 20:04:27 +0000 Subject: [PATCH] ntfs_attr_find: log all errors --- libntfs-3g/attrib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 2b4f87bd..c3178600 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -1698,6 +1698,7 @@ static int ntfs_attr_find(const ATTR_TYPES type, const ntfschar *name, } else { if (name && name != AT_UNNAMED) { errno = EINVAL; + ntfs_log_perror("%s", __FUNCTION__); return -1; } vol = NULL; @@ -1809,8 +1810,9 @@ static int ntfs_attr_find(const ATTR_TYPES type, const ntfschar *name, } } } - ntfs_log_debug("ntfs_attr_find(): File is corrupt. Run chkdsk.\n"); errno = EIO; + ntfs_log_perror("%s: Corrupt inode (%lld)", __FUNCTION__, + ctx->ntfs_ino ? (long long)ctx->ntfs_ino->mft_no : -1); return -1; }