mount_memfs(1M)


mount_memfs -- mount memfs filesystems

Synopsis

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

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.

The options are:

-F memfs
Specifies the memfs-FSType.

-o
Specify the 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 max of an unsigned integer.

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

-r
Mount the filesystem read only.

Files

/etc/mnttab
mount table

References

mkdir(2), mnttab(4), generic mount(1M), mount(2), open(2), umount(2)

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.


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.