Re: [AVFS] resurrection of AVFS
"Jan Uhlir" <[email protected]> Sat, 26 Feb 2005 18:44:09 +0100
| Newsgroups | gmane.comp.file-systems.avfs.user |
|---|---|
| Message-ID | <S4040040AbVBZRoJ/[email protected]> |
Source code is nearly uncommented :(
No tutorial, no API documentation, this situation could not attract more developers to use this library in their projects. I could write a basic tutorial with examples of use with some help from you.
Investigating runtest.c is a good start point, are there more examples anywhere else?
Well, as an API I could count functions from "virtual.h". Correct me if I'm wrong.
There is no documentation but functions from virtual.h seem s to behave like their libc counterpards. Function virt_read() behaves like read() but with support for reading from archives, it takes the same arguments, it return the same error codes and so on.
Can I use AVFS for reading ordinary (real) files from local?
I hope I can.
How to set temporary directory for archive cache?
When is cache cleaned? Am I supposed to do it explicitly?
fd = virt_open("/#avfsstat/cache/clear", O_WRONLY, 0);
res = virt_write(fd, "1", 1);
res = virt_close(fd);
..striped function flush_cache() in runtest.c
How you test archive change the situation someone copy file into the ZIP file.
In which sourcefile, which function I can foud it?
Is there something like 'dirty flag'?
Is some kind of server started to keep tracks of opened archives?
(suppose using avfs as library, no avfscoda, preload or fuse)
From sourcecode organisation it looks like AVFS comes in four flavour.
- library (layer libary above some functions from glibc)
- avfscoda
- preload (overload some methods in libc/glibc, so applications use avfs transparetly without)
- fuse module
In documentation only flavours 2 and 3 are mentioned!
From further investigation of mail-lists - only flavour 1 is fully operational now, flavours 2 - 4 seems not to be fully operational (or not operational at all) in newer glibc and kernels (>2.6.x).
>
> On 21-Feb-2005 Jan Uhlir wrote:
> > Mr. Ralf Hoffmann,
> > Have you published somewhere your changes beeing discussed here?
> > Dou you also intend to update the documentation?
> > Is the documentation of API usable now?
> > Thank you
>
> I sent my first patch to the list but it is already obsolete. My
> current changed discussed lately are not finished yet but I will
> definitely send it to the list again.
>
> I currently don't have an intention to update the documentation. I
> don't know exactly what do you mean with "usable API doc". The
> documentation is as usable as before as it hasn't changed.
>
> Best Regards,
>
> Ralf Hoffmann
>
> --
> Homepage: http://www.boomerangsworld.de
> E-Mail: Ralf Hoffmann <[email protected]>
> english or german
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click