linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: Jordi Pujol Palomer <jordipujolp@gmail.com>
Cc: Linux-Fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH] fs/namei.c: Hard link and rename should check same device instead of same mount
Date: Sun, 20 Mar 2016 18:22:51 +0000	[thread overview]
Message-ID: <20160320182251.GB17997@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20160320190625.5e4ef31f@localdomain>

On Sun, Mar 20, 2016 at 07:06:25PM +0100, Jordi Pujol Palomer wrote:
> Therefore we can develop a new option for binding to let the superuser
> choose what is needed for every mount-bind, example:
> 
> mount --bind -o boundary $DIR $DIR
> 
> mount --bind -o noboundary $DIR1 $DIR2
> 
> and allow remount also,
> 
> mount -o remount,boundary $DIR
> 
> mount -o remount,noboundary $DIR
> 
> That seems feasible,

... until you consider the fun of moving subtrees between different mounts.
IMO it's a bloody bad idea; semantics would be hard to define, not to mention
that things that used to be on the same fs might eventually get moved to
different ones, and for those there's obviously no way to do link(2) or
rename(2) at all.

What are you actually trying to achieve?  There might be saner ways to do
it...

  reply	other threads:[~2016-03-20 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-16 13:05 [PATCH] fs/namei.c: Hard link and rename should check same device instead of same mount Jordi Pujol Palomer
2016-03-16 14:25 ` Al Viro
2016-03-20 18:06   ` Jordi Pujol Palomer
2016-03-20 18:22     ` Al Viro [this message]
2016-03-21 13:35       ` Jordi Pujol Palomer

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=20160320182251.GB17997@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=jordipujolp@gmail.com \
    --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).