Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 17:54:23 -0800
From:      Don Lewis <Don.Lewis@tsc.tdk.com>
To:        Robert Watson <rwatson@FreeBSD.org>, Peter Wemm <peter@netplex.com.au>
Cc:        "Brian F. Feldman" <green@FreeBSD.org>, Alfred Perlstein <bright@wintelcom.net>, obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/inetd builtins.c
Message-ID:  <200011290154.RAA21516@salsa.gv.tsc.tdk.com>
In-Reply-To: <Pine.NEB.3.96L.1001127004343.36087A-100000@fledge.watson.org>
References:   <Pine.NEB.3.96L.1001127004343.36087A-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011290154.RAA21516>