next up previous contents
Next: Using a read-only root Up: Configuring RAM disk elements Previous: Duplicating files into /ram   Contents


RAM* and LINK* syntax

RAMDIR $<$dir$>$ [-d] [-p] [-c class[,class]...] [-n node[,node]...]
| [-m mode] [-u user] [-g group]
Creates a directory in the RAM disk.
| The -p option protects the contents of the /ram directory from update-node -clean.

RAMFILE $<$file$>$ [-d] [-c class[,class]...] [-n node[,node]...]
| [-m mode] [-u user] [-g group]
Creates a file in the RAM disk.

For both RAMDIR and RAMFILE directives:
| The -m option sets permissions of the specified file or directory.
| The -u option sets owner of the specified file or directory.
| The -g option sets group of the specified file or directory.

LINKDIR $<$dir$>$ [-d] [-p] [-c class[,class]...] [-n node[,node]...]
Creates a directory in the RAM disk, and causes the corresponding directory in the root filesystem to point to the directory in /ram.
| The -p option protects the contents of the /ram directory from update-node -clean.

LINKFILE $<$file$>$ [-d] [-c class[,class]...] [-n node[,node]...]
Creates a directory in the RAM disk, and causes the corresponding directory in the root filesystem to point to the file in /ram.

For RAMDIR, RAMFILE, LINKDIR, LINKFILE directives:
| The -d option causes the given file/directory to be duplicated in /ram.
| Supplying any -c options limits the directive to apply only to the given classes.
| Supplying any -n options limits the directive to apply only to the given nodes.
| Any wildcard syntax consisting of *, ?, $[$ $]$, or { } characters can be used to specify multiple files/directories in accordance with the POSIX.2 glob() function.


next up previous contents
Next: Using a read-only root Up: Configuring RAM disk elements Previous: Duplicating files into /ram   Contents
root 2005-06-19