bugGNU Octave - Bugs: bug #54961, Saving file with editor on a CIFS...

 
 

bug #54961: Saving file with editor on a CIFS share results in unexpected Error message

Submitted by:  Bancal Samuel <sbancal>
Submitted on:  Mon 05 Nov 2018 02:25:33 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  None Assigned to:  None
Originator Name:  Bancal Samuel Open/Closed:  Open
Release:  4.4.1 Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 13 Nov 2018 09:00:51 PM UTC, comment #3:

The workaround mentioned in comment #2 should be no problem. I will have a look at it.

We can also stop watching files on network shares, but I guess this is not the desired solution.

Torsten <ttl>
Project Member
Mon 05 Nov 2018 02:27:15 PM UTC, comment #2:

By the way, an other workaround could be to enhance the "Reload externally changed files without prompt" option so that the cursor stays at the position it was just before saving.

Bancal Samuel <sbancal>
Mon 05 Nov 2018 02:26:36 PM UTC, comment #1:

After some investigations, if we add the following arg "actimeo=0" to our mount.cifs command, that behaviour doesn't happen any more. But that disables completely files and dirs attribute cache ... which is not acceptable (e.g. some quick test demonstrates that some operations to become more than 8 times slower).

Bancal Samuel <sbancal>
Mon 05 Nov 2018 02:25:33 PM UTC, original submission:

Hi,

While saving a file with GNU Octave editor on a CIFS share generates an error message, about 1 sec after the file is saved.

This error message says :
It seems that '/home/username/path/to/cifs_mounted/folder/one_file.m' has been modified by another application. Do you want to reload it?
[No] [Yes]

Is there a way to :

a) fix this? (since the file hasn't been changed!)
or
b) add an option "Don't reload externally changed files"? (as a workaround)

We have seen the option to "Reload externally changed files without prompt". That could also be a workaround ... but it's really uncomfortable since after reloading, the cursor get moved to the very beginning of the file every time the file is saved (and reloaded).

Tested softwares are :

+ Octave 4.2.2 on Ubuntu 18.04
+ Octave 4.4.1 on Ubuntu 18.10

Thanks,
Samuel Bancal

Bancal Samuel <sbancal>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by sbancal (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3