Re: VFS

Andrew E. Mileski (aem@netcom.ca)
Sun, 16 Nov 1997 02:00:10 -0500 (EST)


> I am working on a filesystem that does not keep track of files using
> inode numbers, but rather using larger entities. Therefore, I have
> constructed a struct which keeps track of this entity, and stores this in
> u.generic_ip in my inodes. This is all well, but I have a problem. Linux's
> VFS is very inode number oriented. Since I have no real inodes, I have to
> construct these (for now, a counter++).

Don't do that...use the memory address of the inode as the inode
number, as it is GUARANTEED to be unique. So to look up an inode
number, just cast it to a pointer and voila.

See the NFS code.

I use the same technique for UDF.

--
Andrew E. Mileski   mailto:aem@netcom.ca