From owner-freebsd-fs Fri Jun 8 10: 1:56 2001 Delivered-To: freebsd-fs@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id 2B29537B401; Fri, 8 Jun 2001 10:01:51 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f58H1Ui14469; Fri, 8 Jun 2001 13:01:30 -0400 (EDT) Date: Fri, 8 Jun 2001 13:01:28 -0400 From: Alfred Perlstein To: Peter Wemm Cc: tlambert2@mindspring.com, "Patrick W. Penzias Dirks" , FreeBSD-FS@FreeBSD.ORG, FreeBSD-Arch@FreeBSD.ORG Subject: Re: Support for pivot_root-like system call? Message-ID: <20010608130128.E1832@superconductor.rush.net> References: <3B2096AB.309B2D14@mindspring.com> <20010608153011.D7AF1380C@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010608153011.D7AF1380C@overcee.netplex.com.au>; from peter@wemm.org on Fri, Jun 08, 2001 at 08:30:11AM -0700 X-all-your-base: are belong to us. Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Peter Wemm [010608 11:30] wrote: > 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. The cache coherency bugs are not fixed for all cases, being able to ask the underlying filesystem for the vm_object does not solve the problem. What if i have a stacking layer where each page alternates between two files that i'm stacked on top of? Passing the vm_object back doesn't work for this. Unless something else has been done. -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message