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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux