home *** CD-ROM | disk | FTP | other *** search
-
- RAMFS.XFS: A resizable ramdisk file system for MiNT
-
- In MiNT's documentation, Eric Smith stated that it should be quite easy
- to implement "nifty things such as resizable ramdisks" using loadable
- file systems. It's the simplest file system one can imagine, but I
- didn't find one anywhere, so I wrote it.
-
- This ramdisk allocates dynamically as much memory as it needs. As you
- might expect, he won't work too well with programs which allocate all
- the memory; if you want to use it as a temporary directory for the GCC,
- you'll have to lower the _stksize of the executables to a reasonable
- value (48 Kbyte seems to be enough).
-
- This disk installs itself as drive R: -- it can be changed by modifying
- the RAMDRV constant in ramfs.c. Low-level bios functions like getbpb()
- and rwabs() will probably yield strange results on this drive. The
- filesystem is case-insensitive (case is preserved, but ignored), and
- filenames can be up to 29 characters long (this is the RAMFILE_MAX
- constant). All the rwx bits and uid/gid stuff are supported. Only the
- last-modification time of a file is recorded; the ctime and atime fields
- are not implemented. Symbolic links are allowed, hard links aren't.
- File sharing modes are implemented; file locking isn't. You can move a
- file, directory or link across directories.
-
- You can "delete" an open file: the actual deletion will take place when
- the file is closed.
-
- You cannot seek() past the end of a file.
-
- The results of the Dfree() function shouldn't be taken too seriously,
- especially the amount of free memory.
-
- There is little originality in the code -- it's an almost-verbatim copy
- of the shmfs.c file of the MiNT distribution. However, it can be useful
- as a skeleton for more important projects; feel free to modify it.
-
- Thierry Bousch, april 1993
-
- Internet: bousch@suntopo.matups.fr
- Fidonet: Thierry.Bousch at 2:320/100.9
-