Announcing: .tar filesystem!

The .tar filesystem is now ready for preliminary playing-around.
It’s what I call “pre-alpha” quality, which basically means that it
compiled here and I was able to look at a few files.

What it does

Ever wanted to just look at one or two files within a .tar file,
without having to unpack the whole thing? Well, now you can :slight_smile:
The tarfs “.tar filesystem” opens the .tar file, and presents the
contents as a virtual filesystem. It interfaces with the mount
command, so you can mount a .tar anywhere you like.

For example, if you’re in /home/root, and looking at “spud.tar”,
you can:

mount -T tarfs /home/root/spud.tar spud.tar.dir

(assuming that “tarfs” is already running).

Now, the best part is you can just “cd” into “spud.tar.dir” and
look at the files.

Visit:

http://www.parse.com/free/tarfs.html

to download.

Cheers,
-RK

[spammed to comp.os.qnx qdn.cafe qdn.public.qnxrtp.os]


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

How about .tgz files?


Marty Doane
Siemens Dematic

“Robert Krten” <nospam84@parse.com> wrote in message
news:b02h1c$nab$1@inn.qnx.com

The .tar filesystem is now ready for preliminary playing-around.
It’s what I call “pre-alpha” quality, which basically means that it
compiled here and I was able to look at a few files.

What it does

Ever wanted to just look at one or two files within a .tar file,
without having to unpack the whole thing? Well, now you can > :slight_smile:
The tarfs “.tar filesystem” opens the .tar file, and presents the
contents as a virtual filesystem. It interfaces with the mount
command, so you can mount a .tar anywhere you like.

For example, if you’re in /home/root, and looking at “spud.tar”,
you can:

mount -T tarfs /home/root/spud.tar spud.tar.dir

(assuming that “tarfs” is already running).

Now, the best part is you can just “cd” into “spud.tar.dir” and
look at the files.

Visit:

http://www.parse.com/free/tarfs.html

to download.

Cheers,
-RK

[spammed to comp.os.qnx qdn.cafe qdn.public.qnxrtp.os]


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.

Marty Doane <martin.doane@siemens.com> wrote:

How about .tgz files?

Not yet. For now, you’ll have to gunzip them, and then mount
them. QSSL has a thingy called “inflator”, perhaps you can
run that under tarfs to auto-inflate the .tgz for you – haven’t
tried this yet… :slight_smile:

Cheers,
-RK


Marty Doane
Siemens Dematic

“Robert Krten” <> nospam84@parse.com> > wrote in message
news:b02h1c$nab$> 1@inn.qnx.com> …
The .tar filesystem is now ready for preliminary playing-around.
It’s what I call “pre-alpha” quality, which basically means that it
compiled here and I was able to look at a few files.

What it does

Ever wanted to just look at one or two files within a .tar file,
without having to unpack the whole thing? Well, now you can > :slight_smile:
The tarfs “.tar filesystem” opens the .tar file, and presents the
contents as a virtual filesystem. It interfaces with the mount
command, so you can mount a .tar anywhere you like.

For example, if you’re in /home/root, and looking at “spud.tar”,
you can:

mount -T tarfs /home/root/spud.tar spud.tar.dir

(assuming that “tarfs” is already running).

Now, the best part is you can just “cd” into “spud.tar.dir” and
look at the files.

Visit:

http://www.parse.com/free/tarfs.html

to download.

Cheers,
-RK

[spammed to comp.os.qnx qdn.cafe qdn.public.qnxrtp.os]


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

How about nested tarballs? :stuck_out_tongue:

Daryl Low

Robert Krten wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:

Robert Krten wrote:

I don’t follow you there… you can just “cp” the files if you want,
edit the with a text editor and save them elsewhere, or… <drum roll
you can just untar them! > :slight_smile:


Your missing the:
/drum roll


It never ends > :slight_smile:

Cheers,
-RK

Marty Doane wrote:

How about .tgz files?


Marty Doane

Geez. It’s not even a day old yet and you want enhancements. At least

gice him until lunch time.

Bill Caroselli <qtps@earthlink.net> wrote:

Marty Doane wrote:
How about .tgz files?


Marty Doane

Geez. It’s not even a day old yet and you want enhancements. At least
gice him until lunch time.

