[linux-cifs-client] Help with error codes and configuration

Suresh Jayaraman sjayaraman at suse.de
Fri Mar 20 04:33:09 GMT 2009


aragonx at dcsnow.com wrote:

> I am seeing a lot of error messages in my /var/log/messages file from CIFS
> when trying to talk to a network resource.  My first question, is there a
> place where I can see what each error code means?  Secondly, it has been

Use the source :)

For error codes, look at
   <kernel-source>/include/asm-generic/errno-base.h (or)
   <kernel-source>/include/asm-generic/errno.h mostly

In you case -5 and -11 means
#define EIO              5      /* I/O error */
#define EAGAIN          11      /* Try again */

For SMB commands, look at
   <kernel-source>/fs/cifs/cifspdu.h

the values in cifspdu.h are in hex, so convert the command in the logs
to hex and lookup cifspdu.h. For e.g. the hex equivalent of "cmd 50" is
0x32, so the corresponding SMB command is
#define SMB_COM_TRANSACTION2          0x32

HTH,

> suggested that disabling Opportunistic Locking might help the situation. 
> Is that the best course of action?  As always, any help would be greatly
> appreciated.
> 
> Here is the system specs:
> 
> east:~ # uname -a
> Linux east 2.6.28.4 #1 SMP Mon Feb 9 17:28:45 EST 2009 x86_64 x86_64
> x86_64 GNU/Linux
> 
> east:~ # free
>              total       used       free     shared    buffers     cached
> Mem:      65598808   65375232     223576          0    4367864   55556872
> -/+ buffers/cache:    5450496   60148312
> Swap:     10530596     435672   10094924
> 
> east:~ # cat /proc/cpuinfo
> processor       : 7
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 65
> model name      : Dual-Core AMD Opteron(tm) Processor 8220
> stepping        : 3
> cpu MHz         : 2800.127
> cache size      : 1024 KB
> 
> 
> I see a lot of these
> 
> Mar 19 12:52:45 east kernel:  CIFS VFS: No response for cmd 50 mid 25199
> 
> And a few of the following:
> 
> Mar 19 12:52:45 east kernel:  CIFS VFS: No response for cmd 162 mid 25193
> Mar 19 12:53:51 east kernel:  CIFS VFS: No response to cmd 47 mid 25630
> 
> Mar 19 11:30:37 east kernel:  CIFS VFS: Send error in SETFSUnixInfo = -5
> Mar 19 11:31:00 east kernel:  CIFS VFS: server not responding
> Mar 19 11:31:00 east last message repeated 4 times
> 
> Mar 19 11:31:00 east kernel:  CIFS VFS: Send error in Close = -11
> Mar 19 11:31:00 east last message repeated 3 times
> 
> Mar 19 11:31:00 east kernel:  CIFS VFS: No response to cmd 4 mid 31788
> Mar 19 11:31:00 east kernel:  CIFS VFS: Send error in Close = -11
> Mar 19 11:31:00 east kernel:  CIFS VFS: No response to cmd 4 mid 31790
> Mar 19 11:31:00 east kernel:  CIFS VFS: Send error in Close = -11
> Mar 19 11:31:00 east kernel:  CIFS VFS: No response for cmd 50 mid 31792
> Mar 19 11:31:00 east kernel:  CIFS VFS: No response to cmd 47 mid 31782
> Mar 19 11:31:00 east kernel:  CIFS VFS: Write2 ret -11, wrote 0
> Mar 19 11:31:05 east kernel:  CIFS VFS: No response for cmd 50 mid 31798
> Mar 19 11:31:05 east kernel:  CIFS VFS: No response to cmd 4 mid 31802
> 
> 
> 


-- 
Suresh Jayaraman


More information about the linux-cifs-client mailing list