summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/dir.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-09-08 17:04:11 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-09-08 17:04:11 +0100
commitf94ad38e68e1623660fdbb063d0c580ba6661c29 (patch)
treee1ba4ba85b82c636b7c9fd2645422a485a6bf40b /fs/ntfs/dir.c
parent2b0ada2b8e086c267dd116a39ad41ff0a717b665 (diff)
downloadlinux-f94ad38e68e1623660fdbb063d0c580ba6661c29.tar.gz
linux-f94ad38e68e1623660fdbb063d0c580ba6661c29.tar.bz2
linux-f94ad38e68e1623660fdbb063d0c580ba6661c29.zip
NTFS: Report unrepresentable inodes during ntfs_readdir() as KERN_WARNING
messages and include the inode number. Thanks to Yura Pakhuchiy for pointing this out. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/dir.c')
-rw-r--r--fs/ntfs/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ntfs/dir.c b/fs/ntfs/dir.c
index 46779471c542..795c3d1930f5 100644
--- a/fs/ntfs/dir.c
+++ b/fs/ntfs/dir.c
@@ -1051,7 +1051,8 @@ static inline int ntfs_filldir(ntfs_volume *vol, loff_t fpos,
ie->key.file_name.file_name_length, &name,
NTFS_MAX_NAME_LEN * NLS_MAX_CHARSET_SIZE + 1);
if (name_len <= 0) {
- ntfs_debug("Skipping unrepresentable file.");
+ ntfs_warning(vol->sb, "Skipping unrepresentable inode 0x%llx.",
+ (long long)MREF_LE(ie->data.dir.indexed_file));
return 0;
}
if (ie->key.file_name.file_attributes &