makerumpmanpages.sh revision 1.10
11.1Spooka#!/bin/sh 21.1Spooka# 31.10Spooka# $NetBSD: makerumpmanpages.sh,v 1.10 2010/11/21 19:29:01 pooka Exp $ 41.1Spooka# 51.1Spooka 61.1SpookaIFS=' ' 71.1SpookaMANTMPL=".\\\" \$NetBSD\$"' 81.1Spooka.\" 91.2Spooka.\" WARNING: GENERATED FILE, DO NOT EDIT 101.2Spooka.\" INSTEAD, EDIT makerumpmanpages.sh AND REGEN 111.2Spooka.\" 121.10Spooka.\" Copyright (c) 2008-2010 Antti Kantee. All rights reserved. 131.1Spooka.\" 141.1Spooka.\" Redistribution and use in source and binary forms, with or without 151.1Spooka.\" modification, are permitted provided that the following conditions 161.1Spooka.\" are met: 171.1Spooka.\" 1. Redistributions of source code must retain the above copyright 181.1Spooka.\" notice, this list of conditions and the following disclaimer. 191.1Spooka.\" 2. Redistributions in binary form must reproduce the above copyright 201.1Spooka.\" notice, this list of conditions and the following disclaimer in the 211.1Spooka.\" documentation and/or other materials provided with the distribution. 221.1Spooka.\" 231.1Spooka.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND 241.1Spooka.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.1Spooka.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.1Spooka.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 271.1Spooka.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.1Spooka.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.1Spooka.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Spooka.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Spooka.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Spooka.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Spooka.\" SUCH DAMAGE. 341.1Spooka.\" 351.10Spooka.Dd November 21, 2010 361.1Spooka.Dt RUMP_XXXFSXXX 8 371.1Spooka.Os 381.1Spooka.Sh NAME 391.1Spooka.Nm rump_xxxfsxxx 401.1Spooka.Nd mount the xxxfsxxx file system using a userspace server 411.1Spooka.Sh SYNOPSIS 421.1Spooka.Cd "file-system PUFFS" 431.8Spooka.Cd "pseudo-device putter" 441.1Spooka.Pp 451.1Spooka.Nm 461.1Spooka.Op options 471.10Spooka.Ar image 481.10Spooka.Ar mountpoint 491.1Spooka.Sh DESCRIPTION 501.9Spooka.Em NOTE! 511.9SpookaThis manual page has been generated from a common source shared between all 521.9Spooka.Xr rump 3 531.9Spookafile servers. 541.9SpookaSome parts of this manual page may not apply to this particular server. 551.9SpookaAfter reading this manual page, you may want to verify the details from 561.9Spooka.Xr mount_xxxfsxxx 8 . 571.9Spooka.Pp 581.1SpookaThe 591.1Spooka.Nm 601.1Spookautility can be used to mount xxxfsxxx file systems. 611.1SpookaIt uses 621.1Spooka.Xr rump 3 631.1Spookaand 641.1Spooka.Xr p2k 3 651.1Spookato facilitate running the file system as a server in userspace. 661.1SpookaAs opposed to 671.1Spooka.Xr mount_xxxfsxxx 8 , 681.1Spooka.Nm 691.1Spookadoes not use file system code within the kernel and therefore does 701.1Spookanot require kernel support except 711.1Spooka.Xr puffs 4 . 721.10SpookaApart from a minor speed penalty there is no downside with respect to 731.10Spookain-kernel code. 741.1Spooka.Pp 751.7Spooka.Nm 761.10Spookadoes not require using 771.7Spooka.Xr vnconfig 8 781.10Spookafor mounts from regular files and the file path can be passed 791.10Spookadirectly as the 801.10Spooka.Ar image 811.10Spookaparameter. 821.10SpookaIn fact, the use of 831.10Spooka.Xr vnconfig 8 841.10Spookais discouraged, since it is unable to properly deal with images on 851.10Spookasparse files. 861.10Spooka.Pp 871.10SpookaIn case the image contains multiple partitions, the desired partition 881.10Spookamust be indicated by appending the token 891.10Spooka.Dq %DISKLABEL:p% 901.10Spookato the 911.10Spooka.Ar image 921.10Spookapath. 931.10SpookaThe letter 941.10Spooka.Dq p 951.10Spookaspecifies the partition as obtained via 961.10Spooka.Xr disklabel 8 . 971.10SpookaFor example, to mount partition 981.10Spooka.Dq e 991.10Spookafrom image 1001.10Spooka.Pa /tmp/wd0.img , 1011.10Spookause 1021.10Spooka.Dq /tmp/wd0.img%DISKLABEL:e% . 1031.7Spooka.Pp 1041.1SpookaIt is recommended that untrusted file system images be mounted with 1051.1Spooka.Nm 1061.1Spookainstead of 1071.1Spooka.Xr mount_xxxfsxxx 8 . 1081.1SpookaCorrupt file system images commonly cause the file system 1091.1Spookato crash the entire kernel, but with 1101.1Spooka.Nm 1111.1Spookaonly the userspace server process will dump core. 1121.1Spooka.Pp 1131.5SpookaTo use 1141.5Spooka.Nm 1151.5Spookavia 1161.5Spooka.Xr mount 8 , 1171.5Spookathe flags 1181.6Swiz.Fl o Ar rump 1191.5Spookaand 1201.6Swiz.Fl t Ar xxxfsxxx 1211.5Spookashould be given. 1221.5SpookaSimilarly, 1231.5Spooka.Nm 1241.5Spookais run instead of 1251.5Spooka.Xr mount_xxxfsxxx 8 1261.6Swizif 1271.5Spooka.Dq rump 1281.5Spookais added to the options field of 1291.5Spooka.Xr fstab 5 . 1301.5Spooka.Pp 1311.1SpookaPlease see 1321.1Spooka.Xr mount_xxxfsxxx 8 1331.1Spookafor a full description of the available command line options. 1341.1Spooka.Sh SEE ALSO 1351.1Spooka.Xr p2k 3 , 1361.1Spooka.Xr puffs 3 , 1371.1Spooka.Xr rump 3 , 1381.1Spooka.Xr mount_xxxfsxxx 8 1391.1Spooka.Sh HISTORY 1401.1SpookaThe 1411.1Spooka.Nm 1421.1Spookautility first appeared in 1431.10Spooka.Nx 5.0 .' 1441.1Spooka 1451.1Spooka# generate the manual pages 1461.1Spooka# 1471.1Spookafor x in rump_* 1481.1Spookado 1491.1Spooka fs=${x#rump_} 1501.1Spooka 1511.1Spooka # syspuffs is special, it has a handwritten manpage 1521.1Spooka if [ "$fs" = "syspuffs" ] 1531.1Spooka then 1541.1Spooka continue 1551.1Spooka fi 1561.1Spooka 1571.1Spooka fsc=`echo $fs | tr '[:lower:]' '[:upper:]'` 1581.3Swiz echo ${MANTMPL} | sed "s/xxxfsxxx/$fs/g;s/XXXFSXXX/$fsc/g" > \ 1591.1Spooka rump_${fs}/rump_${fs}.8 1601.1Spookadone 161