mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6][smbfs] smb_open & smb_readpage_sync errors in kernel log
@ 2004-01-19 18:44 Mike Fedyk
  2004-01-20  4:22 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Fedyk @ 2004-01-19 18:44 UTC (permalink / raw)
  To: linux-kernel

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=-26
smb_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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.6][smbfs] smb_open & smb_readpage_sync errors in kernel log
  2004-01-19 18:44 [2.6][smbfs] smb_open & smb_readpage_sync errors in kernel log Mike Fedyk
@ 2004-01-20  4:22 ` Andrew Morton
  2004-01-20  6:37   ` Mike Fedyk
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2004-01-20  4:22 UTC (permalink / raw)
  To: Mike Fedyk; +Cc: linux-kernel

Mike Fedyk <mfedyk@matchmail.com> wrote:
>
> 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=-26
> smb_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?

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(-)

diff -puN fs/smbfs/proc.c~smbfs-fix-noisiness fs/smbfs/proc.c
--- 25/fs/smbfs/proc.c~smbfs-fix-noisiness	2004-01-19 20:18:16.000000000 -0800
+++ 25-akpm/fs/smbfs/proc.c	2004-01-19 20:18:16.000000000 -0800
@@ -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 ...
 		 */
diff -puN fs/smbfs/file.c~smbfs-fix-noisiness fs/smbfs/file.c
--- 25/fs/smbfs/file.c~smbfs-fix-noisiness	2004-01-19 20:22:21.000000000 -0800
+++ 25-akpm/fs/smbfs/file.c	2004-01-19 20:22:23.000000000 -0800
@@ -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)

_


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [2.6][smbfs] smb_open & smb_readpage_sync errors in kernel log
  2004-01-20  4:22 ` Andrew Morton
@ 2004-01-20  6:37   ` Mike Fedyk
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Fedyk @ 2004-01-20  6:37 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

On Mon, Jan 19, 2004 at 08:22:43PM -0800, Andrew Morton wrote:
> Mike Fedyk <mfedyk@matchmail.com> wrote:
> >
> > 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=-26
> > smb_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?
> 
> I think so.  We don't want to allow unprivileged users to spam the
> logfiles.

Great!

Thanks Andrew.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-20  6:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 18:44 [2.6][smbfs] smb_open & smb_readpage_sync errors in kernel log Mike Fedyk
2004-01-20  4:22 ` Andrew Morton
2004-01-20  6:37   ` Mike Fedyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome