xref: /freebsd/sbin/mdmfs/mdmfs.8 (revision 1a720cbec513210fa2e85c3882741ef2f6dc5f35)
14d7de91fSDima Dorfman.\"
2d69f5deeSDima Dorfman.\" Copyright (c) 2001 Dima Dorfman.
34d7de91fSDima Dorfman.\" All rights reserved.
44d7de91fSDima Dorfman.\"
54d7de91fSDima Dorfman.\" Redistribution and use in source and binary forms, with or without
64d7de91fSDima Dorfman.\" modification, are permitted provided that the following conditions
74d7de91fSDima Dorfman.\" are met:
84d7de91fSDima Dorfman.\" 1. Redistributions of source code must retain the above copyright
94d7de91fSDima Dorfman.\"    notice, this list of conditions and the following disclaimer.
104d7de91fSDima Dorfman.\" 2. Redistributions in binary form must reproduce the above copyright
114d7de91fSDima Dorfman.\"    notice, this list of conditions and the following disclaimer in the
124d7de91fSDima Dorfman.\"    documentation and/or other materials provided with the distribution.
134d7de91fSDima Dorfman.\"
144d7de91fSDima Dorfman.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
154d7de91fSDima Dorfman.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
164d7de91fSDima Dorfman.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
174d7de91fSDima Dorfman.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
184d7de91fSDima Dorfman.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
194d7de91fSDima Dorfman.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
204d7de91fSDima Dorfman.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
214d7de91fSDima Dorfman.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
224d7de91fSDima Dorfman.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
234d7de91fSDima Dorfman.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
244d7de91fSDima Dorfman.\" SUCH DAMAGE.
254d7de91fSDima Dorfman.\"
26f8526186SKyle Evans.Dd October 31, 2019
274d7de91fSDima Dorfman.Dt MDMFS 8
284d7de91fSDima Dorfman.Os
294d7de91fSDima Dorfman.Sh NAME
30f72709f6SDoug Barton.Nm mdmfs ,
31f72709f6SDoug Barton.Nm mount_mfs
324d7de91fSDima Dorfman.Nd configure and mount an in-memory file system using the
334d7de91fSDima Dorfman.Xr md 4
3450e3590cSIan Leporedriver or the
35*1a720cbeSAlexander Ziaee.Xr tmpfs 4
3650e3590cSIan Leporefilesystem
374d7de91fSDima Dorfman.Sh SYNOPSIS
384d7de91fSDima Dorfman.Nm
399bb18677SAlex Kozlov.Op Fl DLlMNnPStTUX
404d7de91fSDima Dorfman.Op Fl a Ar maxcontig
414d7de91fSDima Dorfman.Op Fl b Ar block-size
42c72132f0SMatteo Riondato.Op Fl c Ar blocks-per-cylinder-group
43c72132f0SMatteo Riondato.Op Fl d Ar max-extent-size
4463f8ddbeSMaxim Sobolev.Op Fl E Ar path-mdconfig
454d7de91fSDima Dorfman.Op Fl e Ar maxbpg
464d7de91fSDima Dorfman.Op Fl F Ar file
474d7de91fSDima Dorfman.Op Fl f Ar frag-size
484d7de91fSDima Dorfman.Op Fl i Ar bytes
49f8526186SKyle Evans.Op Fl k Ar skel
504d7de91fSDima Dorfman.Op Fl m Ar percent-free
514d7de91fSDima Dorfman.Op Fl O Ar optimization
524d7de91fSDima Dorfman.Op Fl o Ar mount-options
534d7de91fSDima Dorfman.Op Fl p Ar permissions
544d7de91fSDima Dorfman.Op Fl s Ar size
559bb18677SAlex Kozlov.Op Fl T Ar fstype
56622448faSRobert Watson.Op Fl v Ar version
579dde6035SDima Dorfman.Op Fl w Ar user : Ns Ar group
584d7de91fSDima Dorfman.Ar md-device
594d7de91fSDima Dorfman.Ar mount-point
604d7de91fSDima Dorfman.Sh DESCRIPTION
614d7de91fSDima DorfmanThe
624d7de91fSDima Dorfman.Nm
63e1205e80SPhilippe Charnierutility is designed to be a work-alike and look-alike of the deprecated
642ebc7806SChristopher Davidson.Nm mount_mfs .
654d7de91fSDima DorfmanThe end result is essentially the same,
664d7de91fSDima Dorfmanbut is accomplished in a completely different way.
6750e3590cSIan LeporeBased on
6850e3590cSIan Lepore.Ar md-device ,
6950e3590cSIan Leporethe
704d7de91fSDima Dorfman.Nm
7150e3590cSIan Leporeutility either creates a
72*1a720cbeSAlexander Ziaee.Xr tmpfs 4
7350e3590cSIan Leporefilesystem, or it configures an
744d7de91fSDima Dorfman.Xr md 4
754d7de91fSDima Dorfmandisk using
764d7de91fSDima Dorfman.Xr mdconfig 8 ,
77e7e3ba9bSMatteo Riondatoputs a UFS file system on it (unless
78e7e3ba9bSMatteo Riondato.Fl P
79e7e3ba9bSMatteo Riondatowas specified) using
804d7de91fSDima Dorfman.Xr newfs 8 ,
814d7de91fSDima Dorfmanand mounts it using
824d7de91fSDima Dorfman.Xr mount 8 .
83de63bf71SMatteo RiondatoIt can handle
84de63bf71SMatteo Riondato.Xr geom_uzip 4
85032ae0f3SCeri Daviescompressed disk images, as long as the kernel supports this GEOM class.
864d7de91fSDima DorfmanAll the command line options are passed to the appropriate program
874d7de91fSDima Dorfmanat the appropriate stage in order to achieve the desired effect.
884d7de91fSDima Dorfman.Pp
8950e3590cSIan LeporeWhen
9050e3590cSIan Lepore.Ar md-device
9150e3590cSIan Leporeis `auto',
9250e3590cSIan Lepore.Nm
9350e3590cSIan Leporeuses
94*1a720cbeSAlexander Ziaee.Xr tmpfs 4
9550e3590cSIan Leporeif it is present in the kernel or can be loaded as a module,
9650e3590cSIan Leporeotherwise it falls back to using
9750e3590cSIan Lepore.Xr md 4
9850e3590cSIan Leporeauto-unit as if `md' had been specified.
9950e3590cSIan Lepore.Pp
10050e3590cSIan LeporeWhen
10150e3590cSIan Lepore.Ar md-device
10250e3590cSIan Leporeis `tmpfs',
10350e3590cSIan Lepore.Nm
10450e3590cSIan Leporemounts a
105*1a720cbeSAlexander Ziaee.Xr tmpfs 4
10650e3590cSIan Leporefilesystem, translating the
10750e3590cSIan Lepore.Fl s
10850e3590cSIan Leporesize option, if present, into a `-o size=' mount option.
10950e3590cSIan LeporeAny
11050e3590cSIan Lepore.Fl o
11150e3590cSIan Leporeoptions on the command line are passed through to the
112*1a720cbeSAlexander Ziaee.Xr tmpfs 4
11350e3590cSIan Leporemount.
11450e3590cSIan LeporeOptions specific to
11550e3590cSIan Lepore.Xr mdconfig 8
11650e3590cSIan Leporeor
11750e3590cSIan Lepore.Xr newfs 8
11850e3590cSIan Leporeare ignored.
11950e3590cSIan Lepore.Pp
12050e3590cSIan LeporeWhen
12150e3590cSIan Lepore.Ar md-device
12250e3590cSIan Leporedoes not result in
123*1a720cbeSAlexander Ziaee.Xr tmpfs 4
12450e3590cSIan Leporebeing used, then an
12550e3590cSIan Lepore.Xr md 4
12650e3590cSIan Leporedevice is configured instead.
1274d7de91fSDima DorfmanBy default,
1284d7de91fSDima Dorfman.Nm
1294d7de91fSDima Dorfmancreates a swap-based
1304d7de91fSDima Dorfman.Pq Dv MD_SWAP
1314d7de91fSDima Dorfmandisk with soft-updates enabled
1324d7de91fSDima Dorfmanand mounts it on
1334d7de91fSDima Dorfman.Ar mount-point .
1344d7de91fSDima DorfmanIt uses the
1354d7de91fSDima Dorfman.Xr md 4
1364d7de91fSDima Dorfmandevice specified by
1374d7de91fSDima Dorfman.Ar md-device .
1384d7de91fSDima DorfmanIf
1394d7de91fSDima Dorfman.Ar md-device
1404d7de91fSDima Dorfmanis
1414d7de91fSDima Dorfman.Ql md
1424d7de91fSDima Dorfman(no unit number),
1434d7de91fSDima Dorfmanit will use
1444d7de91fSDima Dorfman.Xr md 4 Ns 's
1454d7de91fSDima Dorfmanauto-unit feature to automatically select an unused device.
1464d7de91fSDima DorfmanUnless otherwise specified with one of the options below,
1474d7de91fSDima Dorfmanit uses the default arguments to all the helper programs.
1484d7de91fSDima Dorfman.Pp
1494d7de91fSDima DorfmanThe following options are available.
1504d7de91fSDima DorfmanWhere possible,
1514d7de91fSDima Dorfmanthe option letter matches the one used by
1522ebc7806SChristopher Davidson.Nm mount_mfs
1534d7de91fSDima Dorfmanfor the same thing.
1549dde6035SDima Dorfman.Bl -tag -width indent
1554d7de91fSDima Dorfman.It Fl a Ar maxcontig
1564d7de91fSDima DorfmanSpecify the maximum number of contiguous blocks that will be laid
1574d7de91fSDima Dorfmanout before forcing a rotational delay
1584d7de91fSDima Dorfman(see the
1594d7de91fSDima Dorfman.Fl d
1604d7de91fSDima Dorfmanoption).
1614d7de91fSDima Dorfman.It Fl b Ar block-size
1624d7de91fSDima DorfmanThe block size of the file system, in bytes.
163c72132f0SMatteo Riondato.It Fl c Ar blocks-per-cylinder-group
164c72132f0SMatteo RiondatoThe number of blocks per cylinder group in the file system.
1654d7de91fSDima Dorfman.It Fl D
1664d7de91fSDima DorfmanIf not using auto-unit,
1679dde6035SDima Dorfmando not run
1684d7de91fSDima Dorfman.Xr mdconfig 8
1694d7de91fSDima Dorfmanto try to detach the unit before attaching it.
170c72132f0SMatteo Riondato.It Fl d Ar max-extent-size
171c72132f0SMatteo RiondatoThe file system may choose to store large files using extents.
172c72132f0SMatteo RiondatoThis parameter specifies the largest extent size that may be
1730fcf43f6SAllan Judeused.
1740fcf43f6SAllan JudeIt is presently limited to its default value which is 16
175c72132f0SMatteo Riondatotimes the file system blocksize.
17663f8ddbeSMaxim Sobolev.It Fl E Ar path-mdconfig
17763f8ddbeSMaxim SobolevUse
17863f8ddbeSMaxim Sobolev.Ar path-mdconfig
17963f8ddbeSMaxim Sobolevas a location of the
18063f8ddbeSMaxim Sobolev.Xr mdconfig 8
18163f8ddbeSMaxim Sobolevutility.
1824d7de91fSDima Dorfman.It Fl e Ar maxbpg
1834d7de91fSDima DorfmanIndicate the maximum number of blocks any single file can allocate
1844d7de91fSDima Dorfmanout of a cylinder group before it is forced to begin allocating
1854d7de91fSDima Dorfmanblocks from another cylinder group.
1864d7de91fSDima Dorfman.It Fl F Ar file
1874d7de91fSDima DorfmanCreate a vnode-backed
1884d7de91fSDima Dorfman.Pq Dv MD_VNODE
1894d7de91fSDima Dorfmanmemory disk backed by
1904d7de91fSDima Dorfman.Ar file .
1914d7de91fSDima Dorfman.It Fl f Ar frag-size
1924d7de91fSDima DorfmanThe fragment size of the file system in bytes.
1934d7de91fSDima Dorfman.It Fl i Ar bytes
1944d7de91fSDima DorfmanNumber of bytes per inode.
195f8526186SKyle Evans.It Fl k Ar skel
196f8526186SKyle EvansCopy the content of directory
197f8526186SKyle Evans.Ar skel
198f8526186SKyle Evansinto
199f8526186SKyle Evans.Ar mount-point .
2001d3170aaSRobert Watson.It Fl l
201d04b5dfeSRuslan ErmilovEnable multilabel MAC on the new file system.
2024d7de91fSDima Dorfman.It Fl L
2034d7de91fSDima DorfmanShow the output of the helper programs.
2044d7de91fSDima DorfmanBy default,
2054d7de91fSDima Dorfmanit is sent to
2064d7de91fSDima Dorfman.Pa /dev/null .
2074d7de91fSDima Dorfman.It Fl M
2084d7de91fSDima DorfmanCreate a
2094d7de91fSDima Dorfman.Xr malloc 9
2104d7de91fSDima Dorfmanbacked disk
2114d7de91fSDima Dorfman.Pq Dv MD_MALLOC
2124d7de91fSDima Dorfmaninstead of a swap-backed disk.
2134d7de91fSDima Dorfman.It Fl m Ar percent-free
2144d7de91fSDima DorfmanThe percentage of space reserved for the superuser.
2154d7de91fSDima Dorfman.It Fl N
2169dde6035SDima DorfmanDo not actually run the helper programs.
2174d7de91fSDima DorfmanThis is most useful in conjunction with
2184d7de91fSDima Dorfman.Fl X .
219fd07a29cSAlexander Motin.It Fl n
220fd07a29cSAlexander MotinDo not create a
221fd07a29cSAlexander Motin.Pa .snap
222fd07a29cSAlexander Motindirectory on the new file system.
2234d7de91fSDima Dorfman.It Fl O Ar optimization
2244d7de91fSDima DorfmanSelect the optimization preference;
2254d7de91fSDima Dorfmanvalid choices are
2269dde6035SDima Dorfman.Cm space
2274d7de91fSDima Dorfmanand
2289dde6035SDima Dorfman.Cm time ,
2294d7de91fSDima Dorfmanwhich will optimize for minimum space fragmentation and
2304d7de91fSDima Dorfmanminimum time spent allocating blocks,
2314d7de91fSDima Dorfmanrespectively.
2324d7de91fSDima Dorfman.It Fl o Ar mount-options
2334d7de91fSDima DorfmanSpecify the mount options with which to mount the file system.
2344d7de91fSDima DorfmanSee
2354d7de91fSDima Dorfman.Xr mount 8
2364d7de91fSDima Dorfmanfor more information.
23705b2fd30SDima Dorfman.It Fl P
23805b2fd30SDima DorfmanPreserve the existing file system;
23905b2fd30SDima Dorfmando not run
24005b2fd30SDima Dorfman.Xr newfs 8 .
24105b2fd30SDima DorfmanThis only makes sense if
24205b2fd30SDima Dorfman.Fl F
24305b2fd30SDima Dorfmanis specified to create a vnode-backed disk.
2444d7de91fSDima Dorfman.It Fl p Ar permissions
2454d7de91fSDima DorfmanSet the file (directory) permissions of the mount point
2464d7de91fSDima Dorfman.Ar mount-point
2474d7de91fSDima Dorfmanto
2484d7de91fSDima Dorfman.Ar permissions .
249ce03e3a7SYaroslav TykhiyThe
250ce03e3a7SYaroslav Tykhiy.Ar permissions
251ce03e3a7SYaroslav Tykhiyargument can be in any of the mode formats recognized by
252ce03e3a7SYaroslav Tykhiy.Xr chmod 1 .
253ce03e3a7SYaroslav TykhiyIf symbolic permissions are specified,
254ce03e3a7SYaroslav Tykhiythe operation characters
255ce03e3a7SYaroslav Tykhiy.Dq +
256ce03e3a7SYaroslav Tykhiyand
257ce03e3a7SYaroslav Tykhiy.Dq -
258ce03e3a7SYaroslav Tykhiyare interpreted relative to the initial permissions of
259ce03e3a7SYaroslav Tykhiy.Dq a=rwx .
2604d7de91fSDima Dorfman.It Fl S
2619dde6035SDima DorfmanDo not enable soft-updates on the file system.
2624d7de91fSDima Dorfman.It Fl s Ar size
2634d7de91fSDima DorfmanSpecify the size of the disk to create.
2644d7de91fSDima DorfmanThis only makes sense if
2654d7de91fSDima Dorfman.Fl F
2664d7de91fSDima Dorfmanis
2674d7de91fSDima Dorfman.Em not
2684d7de91fSDima Dorfmanspecified.
2694d7de91fSDima DorfmanThat is,
27050e3590cSIan Leporethis will work when the backing storage is some form of
27150e3590cSIan Leporememory, as opposed to a fixed-size file.
27250e3590cSIan LeporeThe size may include the usual SI suffixes (k, m, g, t, p).
27350e3590cSIan LeporeA number without a suffix is interpreted as a count of 512-byte sectors.
274bf6619baSKonstantin Belousov.It Fl t
275bf6619baSKonstantin BelousovTurn on the TRIM enable flag for
276bf6619baSKonstantin Belousov.Xr newfs 8 .
2779bb18677SAlex KozlovWhen used with a file system that issue BIO_DELETE bio requests,
278bf6619baSKonstantin Belousov.Xr md 4
2799bb18677SAlex Kozlovreturns deleted blocks to the system memory pool.
2809bb18677SAlex Kozlov.It Fl T Ar fstype
2819bb18677SAlex KozlovSpecify a file system type for a vnode-backed memory disk.
2829bb18677SAlex KozlovAny file system supported by
2839bb18677SAlex Kozlov.Xr mount 8
2849bb18677SAlex Kozlovcommand can be specified.
2859bb18677SAlex KozlovThis option only makes sense when
2869bb18677SAlex Kozlov.Fl F
2879bb18677SAlex Kozlovand
2889bb18677SAlex Kozlov.Fl P
2899bb18677SAlex Kozlovare used.
290f7acb7e4SDima Dorfman.It Fl U
291f7acb7e4SDima DorfmanEnable soft-updates on the file system.
292957d7c8fSRuslan ErmilovThis is the default, and is accepted only
293f7acb7e4SDima Dorfmanfor compatibility.
294f7acb7e4SDima DorfmanIt is only really useful to negate the
295f7acb7e4SDima Dorfman.Fl S
296f7acb7e4SDima Dorfmanflag, should such a need occur.
297622448faSRobert Watson.It Fl v Ar version
298622448faSRobert WatsonSpecify the UFS version number for use on the file system; it may be
299622448faSRobert Watsoneither
300622448faSRobert Watson.Dv 1
301622448faSRobert Watsonor
302622448faSRobert Watson.Dv 2 .
303622448faSRobert WatsonThe default is derived from the default of the
304622448faSRobert Watson.Xr newfs 8
305622448faSRobert Watsoncommand.
3069dde6035SDima Dorfman.It Fl w Ar user : Ns Ar group
3079dde6035SDima DorfmanSet the owner and group to
3084d7de91fSDima Dorfman.Ar user
3094d7de91fSDima Dorfmanand
3104d7de91fSDima Dorfman.Ar group ,
3114d7de91fSDima Dorfmanrespectively.
3124d7de91fSDima DorfmanThe arguments have the same semantics as with
3134d7de91fSDima Dorfman.Xr chown 8 ,
3149dde6035SDima Dorfmanbut specifying just a
3159dde6035SDima Dorfman.Ar user
3169dde6035SDima Dorfmanor just a
3179dde6035SDima Dorfman.Ar group
3189dde6035SDima Dorfmanis not supported.
319ab1d004fSDima Dorfman.It Fl X
320ab1d004fSDima DorfmanPrint what command will be run before running it, and
321ab1d004fSDima Dorfmanother assorted debugging information.
3224d7de91fSDima Dorfman.El
3234d7de91fSDima Dorfman.Pp
3244d7de91fSDima DorfmanThe
3254d7de91fSDima Dorfman.Fl F
3264d7de91fSDima Dorfmanand
3274d7de91fSDima Dorfman.Fl s
3284d7de91fSDima Dorfmanoptions are passed to
3294d7de91fSDima Dorfman.Xr mdconfig 8
3304d7de91fSDima Dorfmanas
3314d7de91fSDima Dorfman.Fl f
3324d7de91fSDima Dorfmanand
3334d7de91fSDima Dorfman.Fl s ,
3344d7de91fSDima Dorfmanrespectively.
3354d7de91fSDima DorfmanThe
3369dde6035SDima Dorfman.Fl a , b , c , d , e , f , i , m
3374d7de91fSDima Dorfmanand
3384d7de91fSDima Dorfman.Fl n
3394d7de91fSDima Dorfmanoptions are passed to
3404d7de91fSDima Dorfman.Xr newfs 8
3419bb18677SAlex Kozlovwith the same letter.
3429bb18677SAlex KozlovThe
3434d7de91fSDima Dorfman.Fl O
3444d7de91fSDima Dorfmanoption is passed to
3454d7de91fSDima Dorfman.Xr newfs 8
3464d7de91fSDima Dorfmanas
3474d7de91fSDima Dorfman.Fl o .
3484d7de91fSDima DorfmanThe
3494d7de91fSDima Dorfman.Fl o
3504d7de91fSDima Dorfmanoption is passed to
3514d7de91fSDima Dorfman.Xr mount 8
3524d7de91fSDima Dorfmanwith the same letter.
3539bb18677SAlex KozlovThe
3549bb18677SAlex Kozlov.Fl T
3559bb18677SAlex Kozlovoption is passed to
3569bb18677SAlex Kozlov.Xr mount 8
3579bb18677SAlex Kozlovas
3589bb18677SAlex Kozlov.Fl t .
3590fcf43f6SAllan JudeFor information on semantics, refer to the documentation of the programs
3600fcf43f6SAllan Judethat the options are passed to.
3614d7de91fSDima Dorfman.Sh EXAMPLES
3624d7de91fSDima DorfmanCreate and mount a 32 megabyte swap-backed file system on
3634d7de91fSDima Dorfman.Pa /tmp :
3644d7de91fSDima Dorfman.Pp
3659dde6035SDima Dorfman.Dl "mdmfs -s 32m md /tmp"
3664d7de91fSDima Dorfman.Pp
3674460871bSDoug BartonThe same file system created as an entry in
3684460871bSDoug Barton.Pa /etc/fstab :
369031ba6ffSRuslan Ermilov.Pp
3704460871bSDoug Barton.Dl "md /tmp mfs rw,-s32m 2 0"
3714460871bSDoug Barton.Pp
3724d7de91fSDima DorfmanCreate and mount a 16 megabyte malloc-backed file system on
3734d7de91fSDima Dorfman.Pa /tmp
3744d7de91fSDima Dorfmanusing the
3754d7de91fSDima Dorfman.Pa /dev/md1
3764d7de91fSDima Dorfmandevice;
3774d7de91fSDima Dorfmanfurthermore,
378ba40ba47SDima Dorfmando not use soft-updates on it and mount it
3794d7de91fSDima Dorfman.Cm async :
3804d7de91fSDima Dorfman.Pp
3819dde6035SDima Dorfman.Dl "mdmfs -M -S -o async -s 16m md1 /tmp"
382de63bf71SMatteo Riondato.Pp
383de63bf71SMatteo RiondatoCreate and mount a
384de63bf71SMatteo Riondato.Xr geom_uzip 4
385de63bf71SMatteo Riondatobased compressed disk image:
386de63bf71SMatteo Riondato.Pp
387de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.uzip -oro md.uzip /tmp/"
388de63bf71SMatteo Riondato.Pp
389032ae0f3SCeri DaviesMount the same image, specifying the
390de63bf71SMatteo Riondato.Pa /dev/md1
391de63bf71SMatteo Riondatodevice:
392de63bf71SMatteo Riondato.Pp
393de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.uzip -oro md1.uzip /tmp/"
394de63bf71SMatteo Riondato.Pp
395de63bf71SMatteo RiondatoConfigure a vnode-backed file system and mount its first partition,
396de63bf71SMatteo Riondatousing automatic device numbering:
397de63bf71SMatteo Riondato.Pp
398de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.img mds1a /tmp/"
3999bb18677SAlex Kozlov.Pp
4009bb18677SAlex KozlovMount a vnode-backed cd9660 file system using automatic device numbering:
4019bb18677SAlex Kozlov.Pp
4029bb18677SAlex Kozlov.Dl "mdmfs -T cd9660 -P -F foo.iso md /tmp"
403f7acb7e4SDima Dorfman.Sh COMPATIBILITY
404e1205e80SPhilippe CharnierThe
405e1205e80SPhilippe Charnier.Nm
406957d7c8fSRuslan Ermilovutility, while designed to be compatible with
4072ebc7806SChristopher Davidson.Nm mount_mfs ,
408f7acb7e4SDima Dorfmancan be useful by itself.
409f7acb7e4SDima DorfmanSince
4102ebc7806SChristopher Davidson.Nm mount_mfs
411f72709f6SDoug Bartonhad some silly defaults, a
412957d7c8fSRuslan Ermilov.Dq compatibility
413f7acb7e4SDima Dorfmanmode is provided for the case where bug-to-bug compatibility is desired.
414f7acb7e4SDima Dorfman.Pp
415957d7c8fSRuslan ErmilovCompatibility is enabled by starting
416f7acb7e4SDima Dorfman.Nm
4172dc4ac06SIan Dowsewith the name
4182dc4ac06SIan Dowse.Li mount_mfs
4192dc4ac06SIan Dowseor
4202dc4ac06SIan Dowse.Li mfs
421f7acb7e4SDima Dorfman(as returned by
422f7acb7e4SDima Dorfman.Xr getprogname 3 ) .
423957d7c8fSRuslan ErmilovIn this mode, the following behavior, as done by
4242ebc7806SChristopher Davidson.Nm mount_mfs ,
425f7acb7e4SDima Dorfmanis duplicated:
4266a68a83eSRuslan Ermilov.Bl -bullet -offset indent
427f7acb7e4SDima Dorfman.It
428f7acb7e4SDima DorfmanThe file mode of
429f7acb7e4SDima Dorfman.Ar mount-point
430957d7c8fSRuslan Ermilovis set by default to
431f7acb7e4SDima Dorfman.Li 01777
432f7acb7e4SDima Dorfmanas if
433f7acb7e4SDima Dorfman.Fl p Ar 1777
434f7acb7e4SDima Dorfmanwas given on the command line.
435f7acb7e4SDima Dorfman.El
43629dfd70bSDima Dorfman.Sh SEE ALSO
43729dfd70bSDima Dorfman.Xr md 4 ,
438*1a720cbeSAlexander Ziaee.Xr tmpfs 4 ,
439f7acb7e4SDima Dorfman.Xr fstab 5 ,
44029dfd70bSDima Dorfman.Xr mdconfig 8 ,
44129dfd70bSDima Dorfman.Xr mount 8 ,
44229dfd70bSDima Dorfman.Xr newfs 8
4430fcf43f6SAllan Jude.Sh HISTORY
4440fcf43f6SAllan JudeThe
4450fcf43f6SAllan Jude.Nm
4460fcf43f6SAllan Judeutility appeared in
4470fcf43f6SAllan Jude.Fx 5.0 .
4489dde6035SDima Dorfman.Sh AUTHORS
4494d7de91fSDima Dorfman.An Dima Dorfman
450