[Bug 475689] New: Cannot overwrite files on a mounted cifs filesystem
https://bugzilla.novell.com/show_bug.cgi?id=475689 Summary: Cannot overwrite files on a mounted cifs filesystem Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i586 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: juergen.kirschbaum@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-1.4 Firefox/3.0.6 Since openSUSE 11.1 it's not possible to overwrite files on a mounted cifs filesystem. jk@skywalker:/mnt/jk/tmp/bug> mount|grep cifs //rambo/jk on /mnt/jk type cifs (rw,mand,noexec,nosuid,nodev,user=jk) jk@skywalker:/mnt/jk/tmp/bug> ls -la total 0 drwxr-x--- 1 jk jk 0 Feb 13 17:10 . drwxr-x--- 2 jk jk 0 Feb 13 17:06 .. jk@skywalker:/mnt/jk/tmp/bug> touch foo jk@skywalker:/mnt/jk/tmp/bug> ls -la total 0 drwxr-x--- 1 jk jk 0 Feb 13 17:10 . drwxr-x--- 2 jk jk 0 Feb 13 17:06 .. -rw-r----- 1 jk jk 0 Feb 13 17:10 foo jk@skywalker:/mnt/jk/tmp/bug> echo "foo" >foo -bash: foo: No such file or directory jk@skywalker:/mnt/jk/tmp/bug> ls -la total 0 drwxr-x--- 1 jk jk 0 Feb 13 17:10 . drwxr-x--- 2 jk jk 0 Feb 13 17:06 .. -rw-r----- 1 jk jk 0 Feb 13 17:10 foo jk@skywalker:/mnt/jk/tmp/bug> echo "foo" >>foo jk@skywalker:/mnt/jk/tmp/bug> ls -la total 4 drwxr-x--- 1 jk jk 0 Feb 13 17:10 . drwxr-x--- 2 jk jk 0 Feb 13 17:06 .. -rw-r----- 1 jk jk 4 Feb 13 17:11 foo jk@skywalker:/mnt/jk/tmp/bug> Doing the same from an openSUSE 11.0 or below and a CentOS 5.2 works without problems. It seems to me, that something is wrong with the cifs kernel-module. kernel-pae-2.6.27.7-9.1 kernel-pae-base-2.6.27.7-9.1 kernel-pae-extra-2.6.27.7-9.1 kernel-syms-2.6.27.7-9.1 cifs-mount-3.2.6-0.3.1 Any ideas? JK Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 Juergen Kirschbaum <juergen.kirschbaum@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juergen.kirschbaum@gmail.co | |m Target Milestone|--- |Final -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 Juergen Kirschbaum <juergen.kirschbaum@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Target Milestone|Final |--- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c1 --- Comment #1 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-02 03:18:59 MST --- Problem still exists with new kernel-update: kernel-pae-2.6.27.19-3.2.1 kernel-pae-base-2.6.27.19-3.2.1 kernel-pae-extra-2.6.27.19-3.2.1 kernel-syms-2.6.27.19-3.2.1 cifs-mount-3.2.6-0.3.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User cyhan@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c2 Chuanye Han <cyhan@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |cyhan@novell.com Info Provider| |juergen.kirschbaum@gmail.co | |m --- Comment #2 from Chuanye Han <cyhan@novell.com> 2009-03-04 01:26:59 MST --- Juergen, thank you for your report. Could you please help to provide more information (Please see http://en.opensuse.org/Bugs/Samba)? Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c3 Juergen Kirschbaum <juergen.kirschbaum@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|juergen.kirschbaum@gmail.co | |m | --- Comment #3 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-04 11:54:51 MST --- Created an attachment (id=277135) --> (https://bugzilla.novell.com/attachment.cgi?id=277135) Requested info for smb debugging (i.e.: cifs-debug.cap, cifs-debug.txt) Hi Chuan, attached you find the requested info. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 Chuanye Han <cyhan@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |samba-maintainers@SuSE.de |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 Lars Müller <lmuelle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samba-maintainers@SuSE.de AssignedTo|samba-maintainers@SuSE.de |sjayaraman@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User sjayaraman@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c4 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #4 from Suresh Jayaraman <sjayaraman@novell.com> 2009-03-05 23:02:03 MST --- It's not reproducible for me with Samba server. What is your CIFS Server? Samba or Windows? Which version? mount | grep cifs //164.99.138.52/share on /mnt/cifs type cifs (rw,mand,noexec,nosuid,nodev) guest@jay-t60p:/mnt/cifs> touch foo guest@jay-t60p:/mnt/cifs> ll foo -rw-r--r-- 1 guest users 0 2009-03-06 10:48 foo guest@jay-t60p:/mnt/cifs> echo "foo" >foo guest@jay-t60p:/mnt/cifs> ls -al foo -rwxr--r-- 1 guest users 4 2009-03-06 10:49 foo guest@jay-t60p:/mnt/cifs> echo "foo" >>foo guest@jay-t60p:/mnt/cifs> ls -al foo -rwxr--r-- 1 guest users 8 2009-03-06 10:49 foo guest@jay-t60p:/mnt/cifs> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User sjayaraman@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c5 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |juergen.kirschbaum@gmail.co | |m --- Comment #5 from Suresh Jayaraman <sjayaraman@novell.com> 2009-03-05 23:40:01 MST --- Do you have SELinux enabled? I don't think cifs support all the namespaces, yet. Could you disable and see whether the problem goes away? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c6 Juergen Kirschbaum <juergen.kirschbaum@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|juergen.kirschbaum@gmail.co | |m | --- Comment #6 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-06 09:11:49 MST --- CIFS-Server ist a 32-bit Debian Etch with Samba 3.0.24-6etch10. SELinux is not installed on my system. AppArmor is completely disabled: root@skywalker:/root# apparmor_status apparmor module is loaded. apparmor filesystem is not mounted. As mentioned above, with other clients like WinXP, CentOS, openSUSE <= 11.0 there are no problems. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c7 --- Comment #7 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-06 09:28:28 MST --- Forgot about SELinux: root@skywalker:/root# getsebool getsebool: SELinux is disabled -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c8 --- Comment #8 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-07 10:34:21 MST --- I did a little further investigation. The following command was executed: LANG=C strace -f cp /dev/null /mnt/jk/tmp/bug/foo >~/tmp/cifs-strace.txt 2>&1 The relevant parts from strace are the following: stat64("/mnt/jk/tmp/bug/foo", {st_mode=S_IFREG|0640, st_size=731, ...}) = 0 stat64("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 stat64("/mnt/jk/tmp/bug/foo", {st_mode=S_IFREG|0640, st_size=731, ...}) = 0 open("/dev/null", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 open("/mnt/jk/tmp/bug/foo", O_WRONLY|O_TRUNC|O_LARGEFILE) = -1 ENOENT (No such file or directory) The relevant parts from CIFS debug: fs/cifs/inode.c: Old time 5486936 fs/cifs/inode.c: New time 5493311 fs/cifs/inode.c: cifs_revalidate - inode unchanged fs/cifs/file.c: CIFS VFS: in cifs_writepages as Xid: 4684 with uid: 1111 fs/cifs/file.c: CIFS VFS: leaving cifs_writepages (xid = 4684) rc = 0 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4683) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4685 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp\bug\foo inode 0xecd520a8 count 1 dentry: 0xe4dea5b8 d_time 5476236 jiffies 5493311 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4685) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4686 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp inode 0xeb964b30 count 1 dentry: 0xec16cc6c d_time 5480748 jiffies 5493311 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4686) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4687 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp\bug inode 0xec0f4da0 count 1 dentry: 0xecd4cd74 d_time 5480902 jiffies 5493311 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4687) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4688 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp\bug\foo inode 0xecd520a8 count 1 dentry: 0xe4dea5b8 d_time 5476236 jiffies 5493311 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4688) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4689 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp\bug\foo inode 0xecd520a8 count 1 dentry: 0xe4dea5b8 d_time 5476236 jiffies 5493311 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4689) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4690 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp inode 0xeb964b30 count 1 dentry: 0xec16cc6c d_time 5480748 jiffies 5493312 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4690) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4691 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp\bug inode 0xec0f4da0 count 1 dentry: 0xecd4cd74 d_time 5480902 jiffies 5493312 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4691) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 4692 with uid: 1111 fs/cifs/inode.c: Revalidate: \\rambo\jk\tmp\bug\foo inode 0xecd520a8 count 1 dentry: 0xe4dea5b8 d_time 5476236 jiffies 5493312 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 4692) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_setattr_nounix as Xid: 4693 with uid: 1111 fs/cifs/inode.c: setattr on file foo attrs->iavalid 0x8068 fs/cifs/file.c: CIFS VFS: in cifs_writepages as Xid: 4694 with uid: 1111 fs/cifs/file.c: CIFS VFS: leaving cifs_writepages (xid = 4694) rc = 0 fs/cifs/cifssmb.c: In SetEOF fs/cifs/transport.c: For smb_command 50 fs/cifs/transport.c: Sending smb of length 128 fs/cifs/connect.c: rfc1002 length 0x27 fs/cifs/connect.c: invalid transact2 word count Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND fs/cifs/netmisc.c: Mapping smb error code 2 to POSIX err -2 fs/cifs/cifssmb.c: SetPathInfo (file size) returned -2 fs/cifs/inode.c: SetEOF by path (setattrs) rc = -2 fs/cifs/inode.c: CIFS VFS: leaving cifs_setattr_nounix (xid = 4693) rc = -2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User sjayaraman@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c9 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |juergen.kirschbaum@gmail.co | |m --- Comment #9 from Suresh Jayaraman <sjayaraman@novell.com> 2009-03-09 00:22:18 MST --- Looks like you have "unix extensions" disabled for some reason.. Is it so? It's best to use unix extensions with Server that support them. Can you enable in your Samba server configuration: unix extensions = yes and check in the cifs client whether unix extensions are disabled by doing cat /proc/fs/cifs/LinuxExtensionsEnabled If it is disabled (0) then try enabling it by doing: echo 1 > /proc/fs/cifs/LinuxExtensionsEnabled and then see it fixes the issue. But, I'm yet to figure why it works with 11.0 clients. Are you using the same server, mount options in this case too? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User sjayaraman@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c10 --- Comment #10 from Suresh Jayaraman <sjayaraman@novell.com> 2009-03-09 03:12:44 MST --- Apart from the above, my reproduction attempt of your test in Comment #8, shows that in my case where the test succeeds, --- stat("/mnt/cifs/tmp/bug/foo", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 stat("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 stat("/mnt/cifs/tmp/bug/foo", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/dev/null", O_RDONLY) = 3 fstat(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 open("/mnt/cifs/tmp/bug/foo", O_WRONLY|O_TRUNC) = 4 fstat(4, {st_mode=S_IFREG|0744, st_size=0, ...}) = 0 --- open is called with O_LARGEFILE. Also from the traces it is clear that the cifs client sends a SET_PATH_INFO request with the level Set EOF Information, but the server returns -ENOENT. From what I say from this is that the client is returning the error it got from the server. Server should not be returning -ENOENT for a file that's existing. Even if this is due to Unix extensions it should return -EPERM OR -EINVAL or the likes. Few other information would be of interest: - architecture/platform - glibc version - filesystem being exported via Samba -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c11 Juergen Kirschbaum <juergen.kirschbaum@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|juergen.kirschbaum@gmail.co | |m | --- Comment #11 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-09 12:13:51 MST --- Samba-Server: - x86_32 Debian Etch 2.6.24-etchnhalf.1-686 - Samba 3.0.24-6etch10 version 3.0.24 - glibc libc6-i686 2.3.6.ds1-13etch9+b1 - ext3 exported via Samba with no ACLs --- root@rambo:~# tune2fs -l /dev/md5 tune2fs 1.40-WIP (14-Nov-2006) Filesystem volume name: <none> Last mounted on: <not available> Filesystem UUID: fc4da619-6971-44d9-8339-91f102eb2f0f Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal resize_inode dir_index filetype needs_recovery sparse_super large_file Filesystem flags: signed directory hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 33931264 Block count: 67850496 Reserved block count: 3392524 Free blocks: 12037892 Free inodes: 33805780 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 1007 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 16384 Inode blocks per group: 512 Filesystem created: Mon Dec 31 15:42:06 2007 Last mount time: Wed Mar 4 18:40:37 2009 Last write time: Wed Mar 4 18:40:37 2009 Mount count: 44 Maximum mount count: -1 Last checked: Mon Dec 31 15:42:06 2007 Check interval: 0 (<none>) Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 8 Default directory hash: tea Directory Hash Seed: 5024195c-768b-4781-a335-18c0658d8317 Journal backup: inode blocks --- CIFS Client: - x86_32 openSUSE 11.1 2.6.27.19-3.2-pae - glibc-2.9-2.11.1 In smb.conf the line is changed: unix extensions = yes But this does not resolve this issue. Still the same problem. Mountoptions as in /etc/fstab: //rambo/jk /mnt/jk cifs noauto,users,credentials=/home/jk/.smb_mount,uid=jk,gid=jk,file_mode=0640,dir_mode=0750 0 0 Executing command: cp /dev/null /mnt/jk/tmp/bug/foo A strace of the smbd-process on the samba-server prints the following: --- read(22, "\0\0\0f", 4) = 4 read(22, "\377SMB2\0\0\0\0\0\1\320\0\0\0\0\0\0\0\0\0\0\0\0\1\0\31"..., 102) = 102 stat64("tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=10180, len=1}, 0xbfce56d4) = 0 fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=10180, len=1}, 0xbfce5604) = 0 write(22, "\0\0\0\240\377SMB2\0\0\0\0\200A\300\0\0\0\0\0\0\0\0\0\0"..., 164) = 164 select(23, [5 22], NULL, NULL, {60, 0}) = 1 (in [22], left {59, 996000}) read(22, "\0\0\0n", 4) = 4 read(22, "\377SMB2\0\0\0\0\0\1\320\0\0\0\0\0\0\0\0\0\0\0\0\1\0\31"..., 110) = 110 stat64("tmp/bug", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 lstat64("tmp/bug", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 lstat64("tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("tmp/bug", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 lstat64("tmp/bug", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=440, len=1}, 0xbfce56d4) = 0 fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=440, len=1}, 0xbfce5604) = 0 write(22, "\0\0\0\240\377SMB2\0\0\0\0\200A\300\0\0\0\0\0\0\0\0\0\0"..., 164) = 164 select(23, [5 22], NULL, NULL, {60, 0}) = 1 (in [22], left {59, 996000}) read(22, "\0\0\0v", 4) = 4 read(22, "\377SMB2\0\0\0\0\0\1\320\0\0\0\0\0\0\0\0\0\0\0\0\1\0\31"..., 118) = 118 stat64("tmp/bug/foo", {st_mode=S_IFREG|0640, st_size=731, ...}) = 0 lstat64("tmp/bug/foo", {st_mode=S_IFREG|0640, st_size=731, ...}) = 0 lstat64("tmp/bug", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 lstat64("tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("tmp/bug/foo", {st_mode=S_IFREG|0640, st_size=731, ...}) = 0 lstat64("tmp/bug/foo", {st_mode=S_IFREG|0640, st_size=731, ...}) = 0 fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=6532, len=1}, 0xbfce56d4) = 0 fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=6532, len=1}, 0xbfce5604) = 0 write(22, "\0\0\0\240\377SMB2\0\0\0\0\200A\300\0\0\0\0\0\0\0\0\0\0"..., 164) = 164 select(23, [5 22], NULL, NULL, {60, 0}) = 1 (in [22], left {59, 996000}) read(22, "\0\0\0\200", 4) = 4 read(22, "\377SMB2\0\0\0\0\0\1\320\0\0\0\0\0\0\0\0\0\0\0\0\1\0\31"..., 128) = 128 stat64("rambo/jk/tmp/bug/foo", 0xbfce6464) = -1 ENOENT (No such file or directory) write(22, "\0\0\0#\377SMB24\0\0\300\200A\300\0\0\0\0\0\0\0\0\0\0\0"..., 39) = 39 select(23, [5 22], NULL, NULL, {60, 0} <unfinished ...> --- Output from CIFS-Client: --- fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160934 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp inode 0xed4dab70 count 1 dentry: 0xd6d336c0 d_time 14550077 jiffies 15213625 fs/cifs/inode.c: Getting info on //rambo/jk/tmp fs/cifs/cifssmb.c: In QPathInfo (Unix) the path //rambo/jk/tmp fs/cifs/transport.c: For smb_command 50 fs/cifs/transport.c: Sending smb of length 102 fs/cifs/connect.c: rfc1002 length 0xa4 fs/cifs/inode.c: Old time 15176516 fs/cifs/inode.c: New time 15213626 fs/cifs/inode.c: Size 0 and blocks 0 fs/cifs/inode.c: cifs_revalidate - inode unchanged fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160934) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160935 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug inode 0xed4dace8 count 1 dentry: 0xdbfca21c d_time 14818051 jiffies 15213626 fs/cifs/inode.c: Getting info on //rambo/jk/tmp/bug fs/cifs/cifssmb.c: In QPathInfo (Unix) the path //rambo/jk/tmp/bug fs/cifs/transport.c: For smb_command 50 fs/cifs/transport.c: Sending smb of length 110 fs/cifs/connect.c: rfc1002 length 0xa4 fs/cifs/inode.c: Old time 15176517 fs/cifs/inode.c: New time 15213626 fs/cifs/inode.c: Size 0 and blocks 0 fs/cifs/inode.c: cifs_revalidate - inode unchanged fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160935) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160936 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug/foo inode 0xecdc5e60 count 1 dentry: 0xecd528d0 d_time 14883758 jiffies 15213626 fs/cifs/inode.c: Getting info on //rambo/jk/tmp/bug/foo fs/cifs/cifssmb.c: In QPathInfo (Unix) the path //rambo/jk/tmp/bug/foo fs/cifs/transport.c: For smb_command 50 fs/cifs/transport.c: Sending smb of length 118 fs/cifs/connect.c: rfc1002 length 0xa4 fs/cifs/inode.c: Old time 15176520 fs/cifs/inode.c: New time 15213627 fs/cifs/inode.c: Size 731 and blocks 8 fs/cifs/inode.c: cifs_revalidate - inode unchanged fs/cifs/file.c: CIFS VFS: in cifs_writepages as Xid: 160937 with uid: 1111 fs/cifs/file.c: CIFS VFS: leaving cifs_writepages (xid = 160937) rc = 0 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160936) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160938 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug/foo inode 0xecdc5e60 count 1 dentry: 0xecd528d0 d_time 14883758 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160938) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160939 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp inode 0xed4dab70 count 1 dentry: 0xd6d336c0 d_time 14550077 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160939) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160940 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug inode 0xed4dace8 count 1 dentry: 0xdbfca21c d_time 14818051 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160940) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160941 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug/foo inode 0xecdc5e60 count 1 dentry: 0xecd528d0 d_time 14883758 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160941) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160942 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug/foo inode 0xecdc5e60 count 1 dentry: 0xecd528d0 d_time 14883758 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160942) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160943 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp inode 0xed4dab70 count 1 dentry: 0xd6d336c0 d_time 14550077 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160943) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160944 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug inode 0xed4dace8 count 1 dentry: 0xdbfca21c d_time 14818051 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160944) rc = 0 fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 160945 with uid: 1111 fs/cifs/inode.c: Revalidate: //rambo/jk/tmp/bug/foo inode 0xecdc5e60 count 1 dentry: 0xecd528d0 d_time 14883758 jiffies 15213627 fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 160945) rc = 0 fs/cifs/inode.c: setattr_unix on file foo attrs->ia_valid=0x8068 fs/cifs/inode.c: CIFS VFS: in cifs_setattr_unix as Xid: 160946 with uid: 1111 fs/cifs/cifssmb.c: In SetEOF fs/cifs/transport.c: For smb_command 50 fs/cifs/transport.c: Sending smb of length 128 fs/cifs/connect.c: rfc1002 length 0x27 fs/cifs/connect.c: invalid transact2 word count fs/cifs/netmisc.c: Mapping smb error code 2 to POSIX err -2 fs/cifs/cifssmb.c: SetPathInfo (file size) returned -2 fs/cifs/inode.c: SetEOF by path (setattrs) rc = -2 fs/cifs/inode.c: CIFS VFS: leaving cifs_setattr_unix (xid = 160946) rc = -2 --- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c12 --- Comment #12 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-11 05:42:35 MST --- There is a similar bug in https://bugzilla.redhat.com/show_bug.cgi?id=188012 It was resolved with a kernel update. Maybe, something is still wrong with the cifs.ko. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User sjayaraman@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c13 --- Comment #13 from Suresh Jayaraman <sjayaraman@novell.com> 2009-03-11 05:52:31 MST --- (In reply to comment #12)
There is a similar bug in
https://bugzilla.redhat.com/show_bug.cgi?id=188012
It was resolved with a kernel update. Maybe, something is still wrong with the cifs.ko.
This may not be the case since the kernel mentioned in the bug was old and 11.1 has much recent kernel and should include the updates naturally. Are you able to reproduce with recent samba versions? I'll take a deeper look sometime soon. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c14 Juergen Kirschbaum <juergen.kirschbaum@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal --- Comment #14 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-11 14:16:52 MST --- I installed samba version 3.2.5 from samba_3.2.5-4~bpo41+1_i386.deb on my server. The problem has gone. Maybe it was an incompatible combination of openSUSE 11.1 as cifs-client and debian-etch with samba 3.0.24. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User sjayaraman@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c15 --- Comment #15 from Suresh Jayaraman <sjayaraman@novell.com> 2009-03-12 00:31:51 MST --- As mentioned in Comment #10, my investigation shows that the client is reporting back the error(ENOENT) that the server returns and there is nothing wrong with the previous requests it's more likely that it could be a Samba (Server) issue in old versions that might have got fixed later (as you are not able to reproduce it with update Samba version). Will reassign to Samba-Maintainers. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User juergen.kirschbaum@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c17 Juergen Kirschbaum <juergen.kirschbaum@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P4 - Low --- Comment #17 from Juergen Kirschbaum <juergen.kirschbaum@gmail.com> 2009-03-12 12:29:09 MST --- Ok, thank you for your help, you are right. But what is wondering me, the old samba-server ist working with openSUSE 11.0 or below and a CentOS 5.2 cifs-clients. So, as i mentioned above, it seems to me, that this special combination "debian-etch with samba-server 3.0.24 and openSUSE 11.1 cifs-client" is incompatible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475689 User sjayaraman@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=475689#c18 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |juergen.kirschbaum@gmail.co | |m AssignedTo|samba-maintainers@SuSE.de |sjayaraman@novell.com --- Comment #18 from Suresh Jayaraman <sjayaraman@novell.com> 2009-03-12 22:08:26 MST --- Ok,Can you attach the similar debugging information for the openSUSE 11.0 vs Debian-etch Server where it is working? I'll compare and see the past and the current behavior. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com