DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

mount_memfs(ADM)


mount_memfs -- mount memfs filesystems

Synopsis

mount [-F memfs] [generic_options] [-o specific_options]
[special|mount_point]
mount [-F memfs] [generic_options] [-o specific_options]
special mount_point mount- mount memfs filesystems

Description

generic_options are options supported by the generic mount command. mount attaches a memfs filesystem to the filesystem hierarchy at the pathname location mount_point, which must already exist. If mount_point has any contents prior to the mount operation, these remain hidden until the filesystem is once again unmounted.

memfs filesystems cannot be mounted read-only.

The options are:


-F memfs
Specifies the memfs file system type

-o
Specifies memfs filesystem specific options in a comma-separated list. If invalid options are specified, a warning message is printed and the invalid options are ignored. Multiple filesystem-specific options may be listed in any order, but must be separated by commas. The following options are available:

swapmax
Maximum amount of memory, in bytes, this mounted filesystem is allowed to use. Default is the maximum value of an unsigned integer.

global_swapmax
Maximum amount of memory, in bytes, all memfs filesystems mounted without specifying 'swapmax' are allowed to use. Default is the maximum value of an unsigned integer.

rootmode
Specifies the mode of the root directory of the mounted file system. Default is 0775.

Usage

The swapmax and global_swapmax options are mutually exclusive and cannot be specified on one command line (if they are, the command fails with EINVAL):

The global_swapmax option allows memfs file systems (like /var/tmp and /tmp) to share the same memory pool, and both:

Files


/etc/mnttab
mount table

References

mkdir(S), mnttab(F), generic mount(ADM), mount(S), open(S), umount(S)

Notices

If the directory on which a filesystem is to be mounted is a symbolic link, the filesystem is mounted on the directory to which the symbolic link refers, rather than on top of the symbolic link itself.

mount_memfs will set the root mode's owner and group information to bin, effectively doing a chown and chgrp.

Mounting an memfs filesystem creates an instantiation of the filesystem. Therefore, there is no corresponding mkfs command required for the memfs filesystem type.


© 2007 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 05 June 2007