Skip to contentSkip to conversation

Qeuestion: Why is make-slave the one-way operation?

DISCUSSION Etsuji Nakai 1 participant 1 message Sep 27, 2013 1 message not in the archive VFS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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