bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mv should call fsync before erasing source file


From: drwowe
Subject: Re: mv should call fsync before erasing source file
Date: Sat, 3 Oct 2009 15:45:21 -0700 (PDT)


Jim Meyering wrote:
> 
> Maybe you want a new option to enable this behavior when
> does not do an atomic rename, but it will never be the
> efault, because it would cause a huge performance hit
> when copying many files between devices.
> 
True, it's the classic reliability vs performance tradeoff, although in the
case of a batch move, the algorithm could be changed to "copy many, sync
many, remove many" in that order.

Anyway, a command line option would be better than nothing.  Just the
existence of the option and a short blurb in "mv --help" could potentially
make someone reading the help text aware who might otherwise not be.  Of
course there are workarounds (such as using find/dd/rm in a script as you
suggest, in fact I might just write such a script and alias it to mv) but
I'm especially concerned for a newbie who might not even know there was a
potential for a problem.
 
-- 
View this message in context: 
http://www.nabble.com/mv-should-call-fsync-before-erasing-source-file-tp25725948p25733498.html
Sent from the Gnu - Coreutils - Discuss mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]