[reiserfs-list] Re: [OpenAFS-devel] more on the 2.2.18pre17 SMPcpu
hog/etc.
Danilov Nikita
NikitaDanilov@Yahoo.COM
Mon, 4 Dec 2000 16:02:33 +0300 (MSK)
-----BEGIN PGP SIGNED MESSAGE-----
Hi,
Hans Reiser writes:
> Nikita has code not in our main branch that allows looking up files by their keys, we did it for
> squid when writing a namefree file store for it, let's give him a chance to comment on Monday.
if you are still interested in it, that is what was done for the
lookup-by-key stuff:
(*) there is ioctl to get key of open file descriptor
(*) there is special ram-only fs (like /proc) to open files on given
reiserfs mount by the keys.
>
> Hans
>
> Chris Mason wrote:
> >
> > On Saturday, December 02, 2000 15:33:58 -0500 Derek Atkins
> > <warlord@MIT.EDU> wrote:
> >
> > > I don't know anything about reiserfs, but I can explain what AFS is
> > > doing. Basically, the afsd user-space process does an opendir() on
> > > the cache directory. Then it iterates through the files looking for
> > > the cache files (they are all numbered, and the cachefile number is
> > > stored in the filename). For each cache file, it stores the inode
> > > number (obtained from dirp->d_ino from readdir()) associated that that
> > > cache file number (obtained from dirp->d_name).
So, call ioctl in stat's stead and remember key.
> > >
[...]
> >
> > -chris
Nikita.
- --
Mail me: NikitaDanilov@Yahoo.COM Web me: http://nikita.w3.to
PGP: B4DBBD61 4B B8 7B 9D E8 66 04 69 CB BC 76 8F AB 8A 57 02
Of the first was he to bare arms and a name:
Wassaily Booslaeugh of Riesengeborg. // J.Joyce, Finnegans Wake
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Hello, Echelon!
iQCVAwUBOiuV5wuKNXy0271hAQHT3wQA5BcGZlUSC/FOq7ftJeroIkViE/Eq9qnk
UCov3OtO1m0OKnqlqjVHjRm4n3QfLdTxdPhN7Ro3jb+BW0yX+/dcr172IjBB1HFE
379wAINDtB6NR8E81EFRA/IcUOzX0Ds15N4RJZ4LF4FUDGyGBR4I5LPKE9YyPgQE
3GVNJ4ZSDzs=
=NK47
-----END PGP SIGNATURE-----