CIFS mount does not update file size for opened (for read) files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Hi,
I encountered this bug with cifs under Ubuntu 5.10: if I mount a filesystem
using cifs and then modify a file on the server machine, the client side does
not update the filesize (or access time) for any opened file (for reading).
Here is a scenario (server is the machine providing the cifs share, client and
client1 are two terminals on the client machine which mounts the share):
server> ls -al test
-rw------- 1 user user 1780 Nov 4 16:09 test
client> mount //server/share /mnt/test -t cifs -o username=user
client> ls -al test
-rw------- 1 radu user 1780 2005-11-04 16:09 test
client1> tail -f test
server> echo "1234567890" >> mail/test
server> ls -al mail/test
-rw------- 1 radu user 1791 Nov 4 16:14 mail/test
client> ls -al test
-rw------- 1 radu user 1780 2005-11-04 16:09 test
As you can see, the filesize and access time are not updated for client, and
nothing shows up in the second terminal client1 (which runs tail -f test).
If ther test file is not opened (with tail -f or other program), the size and
time are updated fine. The size and time are also updated fine if the share is
mounted as smbfs, regardless if the file is opened for reading or not.
So, this is a problem of cifs only.
Thanks,
--
Radu
Changed in samba: | |
assignee: | nobody → adconrad |
Changed in samba: | |
status: | Needs Info → Unconfirmed |
Changed in samba: | |
assignee: | adconrad → ubuntu-kernel-server |
Changed in linux (Ubuntu): | |
assignee: | Ubuntu Kernel Server Team (ubuntu-kernel-server) → nobody |
Radu, are you still seeing this issue with 6.06 or 6.10?