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*50e3590cSIan Lepore.Dd September 9, 2017 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 36*50e3590cSIan Leporedriver or the 37*50e3590cSIan Lepore.Xr tmpfs 5 38*50e3590cSIan 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 514d7de91fSDima Dorfman.Op Fl m Ar percent-free 524d7de91fSDima Dorfman.Op Fl O Ar optimization 534d7de91fSDima Dorfman.Op Fl o Ar mount-options 544d7de91fSDima Dorfman.Op Fl p Ar permissions 554d7de91fSDima Dorfman.Op Fl s Ar size 569bb18677SAlex Kozlov.Op Fl T Ar fstype 57622448faSRobert Watson.Op Fl v Ar version 589dde6035SDima Dorfman.Op Fl w Ar user : Ns Ar group 594d7de91fSDima Dorfman.Ar md-device 604d7de91fSDima Dorfman.Ar mount-point 614d7de91fSDima Dorfman.Sh DESCRIPTION 624d7de91fSDima DorfmanThe 634d7de91fSDima Dorfman.Nm 64e1205e80SPhilippe Charnierutility is designed to be a work-alike and look-alike of the deprecated 654d7de91fSDima Dorfman.Xr mount_mfs 8 . 664d7de91fSDima DorfmanThe end result is essentially the same, 674d7de91fSDima Dorfmanbut is accomplished in a completely different way. 68*50e3590cSIan LeporeBased on 69*50e3590cSIan Lepore.Ar md-device , 70*50e3590cSIan Leporethe 714d7de91fSDima Dorfman.Nm 72*50e3590cSIan Leporeutility either creates a 73*50e3590cSIan Lepore.Xr tmpfs 5 74*50e3590cSIan Leporefilesystem, or it configures an 754d7de91fSDima Dorfman.Xr md 4 764d7de91fSDima Dorfmandisk using 774d7de91fSDima Dorfman.Xr mdconfig 8 , 78e7e3ba9bSMatteo Riondatoputs a UFS file system on it (unless 79e7e3ba9bSMatteo Riondato.Fl P 80e7e3ba9bSMatteo Riondatowas specified) using 814d7de91fSDima Dorfman.Xr newfs 8 , 824d7de91fSDima Dorfmanand mounts it using 834d7de91fSDima Dorfman.Xr mount 8 . 84de63bf71SMatteo RiondatoIt can handle 85de63bf71SMatteo Riondato.Xr geom_uzip 4 86032ae0f3SCeri Daviescompressed disk images, as long as the kernel supports this GEOM class. 874d7de91fSDima DorfmanAll the command line options are passed to the appropriate program 884d7de91fSDima Dorfmanat the appropriate stage in order to achieve the desired effect. 894d7de91fSDima Dorfman.Pp 90*50e3590cSIan LeporeWhen 91*50e3590cSIan Lepore.Ar md-device 92*50e3590cSIan Leporeis `auto', 93*50e3590cSIan Lepore.Nm 94*50e3590cSIan Leporeuses 95*50e3590cSIan Lepore.Xr tmpfs 5 96*50e3590cSIan Leporeif it is present in the kernel or can be loaded as a module, 97*50e3590cSIan Leporeotherwise it falls back to using 98*50e3590cSIan Lepore.Xr md 4 99*50e3590cSIan Leporeauto-unit as if `md' had been specified. 100*50e3590cSIan Lepore.Pp 101*50e3590cSIan LeporeWhen 102*50e3590cSIan Lepore.Ar md-device 103*50e3590cSIan Leporeis `tmpfs', 104*50e3590cSIan Lepore.Nm 105*50e3590cSIan Leporemounts a 106*50e3590cSIan Lepore.Xr tmpfs 5 107*50e3590cSIan Leporefilesystem, translating the 108*50e3590cSIan Lepore.Fl s 109*50e3590cSIan Leporesize option, if present, into a `-o size=' mount option. 110*50e3590cSIan LeporeAny 111*50e3590cSIan Lepore.Fl o 112*50e3590cSIan Leporeoptions on the command line are passed through to the 113*50e3590cSIan Lepore.Xr tmpfs 5 114*50e3590cSIan Leporemount. 115*50e3590cSIan LeporeOptions specific to 116*50e3590cSIan Lepore.Xr mdconfig 8 117*50e3590cSIan Leporeor 118*50e3590cSIan Lepore.Xr newfs 8 119*50e3590cSIan Leporeare ignored. 120*50e3590cSIan Lepore.Pp 121*50e3590cSIan LeporeWhen 122*50e3590cSIan Lepore.Ar md-device 123*50e3590cSIan Leporedoes not result in 124*50e3590cSIan Lepore.Xr tmpfs 5 125*50e3590cSIan Leporebeing used, then an 126*50e3590cSIan Lepore.Xr md 4 127*50e3590cSIan Leporedevice is configured instead. 1284d7de91fSDima DorfmanBy default, 1294d7de91fSDima Dorfman.Nm 1304d7de91fSDima Dorfmancreates a swap-based 1314d7de91fSDima Dorfman.Pq Dv MD_SWAP 1324d7de91fSDima Dorfmandisk with soft-updates enabled 1334d7de91fSDima Dorfmanand mounts it on 1344d7de91fSDima Dorfman.Ar mount-point . 1354d7de91fSDima DorfmanIt uses the 1364d7de91fSDima Dorfman.Xr md 4 1374d7de91fSDima Dorfmandevice specified by 1384d7de91fSDima Dorfman.Ar md-device . 1394d7de91fSDima DorfmanIf 1404d7de91fSDima Dorfman.Ar md-device 1414d7de91fSDima Dorfmanis 1424d7de91fSDima Dorfman.Ql md 1434d7de91fSDima Dorfman(no unit number), 1444d7de91fSDima Dorfmanit will use 1454d7de91fSDima Dorfman.Xr md 4 Ns 's 1464d7de91fSDima Dorfmanauto-unit feature to automatically select an unused device. 1474d7de91fSDima DorfmanUnless otherwise specified with one of the options below, 1484d7de91fSDima Dorfmanit uses the default arguments to all the helper programs. 1494d7de91fSDima Dorfman.Pp 1504d7de91fSDima DorfmanThe following options are available. 1514d7de91fSDima DorfmanWhere possible, 1524d7de91fSDima Dorfmanthe option letter matches the one used by 1534d7de91fSDima Dorfman.Xr mount_mfs 8 1544d7de91fSDima Dorfmanfor the same thing. 1559dde6035SDima Dorfman.Bl -tag -width indent 1564d7de91fSDima Dorfman.It Fl a Ar maxcontig 1574d7de91fSDima DorfmanSpecify the maximum number of contiguous blocks that will be laid 1584d7de91fSDima Dorfmanout before forcing a rotational delay 1594d7de91fSDima Dorfman(see the 1604d7de91fSDima Dorfman.Fl d 1614d7de91fSDima Dorfmanoption). 1624d7de91fSDima Dorfman.It Fl b Ar block-size 1634d7de91fSDima DorfmanThe block size of the file system, in bytes. 164c72132f0SMatteo Riondato.It Fl c Ar blocks-per-cylinder-group 165c72132f0SMatteo RiondatoThe number of blocks per cylinder group in the file system. 1664d7de91fSDima Dorfman.It Fl D 1674d7de91fSDima DorfmanIf not using auto-unit, 1689dde6035SDima Dorfmando not run 1694d7de91fSDima Dorfman.Xr mdconfig 8 1704d7de91fSDima Dorfmanto try to detach the unit before attaching it. 171c72132f0SMatteo Riondato.It Fl d Ar max-extent-size 172c72132f0SMatteo RiondatoThe file system may choose to store large files using extents. 173c72132f0SMatteo RiondatoThis parameter specifies the largest extent size that may be 1740fcf43f6SAllan Judeused. 1750fcf43f6SAllan JudeIt is presently limited to its default value which is 16 176c72132f0SMatteo Riondatotimes the file system blocksize. 17763f8ddbeSMaxim Sobolev.It Fl E Ar path-mdconfig 17863f8ddbeSMaxim SobolevUse 17963f8ddbeSMaxim Sobolev.Ar path-mdconfig 18063f8ddbeSMaxim Sobolevas a location of the 18163f8ddbeSMaxim Sobolev.Xr mdconfig 8 18263f8ddbeSMaxim Sobolevutility. 1834d7de91fSDima Dorfman.It Fl e Ar maxbpg 1844d7de91fSDima DorfmanIndicate the maximum number of blocks any single file can allocate 1854d7de91fSDima Dorfmanout of a cylinder group before it is forced to begin allocating 1864d7de91fSDima Dorfmanblocks from another cylinder group. 1874d7de91fSDima Dorfman.It Fl F Ar file 1884d7de91fSDima DorfmanCreate a vnode-backed 1894d7de91fSDima Dorfman.Pq Dv MD_VNODE 1904d7de91fSDima Dorfmanmemory disk backed by 1914d7de91fSDima Dorfman.Ar file . 1924d7de91fSDima Dorfman.It Fl f Ar frag-size 1934d7de91fSDima DorfmanThe fragment size of the file system in bytes. 1944d7de91fSDima Dorfman.It Fl i Ar bytes 1954d7de91fSDima DorfmanNumber of bytes per inode. 1961d3170aaSRobert Watson.It Fl l 197d04b5dfeSRuslan ErmilovEnable multilabel MAC on the new file system. 1984d7de91fSDima Dorfman.It Fl L 1994d7de91fSDima DorfmanShow the output of the helper programs. 2004d7de91fSDima DorfmanBy default, 2014d7de91fSDima Dorfmanit is sent to 2024d7de91fSDima Dorfman.Pa /dev/null . 2034d7de91fSDima Dorfman.It Fl M 2044d7de91fSDima DorfmanCreate a 2054d7de91fSDima Dorfman.Xr malloc 9 2064d7de91fSDima Dorfmanbacked disk 2074d7de91fSDima Dorfman.Pq Dv MD_MALLOC 2084d7de91fSDima Dorfmaninstead of a swap-backed disk. 2094d7de91fSDima Dorfman.It Fl m Ar percent-free 2104d7de91fSDima DorfmanThe percentage of space reserved for the superuser. 2114d7de91fSDima Dorfman.It Fl N 2129dde6035SDima DorfmanDo not actually run the helper programs. 2134d7de91fSDima DorfmanThis is most useful in conjunction with 2144d7de91fSDima Dorfman.Fl X . 215fd07a29cSAlexander Motin.It Fl n 216fd07a29cSAlexander MotinDo not create a 217fd07a29cSAlexander Motin.Pa .snap 218fd07a29cSAlexander Motindirectory on the new file system. 2194d7de91fSDima Dorfman.It Fl O Ar optimization 2204d7de91fSDima DorfmanSelect the optimization preference; 2214d7de91fSDima Dorfmanvalid choices are 2229dde6035SDima Dorfman.Cm space 2234d7de91fSDima Dorfmanand 2249dde6035SDima Dorfman.Cm time , 2254d7de91fSDima Dorfmanwhich will optimize for minimum space fragmentation and 2264d7de91fSDima Dorfmanminimum time spent allocating blocks, 2274d7de91fSDima Dorfmanrespectively. 2284d7de91fSDima Dorfman.It Fl o Ar mount-options 2294d7de91fSDima DorfmanSpecify the mount options with which to mount the file system. 2304d7de91fSDima DorfmanSee 2314d7de91fSDima Dorfman.Xr mount 8 2324d7de91fSDima Dorfmanfor more information. 23305b2fd30SDima Dorfman.It Fl P 23405b2fd30SDima DorfmanPreserve the existing file system; 23505b2fd30SDima Dorfmando not run 23605b2fd30SDima Dorfman.Xr newfs 8 . 23705b2fd30SDima DorfmanThis only makes sense if 23805b2fd30SDima Dorfman.Fl F 23905b2fd30SDima Dorfmanis specified to create a vnode-backed disk. 2404d7de91fSDima Dorfman.It Fl p Ar permissions 2414d7de91fSDima DorfmanSet the file (directory) permissions of the mount point 2424d7de91fSDima Dorfman.Ar mount-point 2434d7de91fSDima Dorfmanto 2444d7de91fSDima Dorfman.Ar permissions . 245ce03e3a7SYaroslav TykhiyThe 246ce03e3a7SYaroslav Tykhiy.Ar permissions 247ce03e3a7SYaroslav Tykhiyargument can be in any of the mode formats recognized by 248ce03e3a7SYaroslav Tykhiy.Xr chmod 1 . 249ce03e3a7SYaroslav TykhiyIf symbolic permissions are specified, 250ce03e3a7SYaroslav Tykhiythe operation characters 251ce03e3a7SYaroslav Tykhiy.Dq + 252ce03e3a7SYaroslav Tykhiyand 253ce03e3a7SYaroslav Tykhiy.Dq - 254ce03e3a7SYaroslav Tykhiyare interpreted relative to the initial permissions of 255ce03e3a7SYaroslav Tykhiy.Dq a=rwx . 2564d7de91fSDima Dorfman.It Fl S 2579dde6035SDima DorfmanDo not enable soft-updates on the file system. 2584d7de91fSDima Dorfman.It Fl s Ar size 2594d7de91fSDima DorfmanSpecify the size of the disk to create. 2604d7de91fSDima DorfmanThis only makes sense if 2614d7de91fSDima Dorfman.Fl F 2624d7de91fSDima Dorfmanis 2634d7de91fSDima Dorfman.Em not 2644d7de91fSDima Dorfmanspecified. 2654d7de91fSDima DorfmanThat is, 266*50e3590cSIan Leporethis will work when the backing storage is some form of 267*50e3590cSIan Leporememory, as opposed to a fixed-size file. 268*50e3590cSIan LeporeThe size may include the usual SI suffixes (k, m, g, t, p). 269*50e3590cSIan LeporeA number without a suffix is interpreted as a count of 512-byte sectors. 270bf6619baSKonstantin Belousov.It Fl t 271bf6619baSKonstantin BelousovTurn on the TRIM enable flag for 272bf6619baSKonstantin Belousov.Xr newfs 8 . 2739bb18677SAlex KozlovWhen used with a file system that issue BIO_DELETE bio requests, 274bf6619baSKonstantin Belousov.Xr md 4 2759bb18677SAlex Kozlovreturns deleted blocks to the system memory pool. 2769bb18677SAlex Kozlov.It Fl T Ar fstype 2779bb18677SAlex KozlovSpecify a file system type for a vnode-backed memory disk. 2789bb18677SAlex KozlovAny file system supported by 2799bb18677SAlex Kozlov.Xr mount 8 2809bb18677SAlex Kozlovcommand can be specified. 2819bb18677SAlex KozlovThis option only makes sense when 2829bb18677SAlex Kozlov.Fl F 2839bb18677SAlex Kozlovand 2849bb18677SAlex Kozlov.Fl P 2859bb18677SAlex Kozlovare used. 286f7acb7e4SDima Dorfman.It Fl U 287f7acb7e4SDima DorfmanEnable soft-updates on the file system. 288957d7c8fSRuslan ErmilovThis is the default, and is accepted only 289f7acb7e4SDima Dorfmanfor compatibility. 290f7acb7e4SDima DorfmanIt is only really useful to negate the 291f7acb7e4SDima Dorfman.Fl S 292f7acb7e4SDima Dorfmanflag, should such a need occur. 293622448faSRobert Watson.It Fl v Ar version 294622448faSRobert WatsonSpecify the UFS version number for use on the file system; it may be 295622448faSRobert Watsoneither 296622448faSRobert Watson.Dv 1 297622448faSRobert Watsonor 298622448faSRobert Watson.Dv 2 . 299622448faSRobert WatsonThe default is derived from the default of the 300622448faSRobert Watson.Xr newfs 8 301622448faSRobert Watsoncommand. 3029dde6035SDima Dorfman.It Fl w Ar user : Ns Ar group 3039dde6035SDima DorfmanSet the owner and group to 3044d7de91fSDima Dorfman.Ar user 3054d7de91fSDima Dorfmanand 3064d7de91fSDima Dorfman.Ar group , 3074d7de91fSDima Dorfmanrespectively. 3084d7de91fSDima DorfmanThe arguments have the same semantics as with 3094d7de91fSDima Dorfman.Xr chown 8 , 3109dde6035SDima Dorfmanbut specifying just a 3119dde6035SDima Dorfman.Ar user 3129dde6035SDima Dorfmanor just a 3139dde6035SDima Dorfman.Ar group 3149dde6035SDima Dorfmanis not supported. 315ab1d004fSDima Dorfman.It Fl X 316ab1d004fSDima DorfmanPrint what command will be run before running it, and 317ab1d004fSDima Dorfmanother assorted debugging information. 3184d7de91fSDima Dorfman.El 3194d7de91fSDima Dorfman.Pp 3204d7de91fSDima DorfmanThe 3214d7de91fSDima Dorfman.Fl F 3224d7de91fSDima Dorfmanand 3234d7de91fSDima Dorfman.Fl s 3244d7de91fSDima Dorfmanoptions are passed to 3254d7de91fSDima Dorfman.Xr mdconfig 8 3264d7de91fSDima Dorfmanas 3274d7de91fSDima Dorfman.Fl f 3284d7de91fSDima Dorfmanand 3294d7de91fSDima Dorfman.Fl s , 3304d7de91fSDima Dorfmanrespectively. 3314d7de91fSDima DorfmanThe 3329dde6035SDima Dorfman.Fl a , b , c , d , e , f , i , m 3334d7de91fSDima Dorfmanand 3344d7de91fSDima Dorfman.Fl n 3354d7de91fSDima Dorfmanoptions are passed to 3364d7de91fSDima Dorfman.Xr newfs 8 3379bb18677SAlex Kozlovwith the same letter. 3389bb18677SAlex KozlovThe 3394d7de91fSDima Dorfman.Fl O 3404d7de91fSDima Dorfmanoption is passed to 3414d7de91fSDima Dorfman.Xr newfs 8 3424d7de91fSDima Dorfmanas 3434d7de91fSDima Dorfman.Fl o . 3444d7de91fSDima DorfmanThe 3454d7de91fSDima Dorfman.Fl o 3464d7de91fSDima Dorfmanoption is passed to 3474d7de91fSDima Dorfman.Xr mount 8 3484d7de91fSDima Dorfmanwith the same letter. 3499bb18677SAlex KozlovThe 3509bb18677SAlex Kozlov.Fl T 3519bb18677SAlex Kozlovoption is passed to 3529bb18677SAlex Kozlov.Xr mount 8 3539bb18677SAlex Kozlovas 3549bb18677SAlex Kozlov.Fl t . 3550fcf43f6SAllan JudeFor information on semantics, refer to the documentation of the programs 3560fcf43f6SAllan Judethat the options are passed to. 3574d7de91fSDima Dorfman.Sh EXAMPLES 3584d7de91fSDima DorfmanCreate and mount a 32 megabyte swap-backed file system on 3594d7de91fSDima Dorfman.Pa /tmp : 3604d7de91fSDima Dorfman.Pp 3619dde6035SDima Dorfman.Dl "mdmfs -s 32m md /tmp" 3624d7de91fSDima Dorfman.Pp 3634460871bSDoug BartonThe same file system created as an entry in 3644460871bSDoug Barton.Pa /etc/fstab : 365031ba6ffSRuslan Ermilov.Pp 3664460871bSDoug Barton.Dl "md /tmp mfs rw,-s32m 2 0" 3674460871bSDoug Barton.Pp 3684d7de91fSDima DorfmanCreate and mount a 16 megabyte malloc-backed file system on 3694d7de91fSDima Dorfman.Pa /tmp 3704d7de91fSDima Dorfmanusing the 3714d7de91fSDima Dorfman.Pa /dev/md1 3724d7de91fSDima Dorfmandevice; 3734d7de91fSDima Dorfmanfurthermore, 374ba40ba47SDima Dorfmando not use soft-updates on it and mount it 3754d7de91fSDima Dorfman.Cm async : 3764d7de91fSDima Dorfman.Pp 3779dde6035SDima Dorfman.Dl "mdmfs -M -S -o async -s 16m md1 /tmp" 378de63bf71SMatteo Riondato.Pp 379de63bf71SMatteo RiondatoCreate and mount a 380de63bf71SMatteo Riondato.Xr geom_uzip 4 381de63bf71SMatteo Riondatobased compressed disk image: 382de63bf71SMatteo Riondato.Pp 383de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.uzip -oro md.uzip /tmp/" 384de63bf71SMatteo Riondato.Pp 385032ae0f3SCeri DaviesMount the same image, specifying the 386de63bf71SMatteo Riondato.Pa /dev/md1 387de63bf71SMatteo Riondatodevice: 388de63bf71SMatteo Riondato.Pp 389de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.uzip -oro md1.uzip /tmp/" 390de63bf71SMatteo Riondato.Pp 391de63bf71SMatteo RiondatoConfigure a vnode-backed file system and mount its first partition, 392de63bf71SMatteo Riondatousing automatic device numbering: 393de63bf71SMatteo Riondato.Pp 394de63bf71SMatteo Riondato.Dl "mdmfs -P -F foo.img mds1a /tmp/" 3959bb18677SAlex Kozlov.Pp 3969bb18677SAlex KozlovMount a vnode-backed cd9660 file system using automatic device numbering: 3979bb18677SAlex Kozlov.Pp 3989bb18677SAlex Kozlov.Dl "mdmfs -T cd9660 -P -F foo.iso md /tmp" 399f7acb7e4SDima Dorfman.Sh COMPATIBILITY 400e1205e80SPhilippe CharnierThe 401e1205e80SPhilippe Charnier.Nm 402957d7c8fSRuslan Ermilovutility, while designed to be compatible with 403f7acb7e4SDima Dorfman.Xr mount_mfs 8 , 404f7acb7e4SDima Dorfmancan be useful by itself. 405f7acb7e4SDima DorfmanSince 406f7acb7e4SDima Dorfman.Xr mount_mfs 8 407f72709f6SDoug Bartonhad some silly defaults, a 408957d7c8fSRuslan Ermilov.Dq compatibility 409f7acb7e4SDima Dorfmanmode is provided for the case where bug-to-bug compatibility is desired. 410f7acb7e4SDima Dorfman.Pp 411957d7c8fSRuslan ErmilovCompatibility is enabled by starting 412f7acb7e4SDima Dorfman.Nm 4132dc4ac06SIan Dowsewith the name 4142dc4ac06SIan Dowse.Li mount_mfs 4152dc4ac06SIan Dowseor 4162dc4ac06SIan Dowse.Li mfs 417f7acb7e4SDima Dorfman(as returned by 418f7acb7e4SDima Dorfman.Xr getprogname 3 ) . 419957d7c8fSRuslan ErmilovIn this mode, the following behavior, as done by 420f7acb7e4SDima Dorfman.Xr mount_mfs 8 , 421f7acb7e4SDima Dorfmanis duplicated: 4226a68a83eSRuslan Ermilov.Bl -bullet -offset indent 423f7acb7e4SDima Dorfman.It 424f7acb7e4SDima DorfmanThe file mode of 425f7acb7e4SDima Dorfman.Ar mount-point 426957d7c8fSRuslan Ermilovis set by default to 427f7acb7e4SDima Dorfman.Li 01777 428f7acb7e4SDima Dorfmanas if 429f7acb7e4SDima Dorfman.Fl p Ar 1777 430f7acb7e4SDima Dorfmanwas given on the command line. 431f7acb7e4SDima Dorfman.El 43229dfd70bSDima Dorfman.Sh SEE ALSO 43329dfd70bSDima Dorfman.Xr md 4 , 434f7acb7e4SDima Dorfman.Xr fstab 5 , 435*50e3590cSIan Lepore.Xr tmpfs 5 , 43629dfd70bSDima Dorfman.Xr mdconfig 8 , 43729dfd70bSDima Dorfman.Xr mount 8 , 43829dfd70bSDima Dorfman.Xr newfs 8 4390fcf43f6SAllan Jude.Sh HISTORY 4400fcf43f6SAllan JudeThe 4410fcf43f6SAllan Jude.Nm 4420fcf43f6SAllan Judeutility appeared in 4430fcf43f6SAllan Jude.Fx 5.0 . 4449dde6035SDima Dorfman.Sh AUTHORS 4454d7de91fSDima Dorfman.An Dima Dorfman 446