Print this page
    
OS-4060 need tmpfs size support in percent
OS-4043 tmpfs should support gigabyte sizes
OS-4044 tmpfs should support "mode" option
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/man/man1m/mount_tmpfs.1m.man.txt
          +++ new/usr/src/man/man1m/mount_tmpfs.1m.man.txt
   1    1  MOUNT_TMPFS(1M)              Maintenance Commands              MOUNT_TMPFS(1M)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         mount_tmpfs - mount tmpfs file systems
   7    7  
   8    8  SYNOPSIS
   9    9         mount [-F tmpfs] [-o specific_options] [-O] special mount_point
  10   10  
  11   11  
  12   12  DESCRIPTION
  13   13         tmpfs is a memory based file system which uses kernel resources
  
    | 
      ↓ open down ↓ | 
    13 lines elided | 
    
      ↑ open up ↑ | 
  
  14   14         relating to the VM system and page cache as a file system.
  15   15  
  16   16  
  17   17         mount attaches a tmpfs file system to the file system hierarchy at the
  18   18         pathname location mount_point, which must already exist. If mount_point
  19   19         has any contents prior to the mount operation, these remain hidden
  20   20         until the file system is once again unmounted. The attributes (mode,
  21   21         owner, and group) of the root of the tmpfs filesystem are inherited
  22   22         from the underlying mount_point, provided that those attributes are
  23   23         determinable. If not, the root's attributes are set to their default
  24      -       values.
       24 +       values. The mode may also be overriden by the mode mount option, which
       25 +       takes precedence if set.
  25   26  
  26   27  
  27   28         The special argument is usually specified as swap but is in fact
  28   29         disregarded and assumed to be the virtual memory resources within the
  29   30         system.
  30   31  
  31   32  OPTIONS
  32   33         -o specific_options
  33   34                                Specify tmpfs file system specific options in a
  34   35                                comma-separated list with no intervening spaces.
  35   36                                If invalid options are specified, a warning
  36   37                                message is printed and the invalid options are
  
    | 
      ↓ open down ↓ | 
    2 lines elided | 
    
      ↑ open up ↑ | 
  
  37   38                                ignored. The following options are available:
  38   39  
  39   40                                remount
  40   41  
  41   42                                                   Remounts a file system with a
  42   43                                                   new size. A size not
  43   44                                                   explicitly set with remount
  44   45                                                   reverts to no limit.
  45   46  
  46   47  
       48 +                              mode=octalmode
       49 +                                                 The mode argument controls
       50 +                                                 the permissions of the tmpfs
       51 +                                                 mount point.  The argument
       52 +                                                 must be an octal number, of
       53 +                                                 the form passed to chmod(1).
       54 +                                                 Only the access mode, setuid,
       55 +                                                 setgid, and sticky bits (a
       56 +                                                 mask of 07777) may be set.
       57 +                                                 If this option is not
       58 +                                                 provided then the default
       59 +                                                 mode behaviour, as described
       60 +                                                 above, applies.
       61 +
       62 +
       63 +
  47   64                                size=sz
  48   65                                                   The sz argument controls the
  49   66                                                   size of this particular tmpfs
  50   67                                                   file system. If the argument
  51   68                                                   is has a `k' suffix, the
  52   69                                                   number will be interpreted as
  53   70                                                   a number of kilobytes. An `m'
  54   71                                                   suffix will be interpreted as
  55      -                                                 a number of megabytes. No
  56      -                                                 suffix is interpreted as
       72 +                                                 a number of megabytes. A `g'
       73 +                                                 suffix will be interpreted as
       74 +                                                 a number of gigabytes. A `%'
       75 +                                                 suffix will be interpreted as
       76 +                                                 a percentage of the swap
       77 +                                                 space available to the zone.
       78 +                                                 No suffix is interpreted as
  57   79                                                   bytes. In all cases, the
  58   80                                                   actual size of the file
  59   81                                                   system is the number of bytes
  60   82                                                   specified, rounded up to the
  61   83                                                   physical pagesize of the
  62   84                                                   system.
  63   85  
  64   86  
  65   87                                xattr | noxattr
  66   88                                                   Allow or disallow the
  67   89                                                   creation and manipulation of
  68   90                                                   extended attributes. The
  69   91                                                   default is xattr. See
  70   92                                                   fsattr(5) for a description
  71   93                                                   of extended attributes.
  72   94  
  73   95  
  74   96  
  75   97         -O
  76   98                                Overlay  mount. Allow the file system to be
  77   99                                mounted over an existing mount point, making the
  78  100                                underlying file system inaccessible. If a mount
  79  101                                is attempted on a pre-existing mount point
  80  102                                without setting this flag, the mount will fail,
  81  103                                producing the errordevice busy.
  82  104  
  83  105  
  84  106  FILES
  85  107         /etc/mnttab
  86  108                        Table of mounted file systems
  87  109  
  88  110  
  89  111  SEE ALSO
  
    | 
      ↓ open down ↓ | 
    23 lines elided | 
    
      ↑ open up ↑ | 
  
  90  112         mount(1M), mkdir(2), mount(2), open(2), umount(2), mnttab(4),
  91  113         attributes(5), fsattr(5), tmpfs(7FS)
  92  114  
  93  115  NOTES
  94  116         If the directory on which a file system is to be mounted is a symbolic
  95  117         link, the file system is mounted on the directory to which the symbolic
  96  118         link refers, rather than on top of the symbolic link itself.
  97  119  
  98  120  
  99  121  
 100      -                               December 2, 2011                MOUNT_TMPFS(1M)
      122 +                                March 18, 2015                 MOUNT_TMPFS(1M)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX