Re: TarFS

From: Warner Losh <imp_at_bsdimp.com>
Date: Tue, 26 Mar 2024 08:33:51 UTC
On Tue, Mar 26, 2024, 3:21 AM Dag-Erling Smørgrav <des@freebsd.org> wrote:

> Mark Saad <nonesuch@longcount.org> writes:
> > Two other questions ( I have not tried to read the code , please
> > forgive my assumptions ) behind the scenes are the tarballs extracted
> > over some fs, or mounted directly and read ?
>
> It scans the archive, builds an index of its contents, and reads what
> you ask for when you ask for it.  No additional disk space is consumed.
> This is why compressed archives can be very slow.
>
> > Second are there any contradictions with tarfs ; can they be nfs
> > exported, mounted on a tmpfs etc .
>
> They can be exported, but I'm not sure what you mean by “mounted on a
> tmpfs”.
>


I think he means does it work witg unionfs.

Side question: how hard is it to add and offset of tarball mount option?

Warner

> DES
> --
> Dag-Erling Smørgrav - des@FreeBSD.org
>
>