lkml.org 
[lkml]   [1997]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: VFS
> Hmm...so what are the alternatives? [We've come full circle.]

This highly depends on your file system. If UDF works similar to
9660, I see two options:
a) use the block number of the first block of the file
b) use a hash value of the file name

On a RO file system, both are guaranteed to stay identical between
invocations. In either case, you can't open the file when given
the inode (can you?), but this is currently not a requirement in
the Linux kernel. Ideally, you would choose something that identifies
the file in a way so you can access it when given this identification,
and also fits into 32 bits.

Hope this helps,
Martin

\
 
 \ /
  Last update: 2005-03-22 13:40    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site