bug-coreutils
[Top][All Lists]
Advanced

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

Re: rm -r sometimes produces errors under NFS


From: Vincent Lefevre
Subject: Re: rm -r sometimes produces errors under NFS
Date: Mon, 5 Mar 2007 23:39:55 +0100
User-agent: Mutt/1.5.14-vl-r16324 (2007-03-03)

On 2007-03-05 21:59:37 +0100, Jim Meyering wrote:
> Vincent Lefevre <address@hidden> wrote:
> > But IMHO, rm should remember that is has already done an unlink and
> > there shouldn't be a diagnostic in this case.
> 
> Unfortunately it's not that easy.
> If I were to make such a change, it is quite likely
> that it would cause a real unlink failure not to be
> reported, and *that* would be serious.

IMHO, only the fact that unlink on the *arguments* could not be
performed correctly should be reported. But in a recursive rm,
I don't see any reason to report internal failure.

Moreover I don't see the point of doing two unlink's, as long as
the first unlink succeeded.

> Here, you have a work-around (use -f) that works just fine.

This is not an acceptable solution: using -f is dangerous and I
don't necessarily want protected files to be removed.

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)




reply via email to

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