Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938368AbXHLU43 (ORCPT ); Sun, 12 Aug 2007 16:56:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S938328AbXHLUz7 (ORCPT ); Sun, 12 Aug 2007 16:55:59 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:39853 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938281AbXHLUz5 (ORCPT ); Sun, 12 Aug 2007 16:55:57 -0400 Date: Sun, 12 Aug 2007 22:55:56 +0200 (CEST) From: Jan Engelhardt To: Al Viro cc: Mark Cannon , "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: Use of directories to hold root? In-Reply-To: <20070812202320.GE21089@ftp.linux.org.uk> Message-ID: References: <200708101724.26724.random.bits@rogers.com> <46BCFE01.2040703@zytor.com> <200708121539.48332.random.bits@rogers.com> <20070812202320.GE21089@ftp.linux.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 21 On Aug 12 2007 21:23, Al Viro wrote: >> >> pivot_root is atomic afaict, for `mount --move` (which I think Al meant >> which MS_MOVE - or some C program using mount(2) of your own), you'd >> need multiple calls to mount. > >Move itself is done by a single syscall anyway... > Yes, but you need needed 2 mounts, 1 chdir and one chroot. Plus, you have not freed the data in the rootfs. (Well, neither does pivot_root, but run-init from klibc will.) Jan -- - 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/