From owner-cvs-all Tue Nov 28 17:54:32 2000 Delivered-To: cvs-all@freebsd.org Received: from gatekeeper.tsc.tdk.com (gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (Postfix) with ESMTP id 98A9F37B400; Tue, 28 Nov 2000 17:54:29 -0800 (PST) Received: from imap.gv.tsc.tdk.com (imap.gv.tsc.tdk.com [192.168.241.198]) by gatekeeper.tsc.tdk.com (8.8.8/8.8.8) with ESMTP id RAA01888; Tue, 28 Nov 2000 17:54:28 -0800 (PST) (envelope-from gdonl@tsc.tdk.com) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by imap.gv.tsc.tdk.com (8.9.3/8.9.3) with ESMTP id RAA34164; Tue, 28 Nov 2000 17:54:27 -0800 (PST) (envelope-from Don.Lewis@tsc.tdk.com) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id RAA21516; Tue, 28 Nov 2000 17:54:23 -0800 (PST) From: Don Lewis Message-Id: <200011290154.RAA21516@salsa.gv.tsc.tdk.com> Date: Tue, 28 Nov 2000 17:54:23 -0800 In-Reply-To: References: X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: Robert Watson , Peter Wemm Subject: Re: cvs commit: src/usr.sbin/inetd builtins.c Cc: "Brian F. Feldman" , Alfred Perlstein , obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Nov 27, 12:52am, Robert Watson wrote: } Subject: Re: cvs commit: src/usr.sbin/inetd builtins.c } I'd also like to } get rid of the current abusive use of device/inode number in userland by } tools like tar (to detect hard links, suffering race conditions among } other things) by adding a samefile(fd1, fd2) interface at some point, } which compares the vnode pointers. This doesn't scale very well. If you try to back up a filesystem hierarchy that contains 1e6 files with more than one link, you'll potentially have to keep all 1e6 file descriptors open and do on the order of 1e12 samefile() syscalls to figure out which names reference the same file. That's a lot more expensive that building a big hash table in in user space keyed by device/inode ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message