plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

ramfs.4 (894B)


      1 .TH RAMFS 4
      2 .SH NAME
      3 ramfs  \- memory file system
      4 .SH SYNOPSIS
      5 .B ramfs
      6 [
      7 .B -i
      8 ]
      9 [
     10 .B -S
     11 .I service
     12 ]
     13 .SH DESCRIPTION
     14 .I Ramfs
     15 starts a 9P file server 
     16 keeping all files in memory.
     17 Initially the file tree is empty.
     18 .PP
     19 By default
     20 .I ramfs
     21 posts its service as
     22 .B ramfs
     23 using
     24 .MR 9pserve (4) .
     25 .PP
     26 The
     27 .B -S
     28 flag specifies an alternate service name for ramfs to use.
     29 .PP
     30 The
     31 .B -i
     32 flag tells
     33 .I ramfs
     34 to use file descriptors 0 and 1 for its communication channel
     35 rather than create a pipe.
     36 This makes it possible to use
     37 .I ramfs
     38 as a file server on a remote machine: the file descriptors 0
     39 and 1 will be the network channel from
     40 .I ramfs
     41 to the client machine.
     42 .PP
     43 This program is useful mainly as an example of how
     44 to write a user-level file server.
     45 It can also be used to provide high-performance temporary files.
     46 .SH SOURCE
     47 .B \*9/src/cmd/ramfs.c
     48 .SH "SEE ALSO"
     49 .MR 9p (3) ,
     50 .MR 9pserve (4)