Garance A Drosihn <[EMAIL PROTECTED]> writes:
> In the case of AFS, I think you'd want to expand the size of st_dev.
> All files in an AFS volume are "one device", I would think.  If the
> "device" is gone (ie, the volume is not mounted), then all files in
> that "device" (volume) will not be available.

I'm confused.  Did you mean `st_ino' there?  I agree that you want to
see the whole AFS space as a single device.

> I don't know what would be best for other distributed file systems,
> though.  Maybe both variables would have to increase in size.  Maybe
> 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.

/assar


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

Reply via email to