From owner-freebsd-arch Fri Jun 8 8:30:23 2001 Delivered-To: freebsd-arch@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 4EE7F37B40C; Fri, 8 Jun 2001 08:30:12 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f58FUBM58954; Fri, 8 Jun 2001 08:30:12 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id D7AF1380C; Fri, 8 Jun 2001 08:30:11 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: tlambert2@mindspring.com Cc: "Patrick W. Penzias Dirks" , FreeBSD-FS@FreeBSD.ORG, FreeBSD-Arch@FreeBSD.ORG Subject: Re: Support for pivot_root-like system call? In-Reply-To: <3B2096AB.309B2D14@mindspring.com> Date: Fri, 08 Jun 2001 08:30:11 -0700 From: Peter Wemm Message-Id: <20010608153011.D7AF1380C@overcee.netplex.com.au> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > "Patrick W. Penzias Dirks" wrote: > > > > Hi, > > > > I'm the filesystems tech lead in Apple's Mac OS X Core OS group. > > Prompted by the needs of, among others, virus protection software > > developers who want to be able to mount "on" the root directory to > > intercept ALL filesystem calls in the system, I'm contemplating > > implementation of a new system call in Mac OS X to do something like > > Linux's pivot_root system call: > > > > int pivot_root(const char *new_root, const char *put_old); > > > > (which basically installs "new_root" as the new "/" [root_vnode] in > > the system and transfers the current root directory to the pathname > > specified my "put_old") > > It doesn't work in FreeBSD proper because of cache coherency > bugs that have been around since 1995, but: > > mount -t nullfs / /put_old # or wherever > mount -t / > > Would do what you want, I think. Terry, the 'cache coherency' bugs have been fixed in -current for ~8 months now (September 2000). The infrastructure changes for this are subject to a call-for-review right now for a merge to 4.x. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message