gedit: can not modify files on CIFS filesystem
I'm having issues with gedit saving files on a CIFS mounted share.
The system I'm using is an OpenSuse 10.3. And I have my Windows shared mounted as a CIFS filesystem. I am mounting the CIFS with default permissions/parameters. And the "mount" command displays it mounted as: "type cifs (rw,mand)" What I'm encountering is that gedit can not modify any files on this CIFS filesystem; not even a file it just created. Gedit can create a file on this CIFS filesystem. But it can only save the file once. Any additional saves will fail. The message that gets displayed is a non-informative: "Could not save the file: $FILENAME" I can not find ANY errors in log files OR even at the commandline when I start gedit from the prompt. BUT all other programs; vi, touch, cat, emacs, sed, etc..; do not have any problems making changes to these very same files. Has anyone else experienced this behavior from gedit ? Thanks; --ET |
Quote:
|
I'm probably not the only person who has ever encountered this situation.
So just in case someone else ever encounters the same situation; I'll post some of my own investigation. Running an strace on gedit during one of these failures and logging it. I've noticed this output: Starting a log and using strace: Code:
> script -a eric.log 2>&1 Code:
8749 open("/SFS/user/wp/trimmer/windows/eric.tmp", O_WRONLY|O_CREAT|O_EXCL, 0666) = -1 EEXIST (File exists) I'll continue to investigate. In the mean time; doesn't anyone else know what might be going wrong ? Thanks; --ET |
What kind of windows system is this. There is a bug with the Windows home server that doesn't allow you to edit files, even using Windows. You need to copy the file to your client machine, edit it, and then replace the original.
It sounds like it may be a locking problem. From the Samba HOWTO & Reference Guide: Code:
The second class of locking is the deny modes. These are set by an application From "Advanced Programming in the Unix Environment" Code:
O_CREAT Create the file if it doesn't exist. ... Code:
8765 rename("/SFS/user/wp/trimmer/windows/eric.tmp", "/SFS/user/wp/trimmer/windows/eric.tmp~") = -1 ETXTBSY (Text file busy) Note that you could have left out later lines where gedit handled this situation. One problem may be Windows' CIFS support not being up to par. Can you try a different editor? (Or rhetorically, a Samba server :) ) |
All times are GMT -5. The time now is 04:12 AM. |