Hurd translators for FreeBSD (was Re: Mount a tar archive?)
On Wed, Mar 30, 2005 at 11:40:55PM +0400, Andrew P. wrote: > samba. It's a pity that FreeBSD doesn't have linuxish > arcfs or tarmount, but that sort of thing is not really > needed very often. FWIW, the Hurd has a capability to attach a "translator" anywhere on a file system. By "translator", they mean a user land file system server. It's kind of mounting a process instead of a device on an arbitrary mount point. Actually, they borrowed and extended the idea from BSD's portalfs! If FreeBSD had something similar (e.g. by extending portalfs), it would be quite easy to write a tarfs translator, at least in read-only mode. Of course, one could always write a kernel module for this the classic Linux way, but it won't be so neat and flexible as a user land application! Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount a tar archive?
On Wed, 30 Mar 2005 23:40:55 +0400, Andrew P. <[EMAIL PROTECTED]> wrote: > Danny Howard wrote: > > Andrew P. wrote: > > > >> Hello! > >> > >> I have a 80G tar archive which I have nowhere to > >> extract to. Could I mount it as a filesystem? > >> Read-only would suffice. > > > > > > Andrew, > > > > Short of that solution, why not tar -t to get a list of files in the > > archive, then you can tar -x the files you actually want. > > > > You ought to be able to: > > tar -t foo.tar > list.txt > > edit list.txt > > cat list.txt | xargs tar -x foo.tar > > > > -danny > > > > The archive is actually part of my music collection on > a headless fileserver. I would like to share it with > samba. It's a pity that FreeBSD doesn't have linuxish > arcfs or tarmount, but that sort of thing is not really > needed very often. > > Thanks to all for your kind help! > Andrew P. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > Can't GNOME-vfs do this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount a tar archive?
Danny Howard wrote: Andrew P. wrote: Hello! I have a 80G tar archive which I have nowhere to extract to. Could I mount it as a filesystem? Read-only would suffice. Andrew, Short of that solution, why not tar -t to get a list of files in the archive, then you can tar -x the files you actually want. You ought to be able to: tar -t foo.tar > list.txt edit list.txt cat list.txt | xargs tar -x foo.tar -danny The archive is actually part of my music collection on a headless fileserver. I would like to share it with samba. It's a pity that FreeBSD doesn't have linuxish arcfs or tarmount, but that sort of thing is not really needed very often. Thanks to all for your kind help! Andrew P. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount a tar archive?
Andrew P. wrote: I have a 80G tar archive which I have nowhere to extract to. Could I mount it as a filesystem? Read-only would suffice. That's actually a pretty neat idea, although I don't know that such a capability is available. Hmm. Emacs has a special mode for accessing the contents of a tarball which might be helpful in other circumstances, but I suspect that an 80GB file is going to be too big for it to handle. In the meantime, you might be able to use "tar tf" to see the contents of this monster tarball, and you could then extract smaller pieces from it if need be, rather than having to deal with the entire thing all at once. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount a tar archive?
Andrew P. wrote: Hello! I have a 80G tar archive which I have nowhere to extract to. Could I mount it as a filesystem? Read-only would suffice. Andrew, Short of that solution, why not tar -t to get a list of files in the archive, then you can tar -x the files you actually want. You ought to be able to: tar -t foo.tar > list.txt edit list.txt cat list.txt | xargs tar -x foo.tar -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mount a tar archive?
On Wed, Mar 30, 2005 at 10:28:02PM +0400, Andrew P. wrote: > Hello! > > I have a 80G tar archive which I have nowhere to > extract to. Could I mount it as a filesystem? > Read-only would suffice. No, but of course you can access files within it using tar(1) without having to extract them to disk (by extracting to stdout). Kris pgpoPB6rOB9Gm.pgp Description: PGP signature