Filesystem creation

How do you create a file that can be mounted as a filesystem?

I know this is how RTP is set-up on FAT(32) filesystem. I’m looking
for some information to do this from over a network when
the server is a win9x machine. This would allow me to make fast
installations on servers and an easy way to update things.

By the way, is it possible to increase the size of an existing
filesystem? How can one get stats about “disk” use?
Thanx.
– Denis.

Larry Brigman a écrit :

How do you create a file that can be mounted as a filesystem?

I know this is how RTP is set-up on FAT(32) filesystem. I’m looking
for some information to do this from over a network when
the server is a win9x machine. This would allow me to make fast
installations on servers and an easy way to update things.

To mount a file simply dinit and mount.

cp /lib/libc.so /tmp/x

dinit /tmp/x

All existing files on /tmp/x will be lost! Are you sure (y or n) ? y
Disk ‘/tmp/x’ contains 671 blocks (335K).

mount /tmp/x /fs/file

Guessing type [qnx4], use -[t|T] if incorrect

ls /fs/file

… .altboot .boot
… .bitmap .inodes

df /fs/file

/tmp/x 671 43 628 7% /fs/file

This only works on top of a filesystem that is own by a devb-* driver.
So this won’t work over NFS or even in /dev/shmem.

Regards
Jason

denis <jido@respublica.fr> wrote:
: By the way, is it possible to increase the size of an existing
: filesystem? How can one get stats about “disk” use?
: Thanx.
: – Denis.

: Larry Brigman a écrit :

:> How do you create a file that can be mounted as a filesystem?
:>
:> I know this is how RTP is set-up on FAT(32) filesystem. I’m looking
:> for some information to do this from over a network when
:> the server is a win9x machine. This would allow me to make fast
:> installations on servers and an easy way to update things.