Moving open files
Dotan Cohen
dotancohen at gmail.com
Mon Jul 7 14:59:37 UTC 2008
2008/7/7 Smoot Carl-Mitchell <smoot at tic.com>:
> On Mon, 2008-07-07 at 14:56 +0300, Dotan Cohen wrote:
>> A user recently found that Ubuntu has a dataloss danger when moving
>> open files. To confirm:
>> 1) Open file in OOo.
>> 2) Move file to other location.
>> 3) Make changes to file in OOo.
>> 4) Save file in OOo.
>>
>> Who's responsibility is it to make sure that files in use are either
>> not moved, or that saves to the file are performed on the file's new
>> location? Is this the responsibility of OOo, KDE, or the Linux kernel?
>
> In Unix/Linux systems, it has generally been the application's
> responsibility to handle file locking and sharing.
I see, thanks.
> In general the
> standard utilities (e.g. mv, cp) do not lock files. There are hooks for
> file locking (flock, fcntl), but all locking is advisory.
I see. How can I tell if OOo did not set the lock, or if Dolphin ignored it?
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
More information about the ubuntu-users
mailing list