From owner-freebsd-lite2 Mon Sep 23 05:46:49 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA26122 for lite2-outgoing; Mon, 23 Sep 1996 05:46:49 -0700 (PDT) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id FAA26088 for ; Mon, 23 Sep 1996 05:46:45 -0700 (PDT) Received: from minnow.render.com (minnow.render.com [193.195.178.1]) by minnow.render.com (8.6.12/8.6.9) with SMTP id NAA16720; Mon, 23 Sep 1996 13:45:04 +0100 Date: Mon, 23 Sep 1996 13:45:04 +0100 (BST) From: Doug Rabson To: Jeffrey Hsu , lite2@freebsd.org Subject: vfs_subr.c Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lite2@freebsd.org X-Loop: FreeBSD.org Precedence: bulk The lite2 changes for this file are not in the lite2 tree. Is this intentional? I have a version of vfs_subr.c which is based on your patches from a few weeks back which works fine but I would like to get your version into the tree so that if I make changes, we can see what is happening. -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 FAX: +44 171 734 6426 From owner-freebsd-lite2 Mon Sep 23 06:05:44 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA07067 for lite2-outgoing; Mon, 23 Sep 1996 06:05:44 -0700 (PDT) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA06964; Mon, 23 Sep 1996 06:05:33 -0700 (PDT) Received: from minnow.render.com (minnow.render.com [193.195.178.1]) by minnow.render.com (8.6.12/8.6.9) with SMTP id OAA16765; Mon, 23 Sep 1996 14:05:24 +0100 Date: Mon, 23 Sep 1996 14:05:23 +0100 (BST) From: Doug Rabson To: fs@freebsd.org, lite2@freebsd.org Subject: New d_type field in *devsw Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lite2@freebsd.org X-Loop: FreeBSD.org Precedence: bulk What use is [bc]devsw->d_type in Lite2? It is not used anywhere and having it means changing *every* driver in the system since the initialiser for [bc]devsw is different. I would quite like to keep [bc]devsw the same as before the lite2 merge to keep compatability with existing drivers. What do others think? -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 FAX: +44 171 734 6426 From owner-freebsd-lite2 Mon Sep 23 06:12:50 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA11241 for lite2-outgoing; Mon, 23 Sep 1996 06:12:50 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA11221 for freebsd-lite2; Mon, 23 Sep 1996 06:12:48 -0700 (PDT) Date: Mon, 23 Sep 1996 06:12:48 -0700 (PDT) From: Doug Rabson Message-Id: <199609231312.GAA11221@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/i386/i386 autoconf.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:12:47 Branch: sys/i386/i386 LITE2 Modified: sys/i386/i386 autoconf.c Log: Make NFS section compile. Revision Changes Path 1.56.2000.2 +2 -2 src/sys/i386/i386/autoconf.c From owner-freebsd-lite2 Mon Sep 23 06:14:51 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA12464 for lite2-outgoing; Mon, 23 Sep 1996 06:14:51 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA12439 for freebsd-lite2; Mon, 23 Sep 1996 06:14:49 -0700 (PDT) Date: Mon, 23 Sep 1996 06:14:49 -0700 (PDT) From: Doug Rabson Message-Id: <199609231314.GAA12439@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/sys mount.h Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:14:48 Branch: sys/sys LITE2 Modified: sys/sys mount.h Log: Move VFCF_* flags so that they don't conflict with MNT_* flags. Revision Changes Path 1.32.2000.2 +9 -8 src/sys/sys/mount.h From owner-freebsd-lite2 Mon Sep 23 06:15:55 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA13022 for lite2-outgoing; Mon, 23 Sep 1996 06:15:55 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA12997 for freebsd-lite2; Mon, 23 Sep 1996 06:15:52 -0700 (PDT) Date: Mon, 23 Sep 1996 06:15:52 -0700 (PDT) From: Doug Rabson Message-Id: <199609231315.GAA12997@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/sys user.h Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:15:51 Branch: sys/sys LITE2 Modified: sys/sys user.h Log: Use instead of which is obsolete. Revision Changes Path 1.7.2000.1 +2 -2 src/sys/sys/user.h From owner-freebsd-lite2 Mon Sep 23 06:18:00 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA13873 for lite2-outgoing; Mon, 23 Sep 1996 06:18:00 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA13845 for freebsd-lite2; Mon, 23 Sep 1996 06:17:56 -0700 (PDT) Date: Mon, 23 Sep 1996 06:17:56 -0700 (PDT) From: Doug Rabson Message-Id: <199609231317.GAA13845@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/sys vnode.h Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:17:54 Branch: sys/sys LITE2 Modified: sys/sys vnode.h Log: Untangle NFS LKM support (still untested). Add a non-DIAGNOSTIC prototype for vref. Revision Changes Path 1.34.2000.2 +19 -1 src/sys/sys/vnode.h From owner-freebsd-lite2 Mon Sep 23 06:20:38 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA15215 for lite2-outgoing; Mon, 23 Sep 1996 06:20:38 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA15193 for freebsd-lite2; Mon, 23 Sep 1996 06:20:36 -0700 (PDT) Date: Mon, 23 Sep 1996 06:20:36 -0700 (PDT) From: Doug Rabson Message-Id: <199609231320.GAA15193@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/kern kern_ktrace.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:20:35 Branch: sys/kern LITE2 Modified: sys/kern kern_ktrace.c Log: Use the correct process in VOP_UNLOCK to prevent a panic. Revision Changes Path 1.12.2000.2 +2 -2 src/sys/kern/kern_ktrace.c From owner-freebsd-lite2 Mon Sep 23 06:21:57 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA15950 for lite2-outgoing; Mon, 23 Sep 1996 06:21:57 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA15922 for freebsd-lite2; Mon, 23 Sep 1996 06:21:54 -0700 (PDT) Date: Mon, 23 Sep 1996 06:21:54 -0700 (PDT) From: Doug Rabson Message-Id: <199609231321.GAA15922@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/kern vfs_init.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:21:53 Branch: sys/kern LITE2 Modified: sys/kern vfs_init.c Log: Add NFS LKM support (untested). Revision Changes Path 1.20.2000.2 +17 -2 src/sys/kern/vfs_init.c From owner-freebsd-lite2 Mon Sep 23 06:23:16 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA16625 for lite2-outgoing; Mon, 23 Sep 1996 06:23:16 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA16603 for freebsd-lite2; Mon, 23 Sep 1996 06:23:12 -0700 (PDT) Date: Mon, 23 Sep 1996 06:23:12 -0700 (PDT) From: Doug Rabson Message-Id: <199609231323.GAA16603@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/kern vfs_syscalls.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:23:12 Branch: sys/kern LITE2 Modified: sys/kern vfs_syscalls.c Log: Use the right argument order for VOP_LINK. Revision Changes Path 1.50.2000.2 +2 -2 src/sys/kern/vfs_syscalls.c From owner-freebsd-lite2 Mon Sep 23 06:25:55 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA18077 for lite2-outgoing; Mon, 23 Sep 1996 06:25:55 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA18055 for freebsd-lite2; Mon, 23 Sep 1996 06:25:51 -0700 (PDT) Date: Mon, 23 Sep 1996 06:25:51 -0700 (PDT) From: Doug Rabson Message-Id: <199609231325.GAA18055@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/nfs nfs.h nfs_bio.c nfs_node.c nfs_nqlease.c nfs_serv.c nfs_socket.c nfs_srvcache.c nfs_subs.c nfs_syscalls.c nfs_vfsops.c nfs_vnops.c nfsdiskless.h nfsm_subs.h nfsmount.h nfsnode.h nfsrtt.h nfsrvcache.h nqnfs.h rpcv2.h xdr_subs.h Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:25:50 Branch: sys/nfs LITE2 Modified: sys/nfs nfs.h nfs_bio.c nfs_node.c nfs_nqlease.c nfs_serv.c nfs_socket.c nfs_srvcache.c nfs_subs.c nfs_syscalls.c nfs_vfsops.c nfs_vnops.c nfsdiskless.h nfsm_subs.h nfsmount.h nfsnode.h nfsrtt.h nfsrvcache.h nqnfs.h rpcv2.h xdr_subs.h Log: Merge lite2 changes. Revision Changes Path 1.18.2000.2 +56 -8 src/sys/nfs/nfs.h 1.24.2000.1 +9 -6 src/sys/nfs/nfs_bio.c 1.13.2000.1 +11 -5 src/sys/nfs/nfs_node.c 1.20.2000.1 +21 -19 src/sys/nfs/nfs_nqlease.c 1.33.2000.1 +9 -21 src/sys/nfs/nfs_serv.c 1.17.2000.2 +3 -27 src/sys/nfs/nfs_socket.c 1.8.2000.1 +2 -2 src/sys/nfs/nfs_srvcache.c 1.32.2000.2 +16 -10 src/sys/nfs/nfs_subs.c 1.14.2000.1 +3 -3 src/sys/nfs/nfs_syscalls.c 1.29.2000.1 +56 -54 src/sys/nfs/nfs_vfsops.c 1.34.2000.1 +34 -37 src/sys/nfs/nfs_vnops.c 1.5.2000.1 +5 -4 src/sys/nfs/nfsdiskless.h 1.8.2000.1 +3 -2 src/sys/nfs/nfsm_subs.h 1.7.2000.1 +3 -2 src/sys/nfs/nfsmount.h 1.15.2000.1 +7 -20 src/sys/nfs/nfsnode.h 1.4.2000.1 +3 -2 src/sys/nfs/nfsrtt.h 1.5.2000.1 +3 -2 src/sys/nfs/nfsrvcache.h 1.10.2000.1 +3 -2 src/sys/nfs/nqnfs.h 1.4.2000.1 +3 -2 src/sys/nfs/rpcv2.h 1.5.2000.1 +3 -2 src/sys/nfs/xdr_subs.h From owner-freebsd-lite2 Mon Sep 23 06:35:08 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA22827 for lite2-outgoing; Mon, 23 Sep 1996 06:35:08 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA22804 for freebsd-lite2; Mon, 23 Sep 1996 06:35:06 -0700 (PDT) Date: Mon, 23 Sep 1996 06:35:06 -0700 (PDT) From: Doug Rabson Message-Id: <199609231335.GAA22804@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/miscfs/procfs procfs_map.c procfs_mem.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:35:05 Branch: sys/miscfs/procfs LITE2 Modified: sys/miscfs/procfs procfs_map.c procfs_mem.c Log: Use instead of which is obsolete. Revision Changes Path 1.4.2000.1 +2 -2 src/sys/miscfs/procfs/procfs_map.c 1.19.2000.2 +2 -2 src/sys/miscfs/procfs/procfs_mem.c From owner-freebsd-lite2 Mon Sep 23 06:39:23 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA24987 for lite2-outgoing; Mon, 23 Sep 1996 06:39:23 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA24953 for freebsd-lite2; Mon, 23 Sep 1996 06:39:18 -0700 (PDT) Date: Mon, 23 Sep 1996 06:39:18 -0700 (PDT) From: Doug Rabson Message-Id: <199609231339.GAA24953@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/ufs/ffs ffs_vfsops.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:39:17 Branch: sys/ufs/ffs LITE2 Modified: sys/ufs/ffs ffs_vfsops.c Log: Work around the fact that vnode_pager_uncache uses curproc when calling vn_lock/VOP_UNLOCK. Revision Changes Path 1.40.2000.2 +8 -1 src/sys/ufs/ffs/ffs_vfsops.c From owner-freebsd-lite2 Mon Sep 23 06:40:53 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25695 for lite2-outgoing; Mon, 23 Sep 1996 06:40:53 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25674 for freebsd-lite2; Mon, 23 Sep 1996 06:40:51 -0700 (PDT) Date: Mon, 23 Sep 1996 06:40:51 -0700 (PDT) From: Doug Rabson Message-Id: <199609231340.GAA25674@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/ufs/ufs ufs_extern.h Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:40:51 Branch: sys/ufs/ufs LITE2 Modified: sys/ufs/ufs ufs_extern.h Log: Move declaration of lease_check to vnode.h Revision Changes Path 1.10.2000.2 +1 -2 src/sys/ufs/ufs/ufs_extern.h From owner-freebsd-lite2 Mon Sep 23 06:40:48 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25634 for lite2-outgoing; Mon, 23 Sep 1996 06:40:48 -0700 (PDT) Received: from spinner.DIALix.COM (root@spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA25585 for ; Mon, 23 Sep 1996 06:40:41 -0700 (PDT) Received: from spinner.DIALix.COM (peter@localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.7.6/8.7.3) with ESMTP id VAA15550; Mon, 23 Sep 1996 21:39:49 +0800 (WST) Message-Id: <199609231339.VAA15550@spinner.DIALix.COM> X-Mailer: exmh version 1.6.7 5/3/96 To: Doug Rabson cc: Jeffrey Hsu , lite2@freebsd.org Subject: Re: vfs_subr.c In-reply-to: Your message of "Mon, 23 Sep 1996 13:45:04 +0100." Date: Mon, 23 Sep 1996 21:39:48 +0800 From: Peter Wemm Sender: owner-lite2@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Doug Rabson wrote: > The lite2 changes for this file are not in the lite2 tree. Is this > intentional? I have a version of vfs_subr.c which is based on your > patches from a few weeks back which works fine but I would like to get > your version into the tree so that if I make changes, we can see what is > happening. Hmm, I might have botched that one when I moved it from the head to the branch. I can't find any trace of a commit to that file, but I have a backup copy handy somewhere on freefall... If you have it handy, it's probably easier for you to commit it at the moment. Cheers, -Peter From owner-freebsd-lite2 Mon Sep 23 06:52:45 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA01990 for lite2-outgoing; Mon, 23 Sep 1996 06:52:45 -0700 (PDT) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA01804; Mon, 23 Sep 1996 06:52:24 -0700 (PDT) Received: from minnow.render.com (minnow.render.com [193.195.178.1]) by minnow.render.com (8.6.12/8.6.9) with SMTP id OAA16992; Mon, 23 Sep 1996 14:51:49 +0100 Date: Mon, 23 Sep 1996 14:51:49 +0100 (BST) From: Doug Rabson To: fs@freebsd.org, lite2@freebsd.org Subject: vnode_pager_uncache() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lite2@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I want to add a struct proc* argument to this call. The reason is that lite2 has a struct proc* argument to vn_lock/VOP_UNLOCK and panics if the wrong process unlocks a vnode. This causes trouble for the odd cases like shutdown where a process other than curproc is given to the filesystem since vnode_pager_uncache needs to manipulate the vnode lock sometimes. I can hack around it by ignoring the passed proc and substituting curproc in the places which matter but the right thing to do is for vnode_pager_uncache to use the correct proc. -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 FAX: +44 171 734 6426 From owner-freebsd-lite2 Mon Sep 23 06:55:16 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA03353 for lite2-outgoing; Mon, 23 Sep 1996 06:55:16 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA03331 for freebsd-lite2; Mon, 23 Sep 1996 06:55:14 -0700 (PDT) Date: Mon, 23 Sep 1996 06:55:14 -0700 (PDT) From: Doug Rabson Message-Id: <199609231355.GAA03331@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/nfs nfs.h Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 06:55:13 Branch: sys/nfs LITE2 Modified: sys/nfs nfs.h Log: Fix typo in last commit. Revision Changes Path 1.18.2000.3 +2 -2 src/sys/nfs/nfs.h From owner-freebsd-lite2 Mon Sep 23 07:03:20 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA07216 for lite2-outgoing; Mon, 23 Sep 1996 07:03:20 -0700 (PDT) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA07099 for ; Mon, 23 Sep 1996 07:03:02 -0700 (PDT) Received: from minnow.render.com (minnow.render.com [193.195.178.1]) by minnow.render.com (8.6.12/8.6.9) with SMTP id PAA17008; Mon, 23 Sep 1996 15:00:28 +0100 Date: Mon, 23 Sep 1996 15:00:28 +0100 (BST) From: Doug Rabson To: Peter Wemm cc: Jeffrey Hsu , lite2@freebsd.org Subject: Re: vfs_subr.c In-Reply-To: <199609231339.VAA15550@spinner.DIALix.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lite2@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 23 Sep 1996, Peter Wemm wrote: > Doug Rabson wrote: > > The lite2 changes for this file are not in the lite2 tree. Is this > > intentional? I have a version of vfs_subr.c which is based on your > > patches from a few weeks back which works fine but I would like to get > > your version into the tree so that if I make changes, we can see what is > > happening. > > Hmm, I might have botched that one when I moved it from the head to the > branch. I can't find any trace of a commit to that file, but I have a > backup copy handy somewhere on freefall... If you have it handy, it's > probably easier for you to commit it at the moment. I don't think vfs_subr.c was committed in the first place. I am reluctant to commit my version since it might spam some of Jeffrey's work. -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 FAX: +44 171 734 6426 From owner-freebsd-lite2 Mon Sep 23 07:28:43 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA17330 for lite2-outgoing; Mon, 23 Sep 1996 07:28:43 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA17260; Mon, 23 Sep 1996 07:28:34 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.7.5/8.6.9) id JAA11836; Mon, 23 Sep 1996 09:24:46 -0500 (EST) From: "John S. Dyson" Message-Id: <199609231424.JAA11836@dyson.iquest.net> Subject: Re: vnode_pager_uncache() To: dfr@render.com (Doug Rabson) Date: Mon, 23 Sep 1996 09:24:46 -0500 (EST) Cc: fs@freebsd.org, lite2@freebsd.org In-Reply-To: from "Doug Rabson" at Sep 23, 96 02:51:49 pm Reply-To: dyson@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-lite2@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I want to add a struct proc* argument to this call. The reason is that > lite2 has a struct proc* argument to vn_lock/VOP_UNLOCK and panics if the > wrong process unlocks a vnode. This causes trouble for the odd cases like > shutdown where a process other than curproc is given to the filesystem > since vnode_pager_uncache needs to manipulate the vnode lock sometimes. > > I can hack around it by ignoring the passed proc and substituting curproc > in the places which matter but the right thing to do is for > vnode_pager_uncache to use the correct proc. > Sounds okay. Continue in that direction, and later on after work, I'll review it more carefully. (in a hurry to go to work :-)). John From owner-freebsd-lite2 Mon Sep 23 08:27:02 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA07110 for lite2-outgoing; Mon, 23 Sep 1996 08:27:02 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA07025; Mon, 23 Sep 1996 08:26:43 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id BAA23463; Tue, 24 Sep 1996 01:20:36 +1000 Date: Tue, 24 Sep 1996 01:20:36 +1000 From: Bruce Evans Message-Id: <199609231520.BAA23463@godzilla.zeta.org.au> To: dfr@render.com, fs@FreeBSD.ORG, lite2@FreeBSD.ORG Subject: Re: New d_type field in *devsw Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >What use is [bc]devsw->d_type in Lite2? It is not used anywhere and >having it means changing *every* driver in the system since the >initialiser for [bc]devsw is different. I would quite like to keep >[bc]devsw the same as before the lite2 merge to keep compatability with >existing drivers. What do others think? Yes, don't change it. It probably needs to be done in another way for devfs. Bruce From owner-freebsd-lite2 Mon Sep 23 09:52:25 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA09308 for lite2-outgoing; Mon, 23 Sep 1996 09:52:25 -0700 (PDT) Received: (from hsu@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA09270 for freebsd-lite2; Mon, 23 Sep 1996 09:52:19 -0700 (PDT) Date: Mon, 23 Sep 1996 09:52:19 -0700 (PDT) From: Jeffrey Hsu Message-Id: <199609231652.JAA09270@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/kern vfs_subr.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk hsu 96/09/23 09:52:17 Branch: sys/kern LITE2 Modified: sys/kern vfs_subr.c Log: Merge in Lite2. Revision Changes Path 1.59.2000.1 +575 -239 src/sys/kern/vfs_subr.c From owner-freebsd-lite2 Mon Sep 23 09:54:07 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA09901 for lite2-outgoing; Mon, 23 Sep 1996 09:54:07 -0700 (PDT) Received: (from hsu@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA09879; Mon, 23 Sep 1996 09:54:04 -0700 (PDT) Date: Mon, 23 Sep 1996 09:54:04 -0700 (PDT) From: Jeffrey Hsu Message-Id: <199609231654.JAA09879@freefall.freebsd.org> To: dfr, lite2, peter Subject: Re: vfs_subr.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Very strange. I don't see how this file got missed. I did a cvs diff on my tree and applied it to a checked out tree on freefall, so nothing should have been missed. In any case, I've just commited my changes to the LITE2 branch of the lite2 cvs tree. From owner-freebsd-lite2 Mon Sep 23 10:56:39 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA10944 for lite2-outgoing; Mon, 23 Sep 1996 10:56:39 -0700 (PDT) Received: (from dfr@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA10904 for freebsd-lite2; Mon, 23 Sep 1996 10:56:36 -0700 (PDT) Date: Mon, 23 Sep 1996 10:56:36 -0700 (PDT) From: Doug Rabson Message-Id: <199609231756.KAA10904@freefall.freebsd.org> To: freebsd-lite2 Subject: cvs commit: src/sys/kern vfs_subr.c Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk dfr 96/09/23 10:56:35 Branch: sys/kern LITE2 Modified: sys/kern vfs_subr.c Log: Compile vref even for non-DIAGNOSTIC case. Simplify vput in terms of vrele so it can pick up the VMIO bits. Revision Changes Path 1.59.2000.2 +6 -29 src/sys/kern/vfs_subr.c From owner-freebsd-lite2 Mon Sep 23 13:41:25 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA10902 for lite2-outgoing; Mon, 23 Sep 1996 13:41:25 -0700 (PDT) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA10806; Mon, 23 Sep 1996 13:41:17 -0700 (PDT) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.7.6/CET-v2.1) with SMTP id UAA16983; Mon, 23 Sep 1996 20:40:19 GMT Date: Tue, 24 Sep 1996 05:40:19 +0900 (JST) From: Michael Hancock To: Bruce Evans cc: dfr@render.com, fs@FreeBSD.ORG, lite2@FreeBSD.ORG Subject: Re: New d_type field in *devsw In-Reply-To: <199609231520.BAA23463@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 24 Sep 1996, Bruce Evans wrote: > >What use is [bc]devsw->d_type in Lite2? It is not used anywhere and > >having it means changing *every* driver in the system since the > >initialiser for [bc]devsw is different. I would quite like to keep > >[bc]devsw the same as before the lite2 merge to keep compatability with > >existing drivers. What do others think? > > Yes, don't change it. It probably needs to be done in another way for > devfs. But what is it? Is it 'c' or 'b', redundant with the two device switches, and needed for abstractions that don't want to discriminate using the name? Regards, Mike Hancock From owner-freebsd-lite2 Tue Sep 24 04:48:57 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA26976 for lite2-outgoing; Tue, 24 Sep 1996 04:48:57 -0700 (PDT) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id EAA26768; Tue, 24 Sep 1996 04:48:35 -0700 (PDT) Received: from minnow.render.com (minnow.render.com [193.195.178.1]) by minnow.render.com (8.6.12/8.6.9) with SMTP id MAA20029; Tue, 24 Sep 1996 12:45:43 +0100 Date: Tue, 24 Sep 1996 12:45:42 +0100 (BST) From: Doug Rabson To: Michael Hancock cc: Bruce Evans , fs@FreeBSD.ORG, lite2@FreeBSD.ORG Subject: Re: New d_type field in *devsw In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lite2@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 24 Sep 1996, Michael Hancock wrote: > On Tue, 24 Sep 1996, Bruce Evans wrote: > > > >What use is [bc]devsw->d_type in Lite2? It is not used anywhere and > > >having it means changing *every* driver in the system since the > > >initialiser for [bc]devsw is different. I would quite like to keep > > >[bc]devsw the same as before the lite2 merge to keep compatability with > > >existing drivers. What do others think? > > > > Yes, don't change it. It probably needs to be done in another way for > > devfs. > > But what is it? Is it 'c' or 'b', redundant with the two device switches, > and needed for abstractions that don't want to discriminate using the > name? I looked into this in a bit more detail today. In lite2, bdevsw->d_type is used to implement the securelevel for disks and to add some kind of generic ioctl for tapes. cdevsw->d_type is used for ttys to change the behaviour of dead_read. In FreeBSD, dead_read returns EOF for character devices and EIO for block devices.. In Lite2, it returns EOF only for ttys. There is an existing unused field in bdevsw, d_flags which can be used to identify disks and tapes for securelevel and ioctl or alternatively the existing FreeBSD behaviour of calling isdisk() is still possible. The current behaviour of dead_read is probably also adequate. Needless to say, these hacks should be first against the wall after the devfs revolution :-). -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 FAX: +44 171 734 6426 From owner-freebsd-lite2 Tue Sep 24 10:24:47 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA08067 for lite2-outgoing; Tue, 24 Sep 1996 10:24:47 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA07899; Tue, 24 Sep 1996 10:24:20 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.7.6/8.6.9) id DAA07851; Wed, 25 Sep 1996 03:19:24 +1000 Date: Wed, 25 Sep 1996 03:19:24 +1000 From: Bruce Evans Message-Id: <199609241719.DAA07851@godzilla.zeta.org.au> To: dfr@render.com, michaelh@cet.co.jp Subject: Re: New d_type field in *devsw Cc: bde@zeta.org.au, fs@FreeBSD.org, lite2@FreeBSD.org Sender: owner-lite2@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >There is an existing unused field in bdevsw, d_flags which can be used to >identify disks and tapes for securelevel and ioctl or alternatively the >existing FreeBSD behaviour of calling isdisk() is still possible. The >current behaviour of dead_read is probably also adequate. >Needless to say, these hacks should be first against the wall after the >devfs revolution :-). They are high quality compared with isdisk(). The cross pointers in the devsw's can be be used to share d_flags with the cdevs. However, to use them we would have to modify a lot of device drivers with a temporary change. Bruce From owner-freebsd-lite2 Tue Sep 24 10:58:32 1996 Return-Path: owner-lite2 Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA18505 for lite2-outgoing; Tue, 24 Sep 1996 10:58:32 -0700 (PDT) Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA18170; Tue, 24 Sep 1996 10:57:31 -0700 (PDT) Received: from minnow.render.com (minnow.render.com [193.195.178.1]) by minnow.render.com (8.6.12/8.6.9) with SMTP id SAA20849; Tue, 24 Sep 1996 18:54:47 +0100 Date: Tue, 24 Sep 1996 18:54:46 +0100 (BST) From: Doug Rabson To: Bruce Evans cc: michaelh@cet.co.jp, fs@FreeBSD.org, lite2@FreeBSD.org Subject: Re: New d_type field in *devsw In-Reply-To: <199609241719.DAA07851@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-lite2@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 25 Sep 1996, Bruce Evans wrote: > >There is an existing unused field in bdevsw, d_flags which can be used to > >identify disks and tapes for securelevel and ioctl or alternatively the > >existing FreeBSD behaviour of calling isdisk() is still possible. The > >current behaviour of dead_read is probably also adequate. > > >Needless to say, these hacks should be first against the wall after the > >devfs revolution :-). > > They are high quality compared with isdisk(). My current hack derives the correct value for d_flags at initialisation time from isdisk :-). Not ideal. > > The cross pointers in the devsw's can be be used to share d_flags with > the cdevs. However, to use them we would have to modify a lot of > device drivers with a temporary change. Except for ttys which don't have a bdevsw. Still, I think the existing FreeBSD behaviour is almost OK there. -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 734 3761 FAX: +44 171 734 6426