Re: Open by inode? (was Re: knfsd)

Magnus Ahltorp (map@stacken.kth.se)
03 Jan 1999 15:25:06 +0100


> Is there any reason why the superuser shouldn't be able to open by
> inode? This seems an obvious idea; perhaps there's also an obvious
> argument against it that I'm not seeing...

There are file systems where inode numbers are not enough to represent
a file. In AFS and Coda, for example, a file is identified by four
32-bit numbers (cell, volume, vnode, unique). What you want is some
kind of handle that can be retrieved by a syscall (get_fh) and some
way to open the file again by that handle (open_fh). The handle should
be some largish blob that can be used differently by each file system.

/Magnus
map@stacken.kth.se

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/