From owner-freebsd-current Thu Aug 14 01:51:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA06512 for current-outgoing; Thu, 14 Aug 1997 01:51:45 -0700 (PDT) Received: from gneiss.eps.nagoya-u.ac.jp (gneiss.eps.nagoya-u.ac.jp [133.6.57.99]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA06504 for ; Thu, 14 Aug 1997 01:51:35 -0700 (PDT) Received: from marble.eps.nagoya-u.ac.jp (localhost [127.0.0.1]) by gneiss.eps.nagoya-u.ac.jp (8.8.6/3.5Wpl3) with ESMTP id RAA04702; Thu, 14 Aug 1997 17:49:47 +0900 (JST) Message-Id: <199708140849.RAA04702@gneiss.eps.nagoya-u.ac.jp> To: dg@root.com Cc: terry@lambert.org, current@FreeBSD.ORG Subject: Re: Read-only mount of union filesystem From: KATO Takenori In-Reply-To: Your message of "Wed, 13 Aug 1997 21:59:44 -0700" References: <199708140459.VAA23455@implode.root.com> X-Mailer: Mew version 1.70 on Emacs 19.28.1 / Mule 2.3 X-PGP-Fingerprint: 03 72 85 36 62 46 23 03 52 B1 10 22 44 10 0D 9E Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 14 Aug 1997 17:49:46 +0900 Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I changed the behavior in FreeBSD to what it is now (which is also the > same as it is in Lite-2). For information on why it is this way, see PR#782. > In my opinion, the current structure is correct. I understand why vfs layer shouldn't reference v_mount. But, IMHO, fs independent operation should be in upper layer. The problem in PR#782 may be solved by following method: 1. Prepare special mount struct whose mnt_flag is or'ed by special flag (e.g., MNT_DEAD). 2. When vnode is cleaned, v_mount points the special mount struct instead of beeing NULL'ed. 3. vfs layer checks MNT_RDONLY and MNT_DEAD. ---- KATO Takenori Dept. Earth Planet. Sci., Nagoya Univ., Nagoya, 464-01, Japan PGP public key: finger kato@eclogite.eps.nagoya-u.ac.jp ------------------- Powered by FreeBSD(98) -------------------