Assar Westerlund <[EMAIL PROTECTED]> writes:
>> we should start by creating an "fcompare()" routine, which you'd
>> pass two file descriptors to and it would say if they're the same
>> file.  Initially that routine could just do two fstat()'s, and
>> compare st_dev and st_ino.  We could then expand it to do better
>> comparisons for other file-systems.
>
>In solaris there's a vnode operation vop_cmp that does exactly that.
>But it's not exported to userland in any way.

        Sounds like what we'd want to build it upon.  If the FS doesn't
support it, use st_dev/st_ino.  The real problem is getting people to
switch.

-- 
Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team ('88-94)
[EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to