This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: key64_t? ino64_t?
On Thu, May 15, 2003 at 09:54:05AM +1000, Robert Collins wrote:
> And my copy of P1003.1 says:
> "The ftok() function shall return the same key value for all paths that
> name the same file, when called with the same id value, and return
> different key values when called with different id values or with paths
> that name differnet files existing on the same file system at the same
> time."
>
> Key things to note: sus doesn't require uniqueness across file systems
> - but it's a good idea if we can do that for low or no extra cost/
> It *does* require uniqueness within a file system.
So it's a matter of using the 64 bit sensible. What about
8 bit low byte of device minor number.
16 bits high word of nFileIndexHigh
32 bits nFileIndexLow
8 bit id
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.