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.\" 264d7de91fSDima Dorfman.\" $FreeBSD$ 274d7de91fSDima Dorfman.\" 28*f8526186SKyle Evans.Dd October 31, 2019 294d7de91fSDima Dorfman.Dt MDMFS 8 304d7de91fSDima Dorfman.Os 314d7de91fSDima Dorfman.Sh NAME 32f72709f6SDoug Barton.Nm mdmfs , 33f72709f6SDoug Barton.Nm mount_mfs 344d7de91fSDima Dorfman.Nd configure and mount an in-memory file system using the 354d7de91fSDima Dorfman.Xr md 4 3650e3590cSIan Leporedriver or the 3750e3590cSIan Lepore.Xr tmpfs 5 3850e3590cSIan Leporefilesystem 394d7de91fSDima Dorfman.Sh SYNOPSIS 404d7de91fSDima Dorfman.Nm 419bb18677SAlex Kozlov.Op Fl DLlMNnPStTUX 424d7de91fSDima Dorfman.Op Fl a Ar maxcontig 434d7de91fSDima Dorfman.Op Fl b Ar block-size 44c72132f0SMatteo Riondato.Op Fl c Ar blocks-per-cylinder-group 45c72132f0SMatteo Riondato.Op Fl d Ar max-extent-size 4663f8ddbeSMaxim Sobolev.Op Fl E Ar path-mdconfig 474d7de91fSDima Dorfman.Op Fl e Ar maxbpg 484d7de91fSDima Dorfman.Op Fl F Ar file 494d7de91fSDima Dorfman.Op Fl f Ar frag-size 504d7de91fSDima Dorfman.Op Fl i Ar bytes 51*f8526186SKyle Evans.Op Fl k Ar skel 524d7de91fSDima Dorfman.Op Fl m Ar percent-free 534d7de91fSDima Dorfman.Op Fl O Ar optimization 544d7de91fSDima Dorfman.Op Fl o Ar mount-options 554d7de91fSDima Dorfman.Op Fl p Ar permissions 564d7de91fSDima Dorfman.Op Fl s Ar size 579bb18677SAlex Kozlov.Op Fl T Ar fstype 58622448faSRobert Watson.Op Fl v Ar version 599dde6035SDima Dorfman.Op Fl w Ar user : Ns Ar group 604d7de91fSDima Dorfman.Ar md-device 614d7de91fSDima Dorfman.Ar mount-point 624d7de91fSDima Dorfman.Sh DESCRIPTION 634d7de91fSDima DorfmanThe 644d7de91fSDima Dorfman.Nm 65e1205e80SPhilippe Charnierutility is designed to be a work-alike and look-alike of the deprecated 664d7de91fSDima Dorfman.Xr mount_mfs 8 . 674d7de91fSDima DorfmanThe end result is essentially the same, 684d7de91fSDima Dorfmanbut is accomplished in a completely different way. 6950e3590cSIan LeporeBased on 7050e3590cSIan Lepore.Ar md-device , 7150e3590cSIan Leporethe 724d7de91fSDima Dorfman.Nm 7350e3590cSIan Leporeutility either creates a 7450e3590cSIan Lepore.Xr tmpfs 5 7550e3590cSIan Leporefilesystem, or it configures an 764d7de91fSDima Dorfman.Xr md 4 774d7de91fSDima Dorfmandisk using 784d7de91fSDima Dorfman.Xr mdconfig 8 , 79e7e3ba9bSMatteo Riondatoputs a UFS file system on it (unless 80e7e3ba9bSMatteo Riondato.Fl P 81e7e3ba9bSMatteo Riondatowas specified) using 824d7de91fSDima Dorfman.Xr newfs 8 , 834d7de91fSDima Dorfmanand mounts it using 844d7de91fSDima Dorfman.Xr mount 8 . 85de63bf71SMatteo RiondatoIt can handle 86de63bf71SMatteo Riondato.Xr geom_uzip 4 87032ae0f3SCeri Daviescompressed disk images, as long as the kernel supports this GEOM class. 884d7de91fSDima DorfmanAll the command line options are passed to the appropriate program 894d7de91fSDima Dorfmanat the appropriate stage in order to achieve the desired effect. 904d7de91fSDima Dorfman.Pp 9150e3590cSIan LeporeWhen 9250e3590cSIan Lepore.Ar md-device 9350e3590cSIan Leporeis `auto', 9450e3590cSIan Lepore.Nm 9550e3590cSIan Leporeuses 9650e3590cSIan Lepore.Xr tmpfs 5 9750e3590cSIan Leporeif it is present in the kernel or can be loaded as a module, 9850e3590cSIan Leporeotherwise it falls back to using 9950e3590cSIan Lepore.Xr md 4 10050e3590cSIan Leporeauto-unit as if `md' had been specified. 10150e3590cSIan Lepore.Pp 10250e3590cSIan LeporeWhen 10350e3590cSIan Lepore.Ar md-device 10450e3590cSIan Leporeis `tmpfs', 10550e3590cSIan Lepore.Nm 10650e3590cSIan Leporemounts a 10750e3590cSIan Lepore.Xr tmpfs 5 10850e3590cSIan Leporefilesystem, translating the 10950e3590cSIan Lepore.Fl s 11050e3590cSIan Leporesize option, if present, into a `-o size=' mount option. 11150e3590cSIan LeporeAny 11250e3590cSIan Lepore.Fl o 11350e3590cSIan Leporeoptions on the command line are passed through to the 11450e3590cSIan Lepore.Xr tmpfs 5 11550e3590cSIan Leporemount. 11650e3590cSIan LeporeOptions specific to 11750e3590cSIan Lepore.Xr mdconfig 8 11850e3590cSIan Leporeor 11950e3590cSIan Lepore.Xr newfs 8 12050e3590cSIan Leporeare ignored. 12150e3590cSIan Lepore.Pp 12250e3590cSIan LeporeWhen 12350e3590cSIan Lepore.Ar md-device 12450e3590cSIan Leporedoes not result in 12550e3590cSIan Lepore.Xr tmpfs 5 12650e3590cSIan Leporebeing used, then an 12750e3590cSIan Lepore.Xr md 4 12850e3590cSIan Leporedevice is configured instead. 1294d7de91fSDima DorfmanBy default, 1304d7de91fSDima Dorfman.Nm 1314d7de91fSDima Dorfmancreates a swap-based 1324d7de91fSDima Dorfman.Pq Dv MD_SWAP 1334d7de91fSDima Dorfmandisk with soft-updates enabled 1344d7de91fSDima Dorfmanand mounts it on 1354d7de91fSDima Dorfman.Ar mount-point . 1364d7de91fSDima DorfmanIt uses the 1374d7de91fSDima Dorfman.Xr md 4 1384d7de91fSDima Dorfmandevice specified by 1394d7de91fSDima Dorfman.Ar md-device . 1404d7de91fSDima DorfmanIf 1414d7de91fSDima Dorfman.Ar md-device 1424d7de91fSDima Dorfmanis 1434d7de91fSDima Dorfman.Ql md 1444d7de91fSDima Dorfman(no unit number), 1454d7de91fSDima Dorfmanit will use 1464d7de91fSDima Dorfman.Xr md 4 Ns 's 1474d7de91fSDima Dorfmanauto-unit feature to automatically select an unused device. 1484d7de91fSDima DorfmanUnless otherwise specified with one of the options below, 1494d7de91fSDima Dorfmanit uses the default arguments to all the helper programs. 1504d7de91fSDima Dorfman.Pp 1514d7de91fSDima DorfmanThe following options are available. 1524d7de91fSDima DorfmanWhere possible, 1534d7de91fSDima Dorfmanthe option letter matches the one used by 1544d7de91fSDima Dorfman.Xr mount_mfs 8 1554d7de91fSDima Dorfmanfor the same thing. 1569dde6035SDima Dorfman.Bl -tag -width indent 1574d7de91fSDima Dorfman.It Fl a Ar maxcontig 1584d7de91fSDima DorfmanSpecify the maximum number of contiguous blocks that will be laid 1594d7de91fSDima Dorfmanout before forcing a rotational delay 1604d7de91fSDima Dorfman(see the 1614d7de91fSDima Dorfman.Fl d 1624d7de91fSDima Dorfmanoption). 1634d7de91fSDima Dorfman.It Fl b Ar block-size 1644d7de91fSDima DorfmanThe block size of the file system, in bytes. 165c72132f0SMatteo Riondato.It Fl c Ar blocks-per-cylinder-group 166c72132f0SMatteo RiondatoThe number of blocks per cylinder group in the file system. 1674d7de91fSDima Dorfman.It Fl D 1684d7de91fSDima DorfmanIf not using auto-unit, 1699dde6035SDima Dorfmando not run 1704d7de91fSDima Dorfman.Xr mdconfig 8 1714d7de91fSDima Dorfmanto try to detach the unit before attaching it. 172c72132f0SMatteo Riondato.It Fl d Ar max-extent-size 173c72132f0SMatteo RiondatoThe file system may choose to store large files using extents. 174c72132f0SMatteo RiondatoThis parameter specifies the largest extent size that may be 1750fcf43f6SAllan Judeused. 1760fcf43f6SAllan JudeIt is presently limited to its default value which is 16 177c72132f0SMatteo Riondatotimes the file system blocksize. 17863f8ddbeSMaxim Sobolev.It Fl E Ar path-mdconfig 17963f8ddbeSMaxim SobolevUse 18063f8ddbeSMaxim Sobolev.Ar path-mdconfig 18163f8ddbeSMaxim Sobolevas a location of the 18263f8ddbeSMaxim Sobolev.Xr mdconfig 8 18363f8ddbeSMaxim Sobolevutility. 1844d7de91fSDima Dorfman.It Fl e Ar maxbpg 1854d7de91fSDima DorfmanIndicate the maximum number of blocks any single file can allocate 1864d7de91fSDima Dorfmanout of a cylinder group before it is forced to begin allocating 1874d7de91fSDima Dorfmanblocks from another cylinder group. 1884d7de91fSDima Dorfman.It Fl F Ar file 1894d7de91fSDima DorfmanCreate a vnode-backed 1904d7de91fSDima Dorfman.Pq Dv MD_VNODE 1914d7de91fSDima Dorfmanmemory disk backed by 1924d7de91fSDima Dorfman.Ar file . 1934d7de91fSDima Dorfman.It Fl f Ar frag-size 1944d7de91fSDima DorfmanThe fragment size of the file system in bytes. 1954d7de91fSDima Dorfman.It Fl i Ar bytes 1964d7de91fSDima DorfmanNumber of bytes per inode. 197*f8526186SKyle Evans.It Fl k Ar skel 198*f8526186SKyle EvansCopy the content of directory 199*f8526186SKyle Evans.Ar skel 200*f8526186SKyle Evansinto 201*f8526186SKyle Evans.Ar mount-point . 2021d3170aaSRobert Watson.It Fl l 203d04b5dfeSRuslan ErmilovEnable multilabel MAC on the new file system. 2044d7de91fSDima Dorfman.It Fl L 2054d7de91fSDima DorfmanShow the output of the helper programs. 2064d7de91fSDima DorfmanBy default, 2074d7de91fSDima Dorfmanit is sent to 2084d7de91fSDima Dorfman.Pa /dev/null . 2094d7de91fSDima Dorfman.It Fl M 2104d7de91fSDima DorfmanCreate a 2114d7de91fSDima Dorfman.Xr malloc 9 2124d7de91fSDima Dorfmanbacked disk 2134d7de91fSDima Dorfman.Pq Dv MD_MALLOC 2144d7de91fSDima Dorfmaninstead of a swap-backed disk. 2154d7de91fSDima Dorfman.It Fl m Ar percent-free 2164d7de91fSDima DorfmanThe percentage of space reserved for the superuser. 2174d7de91fSDima Dorfman.It Fl N 2189dde6035SDima DorfmanDo not actually run the helper programs. 2194d7de91fSDima DorfmanThis is most useful in conjunction with 2204d7de91fSDima Dorfman.Fl X . 221fd07a29cSAlexander Motin.It Fl n 222fd07a29cSAlexander MotinDo not create a 223fd07a29cSAlexander Motin.Pa .snap 224fd07a29cSAlexander Motindirectory on the new file system. 2254d7de91fSDima Dorfman.It Fl O Ar optimization 2264d7de91fSDima DorfmanSelect the optimization preference; 2274d7de91fSDima Dorfmanvalid choices are 2289dde6035SDima Dorfman.Cm space 2294d7de91fSDima Dorfmanand 2309dde6035SDima Dorfman.Cm time , 2314d7de91fSDima Dorfmanwhich will optimize for minimum space fragmentation and 2324d7de91fSDima Dorfmanminimum time spent allocating blocks, 2334d7de91fSDima Dorfmanrespectively. 2344d7de91fSDima Dorfman.It Fl o Ar mount-options 2354d7de91fSDima DorfmanSpecify the mount options with which to mount the file system. 2364d7de91fSDima DorfmanSee 2374d7de91fSDima Dorfman.Xr mount 8 2384d7de91fSDima Dorfmanfor more information. 23905b2fd30SDima Dorfman.It Fl P 24005b2fd30SDima DorfmanPreserve the existing file system; 24105b2fd30SDima Dorfmando not run 24205b2fd30SDima Dorfman.Xr newfs 8 . 24305b2fd30SDima DorfmanThis only makes sense if 24405b2fd30SDima Dorfman.Fl F 24505b2fd30SDima Dorfmanis specified to create a vnode-backed disk. 2464d7de91fSDima Dorfman.It Fl p Ar permissions 2474d7de91fSDima DorfmanSet the file (directory) permissions of the mount point 2484d7de91fSDima Dorfman.Ar mount-point 2494d7de91fSDima Dorfmanto 2504d7de91fSDima Dorfman.Ar permissions . 251ce03e3a7SYaroslav TykhiyThe 252ce03e3a7SYaroslav Tykhiy.Ar permissions 253ce03e3a7SYaroslav Tykhiyargument can be in any of the mode formats recognized by 254ce03e3a7SYaroslav Tykhiy.Xr chmod 1 . 255ce03e3a7SYaroslav TykhiyIf symbolic permissions are specified, 256ce03e3a7SYaroslav Tykhiythe operation characters 257ce03e3a7SYaroslav Tykhiy.Dq + 258ce03e3a7SYaroslav Tykhiyand 259ce03e3a7SYaroslav Tykhiy.Dq - 260ce03e3a7SYaroslav Tykhiyare interpreted relative to the initial permissions of 261ce03e3a7SYaroslav Tykhiy.Dq a=rwx . 2624d7de91fSDima Dorfman.It Fl S 2639dde6035SDima DorfmanDo not enable soft-updates on the file system. 2644d7de91fSDima Dorfman.It Fl s Ar size 2654d7de91fSDima DorfmanSpecify the size of the disk to create. 2664d7de91fSDima DorfmanThis only makes sense if 2674d7de91fSDima Dorfman.Fl F 2684d7de91fSDima Dorfmanis 2694d7de91fSDima Dorfman.Em not 2704d7de91fSDima Dorfmanspecified. 2714d7de91fSDima DorfmanThat is, 27250e3590cSIan Leporethis will work when the backing storage is some form of 27350e3590cSIan Leporememory, as opposed to a fixed-size file. 27450e3590cSIan LeporeThe size may include the usual SI suffixes (k, m, g, t, p). 27550e3590cSIan LeporeA number without a suffix is interpreted as a count of 512-byte sectors. 276bf6619baSKonstantin Belousov.It Fl t 277bf6619baSKonstantin BelousovTurn on the TRIM enable flag for 278bf6619baSKonstantin Belousov.Xr newfs 8 . 2799bb18677SAlex KozlovWhen used with a file system that issue BIO_DELETE bio requests, 280bf6619baSKonstantin Belousov.Xr md 4 2819bb18677SAlex Kozlovreturns deleted blocks to the system memory pool. 2829bb18677SAlex Kozlov.It Fl T Ar fstype 2839bb18677SAlex KozlovSpecify a file system type for a vnode-backed memory disk. 2849bb18677SAlex KozlovAny file system supported by 2859bb18677SAlex Kozlov.Xr mount 8 2869bb18677SAlex Kozlovcommand can be specified. 2879bb18677SAlex KozlovThis option only makes sense when 2889bb18677SAlex Kozlov.Fl F 2899bb18677SAlex Kozlovand 2909bb18677SAlex Kozlov.Fl P 2919bb18677SAlex Kozlovare used. 292f7acb7e4SDima Dorfman.It Fl U 293f7acb7e4SDima DorfmanEnable soft-updates on the file system. 294957d7c8fSRuslan ErmilovThis is the default, and is accepted only 295f7acb7e4SDima Dorfmanfor compatibility. 296f7acb7e4SDima DorfmanIt is only really useful to negate the 297f7acb7e4SDima Dorfman.Fl S 298f7acb7e4SDima Dorfmanflag, should such a need occur. 299622448faSRobert Watson.It Fl v Ar version 300622448faSRobert WatsonSpecify the UFS version number for use on the file system; it may be 301622448faSRobert Watsoneither 302622448faSRobert Watson.Dv 1 303622448faSRobert Watsonor 304622448faSRobert Watson.Dv 2 . 305622448faSRobert WatsonThe default is derived from the default of the 306622448faSRobert Watson.Xr newfs 8 307622448faSRobert Watsoncommand. 3089dde6035SDima Dorfman.It Fl w Ar user : Ns Ar group 3099dde6035SDima DorfmanSet the owner and group to 3104d7de91fSDima Dorfman.Ar user 3114d7de91fSDima Dorfmanand 3124d7de91fSDima Dorfman.Ar group , 3134d7de91fSDima Dorfmanrespectively. 3144d7de91fSDima DorfmanThe arguments have the same semantics as with 3154d7de91fSDima Dorfman.Xr chown 8 , 3169dde6035SDima Dorfmanbut specifying just a 3179dde6035SDima Dorfman.Ar user 3189dde6035SDima Dorfmanor just a 3199dde6035SDima Dorfman.Ar group 3209dde6035SDima Dorfmanis not supported. 321ab1d004fSDima Dorfman.It Fl X 322ab1d004fSDima DorfmanPrint what command will be run before running it, and 323ab1d004fSDima Dorfmanother assorted debugging information. 3244d7de91fSDima Dorfman.El 3254d7de91fSDima Dorfman.Pp 3264d7de91fSDima DorfmanThe 3274d7de91fSDima Dorfman.Fl F 3284d7de91fSDima Dorfmanand 3294d7de91fSDima Dorfman.Fl s 3304d7de91fSDima Dorfmanoptions are passed to 3314d7de91fSDima Dorfman.Xr mdconfig 8 3324d7de91fSDima Dorfmanas 3334d7de91fSDima Dorfman.Fl f 3344d7de91fSDima Dorfmanand 3354d7de91fSDima Dorfman.Fl s , 3364d7de91fSDima Dorfmanrespectively. 3374d7de91fSDima DorfmanThe 3389dde6035SDima Dorfman.Fl a , b , c , d , e , f , i , m 3394d7de91fSDima Dorfmanand 3404d7de91fSDima Dorfman.Fl n 3414d7de91fSDima Dorfmanoptions are passed to 3424d7de91fSDima Dorfman.Xr newfs 8 3439bb18677SAlex Kozlovwith the same letter. 3449bb18677SAlex KozlovThe 3454d7de91fSDima Dorfman.Fl O 3464d7de91fSDima Dorfmanoption is passed to 3474d7de91fSDima Dorfman.Xr newfs 8 3484d7de91fSDima Dorfmanas 3494d7de91fSDima Dorfman.Fl o . 3504d7de91fSDima DorfmanThe 3514d7de91fSDima Dorfman.Fl o 3524d7de91fSDima Dorfmanoption is passed to 3534d7de91fSDima Dorfman.Xr mount 8 3544d7de91fSDima Dorfmanwith the same letter. 3559bb18677SAlex KozlovThe 3569bb18677SAlex Kozlov.Fl T 3579bb18677SAlex Kozlovoption is passed to 3589bb18677SAlex Kozlov.Xr mount 8 3599bb18677SAlex Kozlovas 3609bb18677SAlex Kozlov.Fl t . 3610fcf43f6SAllan JudeFor information on semantics, refer to the documentation of the programs 3620fcf43f6SAllan Judethat the options are passed to. 3634d7de91fSDima Dorfman.Sh EXAMPLES 3644d7de91fSDima DorfmanCreate and mount a 32 megabyte swap-backed file system on 3654d7de91fSDima Dorfman.Pa /tmp : 3664d7de91fSDima Dorfman.Pp 3679dde6035SDima Dorfman.Dl "mdmfs -s 32m md /tmp" 3684d7de91fSDima Dorfman.Pp 3694460871bSDoug BartonThe same file system created as an entry in 3704460871bSDoug Barton.Pa /etc/fstab : 371031ba6ffSRuslan Ermilov.Pp 3724460871bSDoug Barton.Dl "md /tmp mfs rw,-s32m 2 0" 3734460871bSDoug Barton.Pp 3744d7de91fSDima DorfmanCreate and mount a 16 megabyte malloc-backed file system on 3754d7de91fSDima Dorfman.Pa /tmp 3764d7de91fSDima Dorfmanusing the 3774d7de91fSDima Dorfman.Pa /dev/md1 3784d7de91fSDima Dorfmandevice; 3794d7de91fSDima Dorfmanfurthermore, 380ba40ba47SDima Dorfmando not use soft-updates on it and mount it 3814d7de91fSDima Dorfman.Cm async : 3824d7de91fSDima Dorfman.Pp 3839dde6035SDima Dorfman.Dl "mdmfs -M -S -o async -s 16m md1 /tmp" 384de63bf71SMatteo Riondato.Pp 385de63bf71SMatteo RiondatoCreate and mount a 386de63bf71SMatteo Riondato.Xr geom_uzip 4 387de63bf71SMatteo Riondatobased compressed disk image: 388de63bf71SMatteo Riondato.Pp 389de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.uzip -oro md.uzip /tmp/" 390de63bf71SMatteo Riondato.Pp 391032ae0f3SCeri DaviesMount the same image, specifying the 392de63bf71SMatteo Riondato.Pa /dev/md1 393de63bf71SMatteo Riondatodevice: 394de63bf71SMatteo Riondato.Pp 395de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.uzip -oro md1.uzip /tmp/" 396de63bf71SMatteo Riondato.Pp 397de63bf71SMatteo RiondatoConfigure a vnode-backed file system and mount its first partition, 398de63bf71SMatteo Riondatousing automatic device numbering: 399de63bf71SMatteo Riondato.Pp 400de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.img mds1a /tmp/" 4019bb18677SAlex Kozlov.Pp 4029bb18677SAlex KozlovMount a vnode-backed cd9660 file system using automatic device numbering: 4039bb18677SAlex Kozlov.Pp 4049bb18677SAlex Kozlov.Dl "mdmfs -T cd9660 -P -F foo.iso md /tmp" 405f7acb7e4SDima Dorfman.Sh COMPATIBILITY 406e1205e80SPhilippe CharnierThe 407e1205e80SPhilippe Charnier.Nm 408957d7c8fSRuslan Ermilovutility, while designed to be compatible with 409f7acb7e4SDima Dorfman.Xr mount_mfs 8 , 410f7acb7e4SDima Dorfmancan be useful by itself. 411f7acb7e4SDima DorfmanSince 412f7acb7e4SDima Dorfman.Xr mount_mfs 8 413f72709f6SDoug Bartonhad some silly defaults, a 414957d7c8fSRuslan Ermilov.Dq compatibility 415f7acb7e4SDima Dorfmanmode is provided for the case where bug-to-bug compatibility is desired. 416f7acb7e4SDima Dorfman.Pp 417957d7c8fSRuslan ErmilovCompatibility is enabled by starting 418f7acb7e4SDima Dorfman.Nm 4192dc4ac06SIan Dowsewith the name 4202dc4ac06SIan Dowse.Li mount_mfs 4212dc4ac06SIan Dowseor 4222dc4ac06SIan Dowse.Li mfs 423f7acb7e4SDima Dorfman(as returned by 424f7acb7e4SDima Dorfman.Xr getprogname 3 ) . 425957d7c8fSRuslan ErmilovIn this mode, the following behavior, as done by 426f7acb7e4SDima Dorfman.Xr mount_mfs 8 , 427f7acb7e4SDima Dorfmanis duplicated: 4286a68a83eSRuslan Ermilov.Bl -bullet -offset indent 429f7acb7e4SDima Dorfman.It 430f7acb7e4SDima DorfmanThe file mode of 431f7acb7e4SDima Dorfman.Ar mount-point 432957d7c8fSRuslan Ermilovis set by default to 433f7acb7e4SDima Dorfman.Li 01777 434f7acb7e4SDima Dorfmanas if 435f7acb7e4SDima Dorfman.Fl p Ar 1777 436f7acb7e4SDima Dorfmanwas given on the command line. 437f7acb7e4SDima Dorfman.El 43829dfd70bSDima Dorfman.Sh SEE ALSO 43929dfd70bSDima Dorfman.Xr md 4 , 440f7acb7e4SDima Dorfman.Xr fstab 5 , 44150e3590cSIan Lepore.Xr tmpfs 5 , 44229dfd70bSDima Dorfman.Xr mdconfig 8 , 44329dfd70bSDima Dorfman.Xr mount 8 , 44429dfd70bSDima Dorfman.Xr newfs 8 4450fcf43f6SAllan Jude.Sh HISTORY 4460fcf43f6SAllan JudeThe 4470fcf43f6SAllan Jude.Nm 4480fcf43f6SAllan Judeutility appeared in 4490fcf43f6SAllan Jude.Fx 5.0 . 4509dde6035SDima Dorfman.Sh AUTHORS 4514d7de91fSDima Dorfman.An Dima Dorfman 452