Actually :slight_smile: Now that it’s past lunch time :slight_smile: Just looked at <zlib.h>,
and it looks pretty easy; I’ll need to diddle around a little bit,
but should be able to do this fairly simply…

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Robert Krten wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:

Marty Doane wrote:

How about .tgz files?


Marty Doane


Geez. It’s not even a day old yet and you want enhancements. At least
gice him until lunch time.


Actually > :slight_smile: > Now that it’s past lunch time > :slight_smile: > Just looked at <zlib.h>,
and it looks pretty easy; I’ll need to diddle around a little bit,
but should be able to do this fairly simply…

From memory you can’t seek backward with zlib. That mean you will have
to rewind at 0 and decompress AGAIN every time you read… Probably
more efficient to decompress the file once in /tmp or something.

Cheers,
-RK

Robert Krten wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:

Marty Doane wrote:

How about .tgz files?


Marty Doane


Geez. It’s not even a day old yet and you want enhancements. At least
gice him until lunch time.


Actually > :slight_smile: > Now that it’s past lunch time > :slight_smile: > Just looked at <zlib.h>,
and it looks pretty easy; I’ll need to diddle around a little bit,
but should be able to do this fairly simply…

… and what about extracting of these archives into
individual directories :slight_smile: ?

Cheers

Armin

Armin Steinhoff <a-steinhoff@web.de> wrote:

Robert Krten wrote:
Bill Caroselli <> qtps@earthlink.net> > wrote:

Marty Doane wrote:

How about .tgz files?


Marty Doane


Geez. It’s not even a day old yet and you want enhancements. At least
gice him until lunch time.


Actually > :slight_smile: > Now that it’s past lunch time > :slight_smile: > Just looked at <zlib.h>,
and it looks pretty easy; I’ll need to diddle around a little bit,
but should be able to do this fairly simply…

… and what about extracting of these archives into
individual directories > :slight_smile: > ?

I don’t follow you there… you can just “cp” the files if you want,
edit the with a text editor and save them elsewhere, or…
you can just untar them! :slight_smile:

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Mario Charest postmaster@127.0.0.1 wrote:

Robert Krten wrote:
Bill Caroselli <> qtps@earthlink.net> > wrote:

Marty Doane wrote:

How about .tgz files?


Marty Doane


Geez. It’s not even a day old yet and you want enhancements. At least
gice him until lunch time.


Actually > :slight_smile: > Now that it’s past lunch time > :slight_smile: > Just looked at <zlib.h>,
and it looks pretty easy; I’ll need to diddle around a little bit,
but should be able to do this fairly simply…

From memory you can’t seek backward with zlib. That mean you will have
to rewind at 0 and decompress AGAIN every time you read… Probably
more efficient to decompress the file once in /tmp or something.

I will maintain my current lseek position and not lseek if I don’t have
to (i.e., if the client is doing forward reads only). zlib docs say
that “lseek is simulated and may be horribly slow”. So, you’ve been
warned. I think it best if I not take dramatic action like uncompressing
potentially huge archives on the user’s behalf – after all, there’s
prolly a damn good reason the archive is compressed in the first place :slight_smile:

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Bill Caroselli <qtps@earthlink.net> wrote:

Robert Krten wrote:
I don’t follow you there… you can just “cp” the files if you want,
edit the with a text editor and save them elsewhere, or… <drum roll
you can just untar them! > :slight_smile:

Your missing the:
/drum roll

It never ends :slight_smile:

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Robert Krten wrote:

I don’t follow you there… you can just “cp” the files if you want,
edit the with a text editor and save them elsewhere, or… <drum roll
you can just untar them! > :slight_smile:

Your missing the:

</drum roll>

Daryl Low <dlo*w@qnx.com> wrote:

How about nested tarballs? > :stuck_out_tongue:

Those will not work. Kids, don’t even try this at home! :slight_smile:

HOWEVER! GZIP compressed archives now work. Albeit horribly
inefficiently, but they do work.

Version 0.070 is available at www.parse.com/free/tarfs.html

Enjoy!

Daryl Low

Robert Krten wrote:
Bill Caroselli <> qtps@earthlink.net> > wrote:

Robert Krten wrote:

