From: Peter Staubach <staubach@redhat.com>
To: "Topp, Kenneth" <Kenneth.Topp@gs.com>
Cc: nfs@lists.sourceforge.net
Subject: Re: cannot remove silly renamed files
Date: Tue, 19 Sep 2006 13:46:51 -0400 [thread overview]
Message-ID: <45102D0B.5080202@redhat.com> (raw)
In-Reply-To: <5FD3925640200143AA51A2F603FEB86A02258293@gsmbnmp19es.firmwide.corp.gs.com>
Topp, Kenneth wrote:
>
> Hi,
>
> I've searched the archive but didn't find anything related. 2.6
> doesn't allow you to delete .nfsXXX (silly renamed) files from the
> host that has it open. 2.4 and solaris 2.X has allowed one to shoot
> oneself in the foot.
>
> Can we update the code to do a rename twice then allow removal rather
> then blocking it indefinitely? The current code changes breaks expect
> commands like "/bin/rm -rf dir/", which I'm sure is defined somewhere
> in POSIX.
>
Actually, I don't think that Solaris allows the .nfs temporary files to be
removed either. The unlink(2) system call may not fail, but all that the
client does is to rename the file to a new .nfs temporary name.
Part of the danger of allowing these files to be really removed is, as you
say, to allow you to shoot yourself in the foot. However, it would also
allow someone else to shoot you in the foot, which wouldn't be so good.
I might suggest rearchitecting the solution which depends upon things like
"rm -fr dir" to work by renaming "dir" to something else and then
proceeding.
ps
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
prev parent reply other threads:[~2006-09-19 17:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-19 17:40 cannot remove silly renamed files Topp, Kenneth
2006-09-19 17:46 ` Peter Staubach [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45102D0B.5080202@redhat.com \
--to=staubach@redhat.com \
--cc=Kenneth.Topp@gs.com \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.