summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/unistr.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-09-08 18:04:11 +0200
committerAnton Altaparmakov <aia21@cantab.net>2005-09-08 18:04:11 +0200
commitf94ad38e68e1623660fdbb063d0c580ba6661c29 (patch)
treee1ba4ba85b82c636b7c9fd2645422a485a6bf40b /fs/ntfs/unistr.c
parentNTFS: Fix handling of valid but empty mapping pairs array in (diff)
downloadlinux-f94ad38e68e1623660fdbb063d0c580ba6661c29.tar.xz
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/unistr.c')
-rw-r--r--fs/ntfs/unistr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ntfs/unistr.c b/fs/ntfs/unistr.c
index 19c42e231b44..a389a5a16c84 100644
--- a/fs/ntfs/unistr.c
+++ b/fs/ntfs/unistr.c
@@ -372,7 +372,8 @@ retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o,
return -EINVAL;
conversion_err:
ntfs_error(vol->sb, "Unicode name contains characters that cannot be "
- "converted to character set %s.", nls->charset);
+ "converted to character set %s. You might want to "
+ "try to use the mount option nls=utf8.", nls->charset);
if (ns != *outs)
kfree(ns);
if (wc != -ENAMETOOLONG)