dmesg: "CIFS VFS: Unexpected lookup error -26"
Subsystems (2)
Hi,
"CIFS VFS: Unexpected lookup error -26" message appears every time when I enter into the root directory of win-share (C$) containing the pagefile.sys and hibernate.sys.
ll /media/share
.....
-?????????? ? ? ? ? ? hiberfil.sys
-rwxr-xr-x. 1 andrew root 609 Sep 30 2008 inclick.txt -r-xr-xr-x. 1 andrew root 0 Apr 13 2008 IO.SYS -r-xr-xr-x. 1 andrew root 0 Apr 13 2008 MSDOS.SYS -r-xr-xr-x. 1 andrew root 251152 Oct 20 2008 ntldr
-?????????? ? ? ? ? ? pagefile.sys
...
cat /proc/mounts | grep share
//***.***.***.***/c$/ /media/share cifs rw,relatime,sec=ntlm,cache=loose,unc=\\***.***.***.***\c$,username=andrew,uid=500,forceuid,gid=0,noforcegid,addr=***.***.***.***,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=16384,wsize=65536,actimeo=1 0 0
cat /etc/fstab
//***.***.***.***/c$ /media/share/ cifs uid=andrew,nounix,_netdev,credentials=/root/securedir/secfile 0 0
uname -a
Linux ***.***.***.*** 2.6.32-358.18.1.el6.i686 #1 SMP Wed Aug 28 14:27:42 UTC 2013 i686 i686 i386 GNU/Linux
/sbin/modinfo cifs
filename: /lib/modules/2.6.32-358.18.1.el6.i686/kernel/fs/cifs/cifs.ko version: 1.68 description: VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows license: GPL author: Steve French <sfrench-r/[email protected]> srcversion: 15D320AAB626CCD8C6ADAD3 depends: vermagic: 2.6.32-358.18.1.el6.i686 SMP mod_unload modversions 686 parm: CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int) parm: cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int) parm: cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int) parm: cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256 (int) parm: echo_retries:Number of echo attempts before giving up and reconnecting server. Default: 5. 0 means never reconnect. (ushort)
Signature · 2 lines
Thanks, Andrey.
A message that is not in the archive (sent off-list or not yet received): op.w295luvq07ery2-pBYy1DuGxBzUS83QA+KWFijHesifYMBh@public.gmane.org
Quoted 9 lines · On Thu, 12 Sep 2013 11:04:32 +0700 "Andrey Shernyukov"…
Hi,
"CIFS VFS: Unexpected lookup error -26" message appears every time when I enter into the root directory of win-share (C$) containing the pagefile.sys and hibernate.sys.ll /media/share
.....
-?????????? ? ? ? ? ? hiberfil.sys
Review
Quoted 6 lines
(quoted diff) +0
-5-rwxr-xr-x. 1 andrew root 609 Sep 30 2008 inclick.txt -r-xr-xr-x. 1 andrew root 0 Apr 13 2008 IO.SYS -r-xr-xr-x. 1 andrew root 0 Apr 13 2008 MSDOS.SYS -r-xr-xr-x. 1 andrew root 251152 Oct 20 2008 ntldr -?????????? ? ? ? ? ? pagefile.sys
Most likely you're getting a NT_STATUS_SHARING_VIOLATION error back from the server which is preventing you from fetching information about those files. It should be harmless, but there's little we can do to prevent that.
Arguably, the client shouldn't be spamming the logs with messages about that however.
Quoted 35 lines
cat
/proc/mounts| grep share
//***.***.***.***/c$/ /media/share cifs rw,relatime,sec=ntlm,cache=loose,unc=\\***.***.***.***\c$,username=andrew,uid=500,forceuid,gid=0,noforcegid,addr=***.***.***.***,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=16384,wsize=65536,actimeo=1 0 0cat
/etc/fstab
//***.***.***.***/c$ /media/share/ cifs
uid=andrew,nounix,_netdev,credentials=/root/securedir/secfile 0 0uname -a
Linux ***.***.***.*** 2.6.32-358.18.1.el6.i686 #1 SMP Wed Aug 28 14:27:42 UTC 2013 i686 i686 i386 GNU/Linux
/sbin/modinfocifs
filename:/lib/modules/2.6.32-358.18.1.el6.i686/kernel/fs/cifs/cifs.koversion: 1.68 description: VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows license: GPL author: Steve French <sfrench-r/[email protected]> srcversion: 15D320AAB626CCD8C6ADAD3 depends: vermagic: 2.6.32-358.18.1.el6.i686 SMP mod_unload modversions 686 parm: CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int) parm: cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int) parm: cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int) parm: cifs_max_pending:Simultaneous requests to server. Default:50 Range: 2 to 256 (int)
parm: echo_retries:Number of echo attempts before giving up and
reconnecting server. Default: 5. 0 means never reconnect. (ushort)
Signature · 1 line
Jeff Layton <[email protected]>
A message that is not in the archive (sent off-list or not yet received): 20130912055839.5ca8e8c3-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org
Quoted 24 lines · On Thu, 12 Sep 2013 05:58:39 -0400 Jeff Layton…
Quoted 9 lines · On Thu, 12 Sep 2013 11:04:32 +0700 "Andrey Shernyukov"…
Hi,
"CIFS VFS: Unexpected lookup error -26" message appears every time when I enter into the root directory of win-share (C$) containing the pagefile.sys and hibernate.sys.ll /media/share
.....
-?????????? ? ? ? ? ? hiberfil.sysReview
Quoted 6 lines
(quoted diff) +0
-5-rwxr-xr-x. 1 andrew root 609 Sep 30 2008 inclick.txt -r-xr-xr-x. 1 andrew root 0 Apr 13 2008 IO.SYS -r-xr-xr-x. 1 andrew root 0 Apr 13 2008 MSDOS.SYS -r-xr-xr-x. 1 andrew root 251152 Oct 20 2008 ntldr -?????????? ? ? ? ? ? pagefile.sysMost likely you're getting a
NT_STATUS_SHARING_VIOLATIONerror back from the server which is preventing you from fetching information about those files. It should be harmless, but there's little we can do to prevent that.
Quoted 42 lines
Arguably, the client shouldn't be spamming the logs with messages about that however.
Quoted 35 lines
cat
/proc/mounts| grep share
//***.***.***.***/c$/ /media/share cifs rw,relatime,sec=ntlm,cache=loose,unc=\\***.***.***.***\c$,username=andrew,uid=500,forceuid,gid=0,noforcegid,addr=***.***.***.***,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=16384,wsize=65536,actimeo=1 0 0cat
/etc/fstab
//***.***.***.***/c$ /media/share/ cifs
uid=andrew,nounix,_netdev,credentials=/root/securedir/secfile 0 0uname -a
Linux ***.***.***.*** 2.6.32-358.18.1.el6.i686 #1 SMP Wed Aug 28 14:27:42 UTC 2013 i686 i686 i386 GNU/Linux
/sbin/modinfocifs
filename:/lib/modules/2.6.32-358.18.1.el6.i686/kernel/fs/cifs/cifs.koversion: 1.68 description: VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows license: GPL author: Steve French <sfrench-r/[email protected]> srcversion: 15D320AAB626CCD8C6ADAD3 depends: vermagic: 2.6.32-358.18.1.el6.i686 SMP mod_unload modversions 686 parm: CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int) parm: cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int) parm: cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int) parm: cifs_max_pending:Simultaneous requests to server. Default:50 Range: 2 to 256 (int)
parm: echo_retries:Number of echo attempts before giving up and
reconnecting server. Default: 5. 0 means never reconnect. (ushort)
One thing that's interesting is that you apparently got information about those files in the FIND_FIRST/NEXT response, but when you went to go query info about them you likely got the NT_STATUS_SHARING_VIOLATION error. Would it be possible to get a network capture while you run the above command? Instructions on how to do that are here:
https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting#Wire_Captures
I've had the lingering idea for a while that we ought to switch the lookup code to use FIND_FIRST exclusively, since some infolevels give you the inode number without having to send a second call. Doing that might also avoid the error in this situation as well.
Signature · 1 line
Jeff Layton <[email protected]>
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): op.w3jhe3yi07ery2-pBYy1DuGxBzUS83QA+KWFijHesifYMBh@public.gmane.org
Quoted 11 lines · On Tue, 17 Sep 2013 11:58:05 +0700 "Andrey Shernyukov"…
Quoted 5 lines · Jeff Layton
No, sorry -- that doesn't tell me much. I had pretty much inferred that from the info before. What would be more interesting is the capture of the FIND_FIRST/NEXT calls, in binary format so I can open them with wireshark and see what it's sending.
О.К. Capture packets are in attachment (except first packets with authorization information) as "libpcap" wireshark format.
Ok, based on this and the previous text dumps of the QUERY_PATH_INFO packets, it looks like FIND_FIRST/NEXT is able to fetch this info without issue, but the QUERY_PATH_INFO call gets back an error. There's not much we can do about that without some major reworking of the lookup code.
I think we really ought to convert the lookup code to use a FIND_FIRST call with a specific name instead of QUERY_PATH_INFO. It seems to "perturb" things less, plus it also gives us the index number which we use as an inode number. That allows us to do lookups on unknown dentries without a second call to fetch the UniqueID.
Additionally, I think we ought to make that error not print by default. I'll send a patch to tone that down in a bit.
Signature · 1 line
Jeff Layton <[email protected]>