Re: [AVFS] Tutorial example - create archive

"Jan Uhlir" <[email protected]> Mon, 14 Mar 2005 15:23:13 +0100
Newsgroups gmane.comp.file-systems.avfs.user
Message-ID <S4039769AbVCNOXN/[email protected]>
>
> > I would like to write tutorial example which:
> > - create archive  (hello.zip)
> > - create local test file (hello.txt)
> > - put file inside archive
> > - read file from archive and print output to stdin
> > 
> > But I get stuck with the first task :(
> 
> That's not surprising, because creating and writing archives is
> currently not implemented.  I think the only module supporting writing
> is 'volatile' which is memory filesystem and is quite useless, for
> anything other than testing :(
> 
Well, my proposal is to have empty archives like template.zip, 
template.gz, template.bz2, etc.
somewhere like /usr/share/avfs/archive_templates,
for all types of archives where writing is supported. When you 
want to create an archive, like: 
virt_mkdir("/path/to/myarchive.zip#uzip",flags)
just copy right template from template dir, rename it and 
continue as usuall.

BTW:
which archive types support writing?
zip
bzip2
gz
??



-------------------------------------------------------
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