Comment 45 for bug 286828

Revision history for this message
Martien Verbruggen (martien.verbruggen) wrote : Re: Access to samba<3.0.26 shares using CIFS is broken on 8.10

I've attached a tar file with two Wireshark dumps, as I couldn't work out how to
attach two files to a comment here directly.

If more information is required, please let me know.

Server: DNS-323, samba 3.0.24
Client: Ubuntu 8.10, kernel 2.6.27-7-generic

with standard settings:
-----------------------

Wireshark dump file: cifs.no-options.filtered.dump

mgjv# cat /proc/fs/cifs/LinuxExtensionsEnabled
1
mgjv# mount -t cifs -o rw,user=dummy,password=testme //dns-323/Shared /mnt/dummy
mgjv# ls -l /mnt/dummy/Temp/testfile
ls: cannot access /mnt/dummy/Temp/testfile: No such file or directory
mgjv# touch /mnt/dummy/Temp/testfile
touch: setting times of `/mnt/dummy/Temp/testfile': Not a directory
mgjv# ls -l /mnt/dummy/Temp/testfile
-rwxrwxrwx 1 507 502 0 2008-11-20 10:15 /mnt/dummy/Temp/testfile
mgjv# echo "" > /mnt/dummy/Temp/testfile
zsh: not a directory: /mnt/dummy/Temp/testfile
mgjv# ls -l /mnt/dummy/Temp/testfile
-rwxrwxrwx 1 507 502 0 2008-11-20 10:15 /mnt/dummy/Temp/testfile
mgjv# rm /mnt/dummy/Temp/testfile
mgjv# echo "" > /mnt/dummy/Temp/testfile
mgjv# ls -l /mnt/dummy/Temp/testfile
-rwxrwxrwx 1 507 502 1 2008-11-20 10:16 /mnt/dummy/Temp/testfile
mgjv# rm /mnt/dummy/Temp/testfile
mgjv# umount /mnt/dummy

with nounix mount option
------------------------

Wireshark dump file: cifs.nounix.filtered.dump

The mode when the file has been created doesn't look right.
The behaviour is the same when /proc/fs/cifs/LinuxExtensionsEnabled is set to 0.

mgjv# cat /proc/fs/cifs/LinuxExtensionsEnabled
1
mgjv# mount -t cifs -o rw,user=dummy,password=testme,nounix //dns-323/Shared /mnt/dummy
mgjv# ls -l /mnt/dummy/Temp/testfile
ls: cannot access /mnt/dummy/Temp/testfile: No such file or directory
mgjv# touch /mnt/dummy/Temp/testfile
mgjv# ls -l /mnt/dummy/Temp/testfile
-rwxrwSrwx 1 root root 0 2008-11-20 10:22 /mnt/dummy/Temp/testfile
mgjv# echo "" > /mnt/dummy/Temp/testfile
zsh: not a directory: /mnt/dummy/Temp/testfile
mgjv# ls -l /mnt/dummy/Temp/testfile
-rwxrwSrwx 1 root root 0 2008-11-20 10:22 /mnt/dummy/Temp/testfile
mgjv# rm /mnt/dummy/Temp/testfile
mgjv# echo "" > /mnt/dummy/Temp/testfile
mgjv# ls -l /mnt/dummy/Temp/testfile
-rwxrwSrwx 1 root root 1 2008-11-20 10:18 /mnt/dummy/Temp/testfile
mgjv# rm /mnt/dummy/Temp/testfile
mgjv# umount /mnt/dummy