Errors on file append on CIFS mounted Apple Time Capsule
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: samba
Running Jaunty Alpha 6 Live CD
smbfs: 2:3.3.1-1ubuntu1
$ lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04
$ uname -a
Linux ubuntu 2.6.28-9-generic #31-Ubuntu SMP Wed Mar 11 15:43:58 UTC 2009 i686 GNU/Linux
Mounted Apple Time Capsule:
$ sudo mount -t cifs -o username=
Two different error messages when appending to a text file:
'Input/output error' and 'write error: Bad file descriptor'.
Executed the following commands at /mnt/test:
tshark packet capture from these tests is attached.
---
$ echo "1 2 3" > test
$ cat test
1 2 3
$ echo "4 5 6" >> test
$ cat test
1 2 3
cat: test: Input/output error
$ echo "1 2 3" > test2
$ echo "4 5 6" >> test2
bash: echo: write error: Bad file descriptor
---
Found this in /var/log/kern.log:
Mar 15 21:18:05 ubuntu kernel: [ 1577.323054] CIFS VFS: Write2 ret -9, wrote 0
$ cat /proc/fs/
Display Internal CIFS Data Structures for Debugging
-------
CIFS Version 1.55
Active VFS Requests: 0
Servers:
1) Name: 10.0.0.1 Domain: MSHOME Uses: 1 OS: Apple Base Station
NOS: CIFS 4.32 Capability: 0x207c
SMB session status: 1 TCP status: 1
Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0
Shares:
1) \\capsule\test Mounts: 1 Type: FAT32 DevInfo: 0x0 Attributes: 0x3
PathComponentMax: 255 Status: 0x1 type: 0
MIDs:
---
Comments 82 and 88 to bug #286828 describes the same problem, but I could not find the separate bug requested in comment 85, so I report this.
Bug: https:/
Comment 82: https:/
Comment 88: https:/
Thanks for reporting this bug !
After some research, Apple Time Capsule is implementing its own CIFS server, with lots of issues. On a similar kind of issue, James Peach, an Apple developer working on the Samba project, recommended[1] following this procedure:
Go to <http:// developer. apple.com/ bugreporter/> and log a bug against the TIme Capsule. It would be best to attach a packet trace to the bug. Follow the instructions here: <http:// wiki.samba. org/index. php/Capture_ Packets>
This is probably not a bug in Ubuntu Samba since only Time Capsule shows this behavior. I'll mark this bug as Invalid : if Apple can point back to an issue in the Samba client side, please feel free to reopen this bug !
[1] http://<email address hidden> /msg98930. html