* [rfc/patch] ntfs reduce syslog noise
@ 2007-07-28 21:10 maximilian attems
2007-07-28 22:26 ` Anton Altaparmakov
0 siblings, 1 reply; 3+ messages in thread
From: maximilian attems @ 2007-07-28 21:10 UTC (permalink / raw)
To: aia21; +Cc: linux-fsdevel, linux-ntfs-dev
user complained on syslog spamming by
NTFS-fs error (device hda7): ntfs_ucstonls(): Unicode name contains characters that cannot be converted to character set koi8-r. You might want to try to use the mount option nls=utf8.
NTFS-fs warning (device hda7): ntfs_filldir(): Skipping unrepresentable inode 0x130cc.
-> http://bugs.debian.org/351009
the custom ntfs loglevel are a pain as they encode the
KERN_ERR printk level for any ntfs_warning() call
belows patch tries to tame one of the 2 complaints.
diff --git a/fs/ntfs/dir.c b/fs/ntfs/dir.c
index 34314b3..10cc8d9 100644
--- a/fs/ntfs/dir.c
+++ b/fs/ntfs/dir.c
@@ -1050,7 +1050,7 @@ 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_warning(vol->sb, "Skipping unrepresentable inode 0x%llx.",
+ ntfs_debug(vol->sb, "Skipping unrepresentable inode 0x%llx.",
(long long)MREF_LE(ie->data.dir.indexed_file));
return 0;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [rfc/patch] ntfs reduce syslog noise
2007-07-28 21:10 [rfc/patch] ntfs reduce syslog noise maximilian attems
@ 2007-07-28 22:26 ` Anton Altaparmakov
2007-07-28 23:01 ` maximilian attems
0 siblings, 1 reply; 3+ messages in thread
From: Anton Altaparmakov @ 2007-07-28 22:26 UTC (permalink / raw)
To: maximilian attems; +Cc: Linux Filesystems, linux-ntfs-dev
On 28 Jul 2007, at 22:10, maximilian attems wrote:
> user complained on syslog spamming by
> NTFS-fs error (device hda7): ntfs_ucstonls(): Unicode name contains
> characters that cannot be converted to character set koi8-r. You
> might want to try to use the mount option nls=utf8.
> NTFS-fs warning (device hda7): ntfs_filldir(): Skipping
> unrepresentable inode 0x130cc.
> -> http://bugs.debian.org/351009
>
> the custom ntfs loglevel are a pain as they encode the
> KERN_ERR printk level for any ntfs_warning() call
>
> belows patch tries to tame one of the 2 complaints.
>
> diff --git a/fs/ntfs/dir.c b/fs/ntfs/dir.c
> index 34314b3..10cc8d9 100644
> --- a/fs/ntfs/dir.c
> +++ b/fs/ntfs/dir.c
> @@ -1050,7 +1050,7 @@ 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_warning(vol->sb, "Skipping unrepresentable inode 0x%llx.",
> + ntfs_debug(vol->sb, "Skipping unrepresentable inode 0x%llx.",
> (long long)MREF_LE(ie->data.dir.indexed_file));
> return 0;
> }
This patch won't even compile! ntfs_debug() does not take a
superblock structure as the first argument...
Also I want the inode warning to remain because it allows people to
know which inode it is so they can go and fix it by renaming it
something else for example.
And the message does give the user a solution to the problem. Mount
with nls=utf8 mount option and you will not see those error messages
any more and everything will work just fine.
The messages are all ratelimited thus should not spam the logs too
badly for users who choose to ignore them instead of doing something
about it...
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rfc/patch] ntfs reduce syslog noise
2007-07-28 22:26 ` Anton Altaparmakov
@ 2007-07-28 23:01 ` maximilian attems
0 siblings, 0 replies; 3+ messages in thread
From: maximilian attems @ 2007-07-28 23:01 UTC (permalink / raw)
To: Anton Altaparmakov; +Cc: Linux Filesystems, linux-ntfs-dev
On Sat, Jul 28, 2007 at 11:26:18PM +0100, Anton Altaparmakov wrote:
> On 28 Jul 2007, at 22:10, maximilian attems wrote:
<snipp faulty patch>
> This patch won't even compile! ntfs_debug() does not take a
> superblock structure as the first argument...
yup, hadn't looked up good enough those dprintk, sorry.
> Also I want the inode warning to remain because it allows people to
> know which inode it is so they can go and fix it by renaming it
> something else for example.
>
> And the message does give the user a solution to the problem. Mount
> with nls=utf8 mount option and you will not see those error messages
> any more and everything will work just fine.
>
> The messages are all ratelimited thus should not spam the logs too
> badly for users who choose to ignore them instead of doing something
> about it...
thanks for quick answer!
user had asked for eventual quiet param,
but i see no such in any other fs, so..
happy weekend
--
maks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-28 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-28 21:10 [rfc/patch] ntfs reduce syslog noise maximilian attems
2007-07-28 22:26 ` Anton Altaparmakov
2007-07-28 23:01 ` maximilian attems
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.