From owner-freebsd-current Thu Sep 25 23:46:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA13760 for current-outgoing; Thu, 25 Sep 1997 23:46:35 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA13752 for ; Thu, 25 Sep 1997 23:46:30 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id QAA23500; Fri, 26 Sep 1997 16:40:38 +1000 Date: Fri, 26 Sep 1997 16:40:38 +1000 From: Bruce Evans Message-Id: <199709260640.QAA23500@godzilla.zeta.org.au> To: bde@zeta.org.au, kato@migmatite.eps.nagoya-u.ac.jp Subject: Re: Daily SNAPshots at current.freebsd.org shut down for now. Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> clustering is 2 too many for a production system :-) (non-clustering for >> /dev/vn must be forced independently of any mount options and sysctls, >> except possibly for debugging). > >How does mount() in vfs_syscall.c know special device is /dev/vn? It doesn't yet. It could look at a new flag (vp->v_flag & VNOCLUSTER) where vp is the vnode for the mount point. The flag should be set in vnopen(). This seems to require using bdevvp() to find the vnode. >When mount() can know specical device is /dev/vn, then > > if (special device is /dev/vn) > mp->mnt_flag |= MNT_NOCLUSTER; > >works, and doclusterread and doclusterwrite can be eliminated. Right, except separate MNT_NOCLUSTER{READ,WRITE} flags are required to give the same functionality. Bruce