mount_tmpfs.8 revision 1.2
$NetBSD: mount_tmpfs.8,v 1.2 2005/09/10 22:28:57 jmmv Exp $

Copyright (c) 2005 The NetBSD Foundation, Inc.
All rights reserved.

This code is derived from software contributed to The NetBSD Foundation
by Julio M. Merino Vidal.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by the NetBSD
Foundation, Inc. and its contributors.
4. Neither the name of The NetBSD Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

.Dd September 10, 2005 .Dt MOUNT_TMPFS 8 .Os .Sh NAME .Nm mount_tmpfs .Nd mount an efficient memory file system .Sh SYNOPSIS .Nm .Op Fl g Ar group .Op Fl m Ar mode .Op Fl n Ar nodes .Op Fl o Ar options .Op Fl s Ar size .Op Fl u Ar user .Ar tmpfs .Ar mount_point .Sh DESCRIPTION The .Nm command attaches an instance of the efficient memory file system to the global file system namespace. The directory specified by .Ar mount_point is converted to an absolute path before use.

p The following options are supported: l -tag -width XoXoptions t Fl g Ar group Specifies the group name or GID of the root inode of the file system. t Fl m Ar mode Specifies the mode (in octal notation) of the root inode of the file system. t Fl n Ar nodes Specifies the maximum number of nodes available to the file system. t Fl o Ar options Options are specified with a .Fl o flag followed by a comma-separated string of options. See the .Xr mount 8 man page for possible options and their meanings. t Fl s Ar size Specifies the total file system size in bytes. If zero is given (the default), the available amount of memory (including main memory and swap space) will be used. Note that four megabytes are always reserved for the system and cannot be assigned to the file system. t Fl u Ar user Specifies the user name or UID of the root inode of the file system. .El

p Every option that accepts a numerical value as its argument can take a trailing .Sq b to indicate bytes (the default), a trailing .Sq k to indicate kilobytes, a trailing .Sq M to indicate megabytes or a trailing .Sq G to indicate gigabytes. .Sh SEE ALSO .Xr fstab 5 , .Xr mount 8 , .Xr tmpfs 9 .Sh HISTORY The .Nm utility first appeared in .Nx 4.0 . .Sh BUGS This file system is experimental.