Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755822AbXL2Dbk (ORCPT ); Fri, 28 Dec 2007 22:31:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753539AbXL2Dbb (ORCPT ); Fri, 28 Dec 2007 22:31:31 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:42131 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752874AbXL2Dbb (ORCPT ); Fri, 28 Dec 2007 22:31:31 -0500 Date: Sat, 29 Dec 2007 04:31:28 +0100 (CET) From: Jan Engelhardt To: dean gaudet cc: David Newall , Mark Lord , Al Viro , Alexander Viro , Andrew Morton , Linux Kernel Subject: Re: RFC: permit link(2) to work across --bind mounts ? In-Reply-To: Message-ID: References: <47684DBD.6030502@rtr.ca> <20071218230016.GF8181@ftp.linux.org.uk> <20071218231404.GG8181@ftp.linux.org.uk> <47689608.3030503@rtr.ca> <4768973C.8020909@davidnewall.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1123 Lines: 33 On Dec 28 2007 18:53, dean gaudet wrote: >p.s. in retrospect i probably could have arranged it more like this: > > mount /dev/md1 $tmpmntpoint > mount --bind $tmpmntpoint/var /var > mount --bind $tmpmntpoint/home /home > umount $tmpmntpoint > >except i can't easily specify that in fstab... and neither of the bind >mounts would show up in df(1). seems like it wouldn't be hard to support >this type of subtree mount though. mount(8) could support a single >subtree mount using this technique but the second subtree mount attempt >would fail because you can't temporarily remount the device because the >mount point is gone. Why is it gone? mount /dev/md1 /tmpmnt mount --bind /tmpmnt/var /var mount --bind /tmpmnt/home /home Is perfectly fine, and /tmpmnt is still alive and mounted. Additionally, you can umount /tmpmnt now, which leaves only /var and /home. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/