[2.6][smbfs] smb_open & smb_readpage_sync errors in kernel log
I've been getting these error messages in my kernel forever, I think even with 2.2 kernels, and it's still there in 2.6:
smb_open: config/SAM open failed, result=-26smb_readpage_sync: config/SAM open failed, error=-26
It does this for several locked system files on the windows machines.
This happens during a find command run on the mounted share from one of my scripts that compares file dates.
Can these printk calls be removed?
Quoted 7 lines · Mike Fedyk
I've been getting these error messages in my kernel forever, I think even with 2.2 kernels, and it's still there in 2.6:
smb_open: config/SAM open failed, result=-26smb_readpage_sync: config/SAM open failed, error=-26
Quoted 6 lines
It does this for several locked system files on the windows machines.
This happens during a find command run on the mounted share from one of my scripts that compares file dates.
Can these printk calls be removed?
I think so. We don't want to allow unprivileged users to spam the logfiles.
fs/smbfs/file.c | 5 +---- fs/smbfs/proc.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-)
fs/smbfs/proc.c renamed from fs/smbfs/proc.c~smbfs-fix-noisiness +1 -4
@@ -1181,11 +1181,8 @@ smb_open(struct dentry *dentry, int wish result =0 ;if (!smb_is_open (inode)) result =smb_proc_open (server, dentry, wish); -if (result) { -PARANOIA ("%s/%s open failed, result=%d\n" , -DENTRY_PATH (dentry), result); +if (result) goto out; - }/* * A successful open means the path is still valid ... */
fs/smbfs/file.c renamed from fs/smbfs/file.c~smbfs-fix-noisiness +1 -4
@@ -64,11 +64,8 @@ smb_readpage_sync(struct dentry *dentry, DENTRY_PATH(dentry), count, offset, rsize); result =smb_open (dentry,SMB_O_RDONLY ); -if (result <0 ) { -PARANOIA ("%s/%s open failed, error=%d\n" , -DENTRY_PATH (dentry), result); +if (result <0 ) goto io_error; - } do { if (count < rsize)
_
Quoted 10 lines · Andrew Morton
Quoted 9 lines · Mike Fedyk
I've been getting these error messages in my kernel forever, I think even with 2.2 kernels, and it's still there in 2.6:
smb_open: config/SAM open failed, result=-26smb_readpage_sync: config/SAM open failed, error=-26It does this for several locked system files on the windows machines.
Quoted 7 lines
Quoted 4 lines
This happens during a find command run on the mounted share from one of my scripts that compares file dates.
Can these printk calls be removed?
I think so. We don't want to allow unprivileged users to spam the logfiles.
Great!
Thanks Andrew.