linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Al Viro <viro@ftp.linux.org.uk>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
	dhowells@redhat.com, linux-fsdevel@vger.kernel.org
Subject: Re: How to handle non-local renames?
Date: Thu, 28 Sep 2006 09:31:59 -0400	[thread overview]
Message-ID: <1159450319.5439.44.camel@lade.trondhjem.org> (raw)
In-Reply-To: <20060928131545.GF29920@ftp.linux.org.uk>

On Thu, 2006-09-28 at 14:15 +0100, Al Viro wrote:
> > That would mean that I can in practice unmount directories on your
> > client simply by renaming a directory on my client. I can't see how that
> > would be acceptable either.
> 
> And what are you going to do if I remove it and its ancestors on my client?

If it is in a subdirectory to which you are not supposed to have write
access, then I'm going to yell bloody murder :-)
Ditto if the same thing happens when you rename a directory to which you
do have access, and that screws over my process in a subdir to which you
don't have access.

The point is that NFS has quite enough posix violations already on its
grubby little hands. As far as posix is concerned, renaming a parent is
not supposed to affect processes in the subdirectories. There is
currently no reason why we can't support that behaviour in the NFS
client too barring VFS quirks.
Furthermore, it would upset a lot of people to change the current
behaviour which does support remote rename, and has supported it for the
past 10 years at least. I'd therefore prefer to go for a workaround that
addresses the problem of the deadlocks instead of the useful
functionality.


  reply	other threads:[~2006-09-28 13:32 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-17 20:43 How to handle non-local renames? Miklos Szeredi
2006-09-18 16:38 ` Trond Myklebust
2006-09-18 18:00   ` Miklos Szeredi
2006-09-19  8:24   ` Miklos Szeredi
2006-09-22  0:00     ` Trond Myklebust
2006-09-22  6:22       ` Miklos Szeredi
2006-09-28 10:02         ` Al Viro
2006-09-28 10:03           ` Al Viro
2006-09-28 10:22             ` Miklos Szeredi
2006-09-28 10:16           ` Miklos Szeredi
2006-09-28 10:27             ` Al Viro
2006-09-28 10:53               ` Miklos Szeredi
2006-09-28 11:21                 ` Al Viro
2006-09-28 11:44                   ` Miklos Szeredi
2006-09-28 11:54                     ` Al Viro
2006-09-28 12:31           ` Trond Myklebust
2006-09-28 12:42             ` Al Viro
2006-09-28 12:57               ` Trond Myklebust
2006-09-28 13:15                 ` Al Viro
2006-09-28 13:31                   ` Trond Myklebust [this message]
2006-09-28 14:20                     ` Al Viro
2006-09-28 18:24                       ` Trond Myklebust
2006-09-28 20:50                         ` Randy Dunlap
2006-09-29 14:55                           ` Trond Myklebust
2006-09-29 16:03                             ` Randy Dunlap

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=1159450319.5439.44.camel@lade.trondhjem.org \
    --to=trond.myklebust@fys.uio.no \
    --cc=dhowells@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=viro@ftp.linux.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).