From mboxrd@z Thu Jan 1 00:00:00 1970 From: Etsuji Nakai Subject: Qeuestion: Why is make-slave the one-way operation? Date: Thu, 26 Sep 2013 21:40:16 -0400 (EDT) Message-ID: <1376335568.2694675.1380246016556.JavaMail.root@redhat.com> References: <952269651.2687349.1380244782700.JavaMail.root@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org Return-path: Received: from mx4-phx2.redhat.com ([209.132.183.25]:49649 "EHLO mx4-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109Ab3I0BkR (ORCPT ); Thu, 26 Sep 2013 21:40:17 -0400 Received: from zmail14.collab.prod.int.phx2.redhat.com (zmail14.collab.prod.int.phx2.redhat.com [10.5.83.16]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r8R1eH6s027273 for ; Thu, 26 Sep 2013 21:40:17 -0400 In-Reply-To: <952269651.2687349.1380244782700.JavaMail.root@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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