[linux-cifs-client] Problems opening existing files over SMB to Windows servers since 2.6.30 or so

Dale Blount samba-lists at dale.us
Tue Feb 2 11:13:33 MST 2010


Hi List,

I'm having some issues opening files from a linux client to a Windows
server since 2.6.30 or so, could have possibly been earlier.   I've
tried 2 different clients, both running Arch Linux and I can repeat the
results using Windows 2003, Windows 2008 R2, and Windows 7 as the
server.

I can create new files just fine, but editing existing files with
nedit/gedit fails.  Editing existing files with vim/nano works as it
should.

nedit gives "Error opening filename".

gedit will open the file but gives "Could not find the file filename"
when trying to save.  You can then press cancel and then reload and the
change was actually saved.

My fstab line for the mount:
//172.21.21.254/Users/sambatest     /mnt/sambatest            cifs
noauto,username=sambatest,uid=dale,forceuid=dale   0 0

Attached is a pcap of the session between these 2 hosts and the debug
added to dmesg by running echo 7 > /proc/fs/cifs/cifsFYI.

Here is what I believe the same bug at nedit: 
https://sourceforge.net/tracker/index.php?func=detail&aid=2904949&group_id=11005&atid=211005

and the gedit report:
https://bugs.launchpad.net/gedit/+bug/34813


Mounting cifs->samba on linux works fine, even with unix extensions
disabled.

Anyone have a hint as to what's going on?


Thanks,

Dale


-------------- next part --------------
device eth0 entered promiscuous mode
 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 35956 with uid: 1000
 fs/cifs/inode.c: Revalidate: \sambatest inode 0xcdd0bc58 count 2 dentry: 0xcdd22110 d_time 0 jiffies 99717892
 fs/cifs/inode.c: Getting info on \sambatest
 fs/cifs/transport.c: For smb_command 50
 fs/cifs/transport.c: Sending smb:  total_len 98
 fs/cifs/connect.c: rfc1002 length 0xa8
 fs/cifs/inode.c: inode 0xcdd0bc58 old_time=99696310 new_time=99717892
 fs/cifs/inode.c: cifs_revalidate - inode unchanged
 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 35956) rc = 0
 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 35957 with uid: 1000
 fs/cifs/inode.c: Revalidate: \sambatest inode 0xcdd0bc58 count 2 dentry: 0xcdd22110 d_time 0 jiffies 99717892
 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 35957) rc = 0
 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 35958 with uid: 1000
 fs/cifs/inode.c: Revalidate: \sambatest inode 0xcdd0bc58 count 2 dentry: 0xcdd22110 d_time 0 jiffies 99717896
 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 35958) rc = 0
 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 35959 with uid: 1000
 fs/cifs/inode.c: Revalidate: \sambatest inode 0xcdd0bc58 count 2 dentry: 0xcdd22110 d_time 0 jiffies 99717896
 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 35959) rc = 0
 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 35960 with uid: 1000
 fs/cifs/inode.c: Revalidate: \sambatest\test.txt inode 0xcddec030 count 1 dentry: 0xe2b98f68 d_time 99624805 jiffies 99718000
 fs/cifs/inode.c: Getting info on \sambatest\test.txt
 fs/cifs/transport.c: For smb_command 50
 fs/cifs/transport.c: Sending smb:  total_len 116
 fs/cifs/connect.c: rfc1002 length 0xba
 fs/cifs/inode.c: inode 0xcddec030 old_time=99696418 new_time=99718000
 fs/cifs/inode.c: cifs_revalidate - inode unchanged
 fs/cifs/file.c: CIFS VFS: in cifs_writepages as Xid: 35961 with uid: 1000
 fs/cifs/file.c: CIFS VFS: leaving cifs_writepages (xid = 35961) rc = 0
 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 35960) rc = 0
 fs/cifs/file.c: CIFS VFS: in cifs_open as Xid: 35962 with uid: 1000
 fs/cifs/file.c: inode = 0xcddec030 file flags are 0x0 for \sambatest\test.txt
 fs/cifs/transport.c: For smb_command 162
 fs/cifs/transport.c: Sending smb:  total_len 128
 fs/cifs/connect.c: rfc1002 length 0x6b
 fs/cifs/file.c: inode unchanged on server
 fs/cifs/inode.c: Getting info on \sambatest\test.txt
 fs/cifs/inode.c: inode 0xcddec030 old_time=99718000 new_time=99718000
 fs/cifs/file.c: Exclusive Oplock granted on inode cddec030
 fs/cifs/file.c: CIFS VFS: leaving cifs_open (xid = 35962) rc = 0
 fs/cifs/file.c: CIFS VFS: in cifs_writepages as Xid: 35963 with uid: 1000
 fs/cifs/file.c: CIFS VFS: leaving cifs_writepages (xid = 35963) rc = 0
 fs/cifs/file.c: Flush inode cddec030 file d7935500 rc 0
 fs/cifs/file.c: CIFS VFS: in cifs_close as Xid: 35964 with uid: 1000
 fs/cifs/cifssmb.c: In CIFSSMBClose
 fs/cifs/transport.c: For smb_command 4
 fs/cifs/transport.c: Sending smb:  total_len 45
 fs/cifs/connect.c: rfc1002 length 0x27
 fs/cifs/file.c: closing last open instance for inode cddec030
 fs/cifs/file.c: CIFS VFS: leaving cifs_close (xid = 35964) rc = 0
device eth0 left promiscuous mode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sambatest.pcap
Type: application/octet-stream
Size: 1813 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/linux-cifs-client/attachments/20100202/55177726/attachment.obj>


More information about the linux-cifs-client mailing list