diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/inferno/man4/memfs.4 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/inferno/man4/memfs.4')
| -rw-r--r-- | static/inferno/man4/memfs.4 | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/static/inferno/man4/memfs.4 b/static/inferno/man4/memfs.4 new file mode 100644 index 00000000..7394fa53 --- /dev/null +++ b/static/inferno/man4/memfs.4 @@ -0,0 +1,62 @@ +.TH MEMFS 4 +.SH NAME +memfs \- mount a heap based filesystem +.SH SYNOPSIS +.B memfs +.RB [ \-s ] +.RB [ \-rab ] +.RB [ \-m +.IR size ] +.RI [ mountpoint ] +.SH DESCRIPTION +.I Memfs +mounts a newly created heap-based filesystem +on the given +.I mountpoint +directory (default +.BR /tmp ). +.PP +The filesystem is entirely maintained in memory, no external storage is used. +File data is allocated in 512 byte blocks. +If a maximum +.I size +is specified, the actual maximum is rounded down to the nearest +whole number of blocks: +.IP +.EX +actualsize := (size / 512) * 512; +.EE +.PP +The root of the filesystem is owned by the user who invoked memfs and +is created with Read, Write and Execute permissions for the owner and Read and Execute +permissions for everyone else (8r755). +.PP +.SH OPTIONS +.TP +.B \-s +Serve styx on file descriptor 0. +The +.I mountpoint +and other mount options are ignored. +.TP +.B \-r +The default option. +The old +.I mountpoint +directory becomes a union directory consisting of just the root of the new filesystem. +.TP +.B \-a +Add the root of the new filesystem to the end of the union directory +represented by the +.I mountpoint +directory. +.TP +.B \-b +Add the root of the new filesystem to the beginning of the union directory +represented by the +.I mountpoint +directory. +.SH SOURCE +.B /appl/cmd/memfs.b +.SH SEE ALSO +.IR ramfile (4) |
