Re: Huge bug in mv 4.1.11 (i386)

"James Youngman" <[email protected]> Wed, 9 May 2007 13:09:54 +0100
Newsgroups gmane.comp.gnu.core-utils.bugs,gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
On 5/9/07, Ste=8Ephane Asco'et <[email protected]> wrote:
> Thus, a solution MUST be found. Why not checking the
> space left before starting to move something?

Because a successful check before you start is not a guarantee that
the process can complete successfully.   In the general case, there
will be other users of that {quota,filesystem}.

But, IFF mv is already planning to return an nonzero exit status, and
it has not deleted a source file, and mv knows that the target file is
not yet complete, it should probably indeed unlink the target file.

James.