linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Al Viro <viro@ftp.linux.org.uk>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Move across mount,sb
Date: Thu, 15 Mar 2007 01:46:55 +0000	[thread overview]
Message-ID: <20070315014655.GO4095@ftp.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.61.0703150211500.1199@yvahk01.tjqt.qr>

On Thu, Mar 15, 2007 at 02:20:25AM +0100, Jan Engelhardt wrote:
> Why is EXDEV returned when _vfs mountpoints_ are crossed? Should not it 
> be more like the following?
> 
> 	error = -EXDEV;
> 	if (oldnd.mnt->mnt_sb != newnd.mnt->mnt_sb)
> 		goto exit2;
> 

	No.  This is absolutely deliberate - mountpoint creates a boundary and
such boundaries are very useful for restricting modifications of filesystem.
IOW, it's not a bug and it applies to other operations as well (link(), for
example).

      reply	other threads:[~2007-03-15  1:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15  1:20 Move across mount,sb Jan Engelhardt
2007-03-15  1:46 ` Al Viro [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=20070315014655.GO4095@ftp.linux.org.uk \
    --to=viro@ftp.linux.org.uk \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-fsdevel@vger.kernel.org \
    /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).