I don’t follow you there… you can just “cp” the files if you want,
edit the with a text editor and save them elsewhere, or… <drum roll
you can just untar them! > :slight_smile:


Your missing the:
/drum roll


It never ends > :slight_smile:

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Robert Krten wrote:

Daryl Low <dlo*> w@qnx.com> > wrote:

How about nested tarballs? > :stuck_out_tongue:


Those will not work. Kids, don’t even try this at home! > :slight_smile:

Why not, shouldn’t it be possible to start a second instance (or more)
of the program and get it to point into the filesystem presented by the
first instance…

HOWEVER! GZIP compressed archives now work. Albeit horribly
inefficiently, but they do work.

Version 0.070 is available at > www.parse.com/free/tarfs.html

Enjoy!


Daryl Low


Robert Krten wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:


Robert Krten wrote:


I don’t follow you there… you can just “cp” the files if you want,
edit the with a text editor and save them elsewhere, or… <drum roll
you can just untar them! > :slight_smile:


Your missing the:
/drum roll


It never ends > :slight_smile:

Cheers,
-RK

\

Mario Charest postmaster@127.0.0.1 wrote:

Robert Krten wrote:
Daryl Low <dlo*> w@qnx.com> > wrote:

How about nested tarballs? > :stuck_out_tongue:


Those will not work. Kids, don’t even try this at home! > :slight_smile:


Why not, shouldn’t it be possible to start a second instance (or more)
of the program and get it to point into the filesystem presented by the
first instance…

Yes, but then you’d have to target the mount to the second instance.
It could be done with threads as well…

BTW version 0.080 is now available, comes with a mount helper that
allows you to, as the website sez, “poignantly”

find . -type f -name “.tar” | xargs mount_tarfs -v -m

:slight_smile:

Cheers,
-RK

HOWEVER! GZIP compressed archives now work. Albeit horribly
inefficiently, but they do work.

Version 0.070 is available at > www.parse.com/free/tarfs.html

Enjoy!


Daryl Low


Robert Krten wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:


Robert Krten wrote:


I don’t follow you there… you can just “cp” the files if you want,
edit the with a text editor and save them elsewhere, or… <drum roll
you can just untar them! > :slight_smile:


Your missing the:
/drum roll


It never ends > :slight_smile:

Cheers,
-RK


\


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Robert Krten wrote:

Armin Steinhoff <> a-steinhoff@web.de> > wrote:

Robert Krten wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:


Marty Doane wrote:


How about .tgz files?


Marty Doane


Geez. It’s not even a day old yet and you want enhancements. At least
gice him until lunch time.


Actually > :slight_smile: > Now that it’s past lunch time > :slight_smile: > Just looked at <zlib.h>,
and it looks pretty easy; I’ll need to diddle around a little bit,
but should be able to do this fairly simply…


… and what about extracting of these archives into
individual directories > :slight_smile: > ?


I don’t follow you there… you can just “cp” the files if you want,

After installing tarfs … it’s now clear that my question off topic :slight_smile:

Armin

edit the with a text editor and save them elsewhere, or… <drum roll
you can just untar them! > :slight_smile:

Cheers,
-RK

Now moved to beta status; more bug fixes.

Cheers,
-RK

Robert Krten <nospam84@parse.com> wrote:

The .tar filesystem is now ready for preliminary playing-around.
It’s what I call “pre-alpha” quality, which basically means that it
compiled here and I was able to look at a few files.

What it does

Ever wanted to just look at one or two files within a .tar file,
without having to unpack the whole thing? Well, now you can > :slight_smile:
The tarfs “.tar filesystem” opens the .tar file, and presents the
contents as a virtual filesystem. It interfaces with the mount
command, so you can mount a .tar anywhere you like.

For example, if you’re in /home/root, and looking at “spud.tar”,
you can:

mount -T tarfs /home/root/spud.tar spud.tar.dir

(assuming that “tarfs” is already running).

Now, the best part is you can just “cd” into “spud.tar.dir” and
look at the files.

Visit:

http://www.parse.com/free/tarfs.html

to download.

Cheers,
-RK

[spammed to comp.os.qnx qdn.cafe qdn.public.qnxrtp.os]


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at > www.parse.com> .
Email my initials at parse dot com.


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.