2 .\" Copyright (c) 2001 Dima Dorfman.
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .Nd configure and mount an in-memory file system using the
41 .Op Fl b Ar block-size
48 .Op Fl m Ar percent-free
49 .Op Fl n Ar rotational-positions
50 .Op Fl O Ar optimization
51 .Op Fl o Ar mount-options
52 .Op Fl p Ar permissions
55 .Op Fl w Ar user : Ns Ar group
62 .Op Fl b Ar block-size
69 .Op Fl m Ar percent-free
70 .Op Fl n Ar rotational-positions
71 .Op Fl O Ar optimization
72 .Op Fl o Ar mount-options
80 utility is designed to be a work-alike and look-alike of the deprecated
82 The end result is essentially the same,
83 but is accomplished in a completely different way.
90 puts a UFS file system on it using
94 All the command line options are passed to the appropriate program
95 at the appropriate stage in order to achieve the desired effect.
101 disk with soft-updates enabled
115 auto-unit feature to automatically select an unused device.
116 Unless otherwise specified with one of the options below,
117 it uses the default arguments to all the helper programs.
119 The following options are available.
121 the option letter matches the one used by
124 .Bl -tag -width indent
125 .It Fl a Ar maxcontig
126 Specify the maximum number of contiguous blocks that will be laid
127 out before forcing a rotational delay
131 .It Fl b Ar block-size
132 The block size of the file system, in bytes.
134 Enable full compatibility mode with
138 section for more information.
139 .It Fl c Ar cylinders
140 The number of cylinders per cylinder group in the file system.
142 If not using auto-unit,
145 to try to detach the unit before attaching it.
147 Specify the minimum time in milliseconds required to initiate another
148 disk transfer on the same cylinder.
149 Modern disks with read/write-behind achieve higher performance without
151 so it is best to leave it at 0 milliseconds.
153 Indicate the maximum number of blocks any single file can allocate
154 out of a cylinder group before it is forced to begin allocating
155 blocks from another cylinder group.
157 Create a vnode-backed
159 memory disk backed by
161 .It Fl f Ar frag-size
162 The fragment size of the file system in bytes.
164 Number of bytes per inode.
166 Enable multilabel MAC on the new file system.
168 Show the output of the helper programs.
177 instead of a swap-backed disk.
178 .It Fl m Ar percent-free
179 The percentage of space reserved for the superuser.
181 Do not actually run the helper programs.
182 This is most useful in conjunction with
184 .It Fl n Ar rotational-positions
185 The default number of rotational positions to distinguish.
186 .It Fl O Ar optimization
187 Select the optimization preference;
192 which will optimize for minimum space fragmentation and
193 minimum time spent allocating blocks,
195 .It Fl o Ar mount-options
196 Specify the mount options with which to mount the file system.
199 for more information.
200 .It Fl p Ar permissions
201 Set the file (directory) permissions of the mount point
207 argument can be in any of the mode formats recognized by
209 If symbolic permissions are specified,
210 the operation characters
214 are interpreted relative to the initial permissions of
217 Do not enable soft-updates on the file system.
219 Specify the size of the disk to create.
220 This only makes sense if
226 this will work for the default swap-backed
235 Enable soft-updates on the file system.
236 This is the default, even in compatibility mode, and is accepted only
238 It is only really useful to negate the
240 flag, should such a need occur.
242 Specify the UFS version number for use on the file system; it may be
247 The default is derived from the default of the
250 .It Fl w Ar user : Ns Ar group
251 Set the owner and group to
256 The arguments have the same semantics as with
258 but specifying just a
264 Print what command will be run before running it, and
265 other assorted debugging information.
272 options are passed to
280 .Fl a , b , c , d , e , f , i , m
283 options are passed to
285 with the same letter;
296 with the same letter.
297 See the programs that the options are passed to for more information
300 Create and mount a 32 megabyte swap-backed file system on
303 .Dl "mdmfs -s 32m md /tmp"
305 The same file system created as an entry in
308 .Dl "md /tmp mfs rw,-s32m 2 0"
310 Create and mount a 16 megabyte malloc-backed file system on
316 do not use soft-updates on it and mount it
319 .Dl "mdmfs -M -S -o async -s 16m md1 /tmp"
323 utility, while designed to be fully compatible with
325 can be useful by itself.
328 had some silly defaults, a
329 .Dq full compatibility
330 mode is provided for the case where bug-to-bug compatibility is desired.
332 Full compatibility is enabled with the
342 .Xr getprogname 3 ) .
343 In this mode, only the options which would be accepted by
346 Furthermore, the following behavior, as done by
349 .Bl -bullet -offset indent
357 was given on the command line.