Multiple cifs issues - CIFS: reset ATTR_READONLY on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-source-2.6.15 (Ubuntu) |
Won't Fix
|
Undecided
|
Chuck Short | ||
linux-source-2.6.22 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: smbfs
Since Dapper (which this bug-report is to be considered for) I started using cifs instead of smbfs to circumvent the issues reported in Bug#44874 and to get support for large files >2 GiB. The shares are hosted on a machine running Windows 2000.
I have multiple shares mounted via fstab, looking like this (w/o the newlines):
//server/sharename /mnt/localdir cifs rw,soft,
dir_mode=
Right after boot, the (working) cifs-mounts don't show up in mtab, as already mentioned in Bug#44874. This causes double-mounts if "mount -a" will be executed, and "umount -a" won't work as supposed.
But my main grievance is the following:
Once a file gets its mode set to 444 (full read-only), it can't be changed anymore. chmod won't give any errors, it just doesn't do anything. As long as the mode is set to at least 644, chmod works fine. So once 444 is set, I have to change the read-only attribute directly on the Windows-machine back to read/write, or remount using smbfs instead of cifs to chmod.
Also, when viewing a PDF-file on such a cifs-mounted share, KPDF constantly reloads the file, which is very annoying. I have to disable the option "Watch file" to stop the constant reloading. This tells me, that somehow files on cifs-mounted shares appear "unstable" or constantly changing to some applications.
smbfs works correctly in both cases, but is to be considered obsolete and has other, major issues.
For now, I have no further clue what may be causing this behaviour.
EDIT:
tar also confirms the "unstableness" of files on cifs-shares when creating a tar-archive. Output from tar (slightly modified):
tar: /mnt/[path]
description: | updated |
description: | updated |
description: | updated |
description: | updated |
I must admit myself I can add some further "weight" on this "unstableness" issue.
I have been trying to do various tests using cifs and a NAS drive and I got a lot of funny results. For example when copying data, small files will go through fine but bigger ones will get an "access denied" exception (and yes there was enough space on the NAS drive!)
For more details see #74427 (I am not sure at this stage if this is exactly the same problem, hence a different bug report. But in any case the feeling of "unstableness" is the same!).