Re: Request for Comments: libarchive, bsdtar
From: Tim Kientzle (kientzle_at_acm.org)
Date: 01/14/04
- Previous message: Vladimir Dozen: "Re: Request for Comments: libarchive, bsdtar"
- In reply to: Robert Watson: "Re: Request for Comments: libarchive, bsdtar"
- Next in thread: Harti Brandt: "Re: Request for Comments: libarchive, bsdtar"
- Reply: Harti Brandt: "Re: Request for Comments: libarchive, bsdtar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 14 Jan 2004 11:52:51 -0800 To: Robert Watson <rwatson@freebsd.org>
Robert Watson wrote:
> On Tue, 13 Jan 2004, Tim Kientzle wrote:
>
>>I've been working on ... a library that can read/write tar archives.
>
> ... a read-only tarfs for use as a root file system ...
> ... our current release build ... requires privilege so that it can ... manage md
> devices and file system images. Just being able to use a tarball instead
> of a UFS image would go a long way...
>
> I know NetBSD has a neat tool to create file systems from userspace
> without privilege ...
An interesting idea. A couple of relevant observations:
1) tar/gzip archives are streaming archives. There is no
simple means for random access. Using a tar/gzip file as a
filesystem would require reading through the archive to find
each file. With careful design, this might not be a performance
problem, but it does limit the applications somewhat.
2) Uncompressed tar archives can provide random access if
you're willing to scan the archive and build an in-memory
directory when you mount it. This is pretty easy to do, especially
if you restrict yourself to basic 'ustar' archives.
3) An alternative would be to build a tool for creating/manipulating
a UFS image, along the lines of mtools or mkisofs. Just the
basics: an md image doesn't need UFS2 extended attributes
or softupdates, so it shouldn't be that hard. To be honest,
trying to share code with the kernel may be more work than it's
worth. Such a tool may also be able to optimize the size of
the resulting FS image (stat everything, calculate the FS layout,
then have a second pass that actually writes the resulting FS).
Sounds like a good project for an enthusiastic college student.
I'm certain someone out there is taking a filesystems class and
would be interested in taking a crack at this. Point them at some
good UFS documentation and see what happens.
4) Of course, mkisofs/mkhybrid exists. Why not use cdroot? It may
seem a bit peculiar to load a CDROM image into RAM from
a series of floppy disks, but all of the necessary tools
and support code already exist.
Tim
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Vladimir Dozen: "Re: Request for Comments: libarchive, bsdtar"
- In reply to: Robert Watson: "Re: Request for Comments: libarchive, bsdtar"
- Next in thread: Harti Brandt: "Re: Request for Comments: libarchive, bsdtar"
- Reply: Harti Brandt: "Re: Request for Comments: libarchive, bsdtar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Tool for document management
... to search my archives of material I have written in the past, ... inability
to make use of grep in searching my archives. ... file system for document storage,
when, as the calendar rolled over ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
... (Debian-User) - [SLE] Cant log in
... I'm running SuSE 9.0 on an athlon with the most recent SuSE stock ... FATAL:
cannot change permissions of TTY: Read-only file system ... mount each of the partitions
under the rescue system and have created ... Also check the archives at http://lists.suse.com
... (SuSE) - Re: Request for Comments: libarchive, bsdtar
... > from forking a separate tar program. ... interesting to create a read-only
tarfs for use as a root file system ... of a UFS image would go a long way, ...
I'd much rather stick a tarball on an NFS server than create UFS images. ... (freebsd-arch) - Re: [SLE] "JDB barrier-based sync failed" how serious?
... > warning, ... as unrecoverable corruption to my "/" drive, ...
extent that fsck can't find a file system? ... Also check the archives at http://lists.suse.com
... (SuSE) - Re: Request for Comments: libarchive, bsdtar
... > requires privilege so that it can chroot, but also so it can manage md ...
> devices and file system images. ... > of a UFS image would go a long way,
... > I'd much rather stick a tarball on an NFS server than create UFS images. ...
(freebsd-arch)