This patch changes message type from ntfs_error to ntfs_debug in the unistr.c when unicode filename contains characters that can not be converted into the local charset, because it's not useful for user and actually it's not a error. Instead of this print warning in dir.c, this warning includes inode number for further investigation (e.g. with ntfsinfo). Signed-off-by: Yura Pakhuchiy diff -ruNp -X kernel.ignore ntfs-2.6-devel/fs/ntfs/dir.c ntfs-2.6-yura/fs/ntfs/dir.c --- ntfs-2.6-devel/fs/ntfs/dir.c 2005-07-01 00:38:49.000000000 +0300 +++ ntfs-2.6-yura/fs/ntfs/dir.c 2005-07-01 04:37:20.000000000 +0300 @@ -1051,7 +1051,9 @@ static inline int ntfs_filldir(ntfs_volu 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 file " + "(inode %lu).", MREF_LE( + ie->data.dir.indexed_file)); return 0; } if (ie->key.file_name.file_attributes & diff -ruNp -X kernel.ignore ntfs-2.6-devel/fs/ntfs/unistr.c ntfs-2.6-yura/fs/ntfs/unistr.c --- ntfs-2.6-devel/fs/ntfs/unistr.c 2005-07-01 00:38:49.000000000 +0300 +++ ntfs-2.6-yura/fs/ntfs/unistr.c 2005-07-01 04:27:21.000000000 +0300 @@ -371,7 +371,7 @@ retry: wc = nls->uni2char(le16_to_cpu( ntfs_error(vol->sb, "Received NULL pointer."); return -EINVAL; conversion_err: - ntfs_error(vol->sb, "Unicode name contains characters that cannot be " + ntfs_debug("Unicode name contains characters that cannot be " "converted to character set %s.", nls->charset); if (ns != *outs) kfree(ns);