Bug#593964: gedit: save error on NTFS in VBox with shared folders

Matthijs Melchior mmelchior at xs4all.nl
Mon Aug 23 21:17:09 UTC 2010


On 08/23/2010 10:41 AM, Josselin Mouette wrote:
> Le dimanche 22 août 2010 à 18:46 +0200, Matthijs Melchior a écrit :
>    
>> Could not save the file /C/Temp/test-gedit.
>> Unexpected error: Error renaming temporary file: Text file busy
>>      
>    
>> 20724 rename("/C/Temp/.goutputstream-P3PXHV", "/C/Temp/test-gedit"
>> <unfinished ...>
>> 20724<... rename resumed>  )            = -1 ETXTBSY (Text file busy)
>> 20724 close(26<unfinished ...>
>>
>> This suggests the reason for the problem:
>> The .goutputstream-P3PXHV file is being renamed before it is closed.
>> I believe this is a problem on NTFS...
>>      
>    
>> Please change gedit and/or glib to aviod this error.
>>      
> I’m afraid that renaming the file before closing it is the appropriate
> behavior. I don’t think we should change this behavior because of one
> broken filesystem implementation.
>
> What kind of filesystem is /C in VirtualBox, anyway? I guess it is not
> directly mounted as NTFS.
>
> Cheers,
>    

It is a VBox shared folder:
$ df -hT /C
Filesystem    Type    Size  Used Avail Use% Mounted on
C_DRIVE     vboxsf    233G   46G  188G  20% /C

The error can be handled more graceful:
After the ETXTBSY error, the file can be saved to its original name
(which has been moved away to its backup name already) and after that
is successful remove the temporary file. This is not an efficient way
to save a file, but it does not change behavior on sane filesystems
and is expected work on the VBox shared folders...

-- 
Thanks for your attention.

	Matthijs Melchior.







More information about the pkg-gnome-maintainers mailing list