Print this page
    
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/man/man1m/mount_tmpfs.1m
          +++ new/usr/src/man/man1m/mount_tmpfs.1m
   1    1  '\" te
   2    2  .\"  Copyright (c) 2003, Sun Microsystems, Inc.  All Rights Reserved
   3    3  .\"  Copyright 2015 Joyent, Inc.
   4    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5    5  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6    6  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7    7  .TH MOUNT_TMPFS 1M "Mar 18, 2015"
   8    8  .SH NAME
   9    9  mount_tmpfs \- mount tmpfs file systems
  10   10  .SH SYNOPSIS
  11   11  .LP
  12   12  .nf
  13   13  \fBmount\fR [\fB-F\fR tmpfs] [\fB-o\fR \fIspecific_options\fR] [\fB-O\fR] \fIspecial\fR \fImount_point\fR
  14   14  .fi
  15   15  
  16   16  .SH DESCRIPTION
  17   17  .LP
  18   18  \fBtmpfs\fR is a memory based file system which uses kernel resources relating
  19   19  to the \fBVM\fR system and page cache as a file system.
  20   20  .sp
  21   21  .LP
  22   22  \fBmount\fR attaches a \fBtmpfs\fR file system to the file system hierarchy at
  23   23  the pathname location \fImount_point\fR, which must already exist. If
  24   24  \fImount_point\fR has any contents prior to the \fBmount\fR operation, these
  25   25  remain hidden until the file system is once again unmounted. The attributes
  26   26  (mode, owner, and group) of the root of the \fBtmpfs\fR filesystem are
  27   27  inherited from the underlying \fImount_point\fR, provided that those attributes
  28   28  are determinable. If not, the root's attributes are set to their default
  29   29  values. The mode may also be overriden by the \fBmode\fR mount option, which
  30   30  takes precedence if set.
  31   31  .sp
  32   32  .LP
  33   33  The \fIspecial\fR argument is usually specified as \fBswap\fR but is in fact
  34   34  disregarded and assumed to be the virtual memory resources within the system.
  35   35  .SH OPTIONS
  36   36  .ne 2
  37   37  .na
  38   38  \fB\fB-o\fR \fIspecific_options\fR\fR
  39   39  .ad
  40   40  .RS 23n
  41   41  Specify \fBtmpfs\fR file system specific options in a comma-separated list with
  42   42  no intervening spaces. If invalid options are specified, a warning  message is
  43   43  printed and the invalid options are ignored. The following options are
  44   44  available:
  45   45  .sp
  46   46  .ne 2
  47   47  .na
  48   48  \fB\fBremount\fR\fR
  49   49  .ad
  50   50  .sp .6
  51   51  .RS 19n
  52   52  Remounts a file system with a new size. A size not explicitly
  53   53  set with \fBremount\fR reverts to no limit.
  54   54  .RE
  55   55  
  56   56  .sp
  57   57  .ne 2
  58   58  .na
  59   59  \fBmode=\fIoctalmode\fR\fR
  60   60  .ad
  61   61  .RS 19n
  62   62  The \fImode\fR argument controls the permissions of the \fBtmpfs\fR mount
  63   63  point.  The argument must be an octal number, of the form passed to
  64   64  \fBchmod\fR(1).  Only the access mode, setuid, setgid, and sticky bits (a mask
  65   65  of \fB07777\fR) may be set.  If this option is not provided then the default
  66   66  mode behaviour, as described above, applies.
  67   67  .RE
  68   68  
  69   69  .sp
  70   70  .sp
  71   71  .ne 2
  72   72  .na
  73   73  \fBsize=\fIsz\fR\fR
  74   74  .ad
  75   75  .RS 19n
  76   76  The \fIsz\fR argument controls the size of this particular \fBtmpfs\fR file
  77   77  system. If the argument is has a `k' suffix, the number will be interpreted as
  78   78  a number of kilobytes. An `m' suffix will be interpreted as a number of
  79   79  megabytes. A `g' suffix will be interpreted as a number of gigabytes. A `%'
  80   80  suffix will be interpreted as a percentage of the swap space available to the
  81   81  zone. No suffix is interpreted as bytes. In all cases, the actual size of
  82   82  the file system is the number of bytes specified, rounded up to the physical
  83   83  pagesize of the system.
  84   84  .RE
  85   85  
  86   86  .sp
  87   87  .ne 2
  88   88  .na
  89   89  \fB\fBxattr\fR | \fBnoxattr\fR\fR
  90   90  .ad
  91   91  .RS 19n
  92   92  Allow or disallow the creation and manipulation of extended attributes. The
  93   93  default is \fBxattr\fR. See \fBfsattr\fR(5) for a description of extended
  94   94  attributes.
  95   95  .RE
  96   96  
  97   97  .RE
  98   98  
  99   99  .sp
 100  100  .ne 2
 101  101  .na
 102  102  \fB\fB-O\fR\fR
 103  103  .ad
 104  104  .RS 23n
 105  105  Overlay  mount. Allow the file system to be mounted over an existing mount
 106  106  point, making the underlying file system inaccessible. If a mount is attempted
 107  107  on a pre-existing mount point without setting this flag, the mount will fail,
 108  108  producing the error\f(CWdevice busy\fR.
 109  109  .RE
 110  110  
 111  111  .SH FILES
 112  112  .ne 2
 113  113  .na
 114  114  \fB\fB/etc/mnttab\fR\fR
 115  115  .ad
 116  116  .RS 15n
 117  117  Table of mounted file systems
 118  118  .RE
 119  119  
 120  120  .SH SEE ALSO
 121  121  .LP
 122  122  \fBmount\fR(1M), \fBmkdir\fR(2), \fBmount\fR(2), \fBopen\fR(2),
 123  123  \fBumount\fR(2), \fBmnttab\fR(4), \fBattributes\fR(5), \fBfsattr\fR(5),
 124  124  \fBtmpfs\fR(7FS)
 125  125  .SH NOTES
 126  126  .LP
 127  127  If the directory on which a file system is to be mounted is a symbolic link,
 128  128  the file system is mounted on the directory to which the symbolic link refers,
 129  129  rather than on top of the symbolic link itself.
  
    | 
      ↓ open down ↓ | 
    129 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX