All of lore.kernel.org
 help / color / mirror / Atom feed
From: Etsuji Nakai <enakai@redhat.com>
To: linux-fsdevel@vger.kernel.org
Subject: Qeuestion: Why is make-slave the one-way operation?
Date: Thu, 26 Sep 2013 21:40:16 -0400 (EDT)	[thread overview]
Message-ID: <1376335568.2694675.1380246016556.JavaMail.root@redhat.com> (raw)
In-Reply-To: <952269651.2687349.1380244782700.JavaMail.root@redhat.com>

Hi,

I have a question regarding the sharedsubtree operation. 

It looks make-slave is the one-way operation. For example,

# mount --make-shared A
# mount --bind A B
# mount --make-shared B

At this point, B is in the shared peer of A. i.e. B's mnt_share is linked to A's mnt_share.

I'll change B to the slave of A.

# mount --make-slave B

Now, B's mnt_share is detached from the A's mnt_share.

Then, from some reason, I want to change B back to the shared peer of A again.
But there's no way to do so. Don't you think it's reasonable to add an new operation
for that? It may look like:

# mount --make-shared-with A B

By the way, here's the specific reason why I need it:

Bug 1010673 - PrivateTmp keeps the whole filesystem as MS_SLAVE
https://bugzilla.redhat.com/show_bug.cgi?id=1010673

- Etsuji





           reply	other threads:[~2013-09-27  1:40 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <952269651.2687349.1380244782700.JavaMail.root@redhat.com>]

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=1376335568.2694675.1380246016556.JavaMail.root@redhat.com \
    --to=enakai@redhat.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 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.