From owner-freebsd-current Sat Mar 18 21:43:36 2000 Delivered-To: freebsd-current@freebsd.org Received: from holly.calldei.com (adsl-208-191-146-189.dsl.hstntx.swbell.net [208.191.146.189]) by hub.freebsd.org (Postfix) with ESMTP id A24F637B6F3 for ; Sat, 18 Mar 2000 21:43:32 -0800 (PST) (envelope-from chris@holly.calldei.com) Received: (from chris@localhost) by holly.calldei.com (8.9.3/8.9.3) id XAA83151 for current@FreeBSD.org; Sat, 18 Mar 2000 23:42:44 -0600 (CST) (envelope-from chris) Date: Fri, 17 Mar 2000 23:06:32 -0600 From: Chris Costello To: current@FreeBSD.org Subject: Proposal: Union mount of fdesc on top of /dev Message-ID: <20000317230632.I24374@holly.calldei.com> Reply-To: chris@calldei.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i User-Agent: Mutt/0.96.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Now that I've committed a change which fixes that pesky lstat() panic in fdesc, I'd like to suggest that it replace the existing /dev/fd devices and /dev/std{err,in,out}. I've already got such a setup running on a test box: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 49583 25320 20297 56% / /dev/da0s1f 804119 697621 42169 94% /usr /dev/da0s1e 19815 840 17390 5% /var procfs 4 4 0 100% /proc fdesc 1 1 0 100% /dev This fdesc mount is mounted with the `union' option. And a little demonstration of the 'lightness' of fdesc over our oodles-of-device-nodes: $ ls -l 3<&1 4<&1 9<&1 total 0 crw------- 1 chris tty 5, 0 Mar 18 05:02 0 crw------- 1 chris tty 5, 0 Mar 18 05:02 1 crw------- 1 chris tty 5, 0 Mar 18 05:02 2 crw------- 1 chris tty 5, 0 Mar 18 05:02 3 crw------- 1 chris tty 5, 0 Mar 18 05:02 4 dr--r--r-- 2 root wheel 512 Mar 18 04:38 5 dr--r--r-- 2 root wheel 512 Mar 18 04:38 6 dr--r--r-- 2 root wheel 512 Mar 18 04:38 7 crw------- 1 chris tty 5, 0 Mar 18 05:02 9 Compared to our 63 device nodes, I think this is much nicer. Any of you folks have feedback? -- |Chris Costello |Using TSO is like kicking a dead whale down the beach. -- S. C. Johnson `------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message