file open fails on cifs mount with directio option set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit (Ubuntu) |
Invalid
|
Undecided
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: gedit
Gedit fails on open files located on cifs mounts when mounted with the directio option. That particular option is used to disable caching on the mount so that legacy databases (i.e., dbase) can be accessed and modified without causing data corruption.
Gedit is otherwise capable of creating and saving files on such a mount (although it gives 'file may have been modified' warnings), giving rise to the confusing situation where one can create a file in gedit, close gedit, and be unable to reopen that file in gedit, even though cat, vim, openoffice and so forth can all open the file without complaint.
I _think_ this may be related to the mmap behaviour mentioned here:
> gedit (2.13.0-0ubuntu1) dapper; urgency=low
> ...
> - Reading and writing of files are now handled in an
> asynchronous way (so the user interface never blocks)
> - Local files are read using mmap (when possible)
as the directio option apparently breaks mmap. Nonetheless, most other apps seem to be handling this fine.
Thanks for the bug report. This particular bug has already been reported, but feel free to report any other bugs you find.