makerumpmanpages.sh revision 1.8
11.1Spooka#!/bin/sh 21.1Spooka# 31.8Spooka# $NetBSD: makerumpmanpages.sh,v 1.8 2009/02/15 18:00:16 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.1Spooka.\" Copyright (c) 2008 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.8Spooka.Dd February 15, 2009 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.1Spooka.Ar special 481.1Spooka.Ar node 491.1Spooka.Sh DESCRIPTION 501.1SpookaThe 511.1Spooka.Nm 521.1Spookautility can be used to mount xxxfsxxx file systems. 531.1SpookaIt uses 541.1Spooka.Xr rump 3 551.1Spookaand 561.1Spooka.Xr p2k 3 571.1Spookato facilitate running the file system as a server in userspace. 581.1SpookaAs opposed to 591.1Spooka.Xr mount_xxxfsxxx 8 , 601.1Spooka.Nm 611.1Spookadoes not use file system code within the kernel and therefore does 621.1Spookanot require kernel support except 631.1Spooka.Xr puffs 4 . 641.4SpookaApart from a minor speed penalty (starting from 10% and depending 651.4Spookaon the workload and file system in question), there is no difference 661.4Spookato using in-kernel code. 671.1Spooka.Pp 681.7SpookaIn case mounting a file system image from a regular file, 691.7Spooka.Nm 701.7Spookadoes not require the use of 711.7Spooka.Xr vnconfig 8 721.7Spookaunlike kernel file systems. 731.7SpookaInstead, the image path can be directly passed as the special file path. 741.7SpookaThe exception is if the image contains a disklabel. 751.7SpookaIn this case vnconfig is required to resolve the start offset for the 761.7Spookacorrect partition within the image. 771.7Spooka.Pp 781.1SpookaIt is recommended that untrusted file system images be mounted with 791.1Spooka.Nm 801.1Spookainstead of 811.1Spooka.Xr mount_xxxfsxxx 8 . 821.1SpookaCorrupt file system images commonly cause the file system 831.1Spookato crash the entire kernel, but with 841.1Spooka.Nm 851.1Spookaonly the userspace server process will dump core. 861.1Spooka.Pp 871.5SpookaTo use 881.5Spooka.Nm 891.5Spookavia 901.5Spooka.Xr mount 8 , 911.5Spookathe flags 921.6Swiz.Fl o Ar rump 931.5Spookaand 941.6Swiz.Fl t Ar xxxfsxxx 951.5Spookashould be given. 961.5SpookaSimilarly, 971.5Spooka.Nm 981.5Spookais run instead of 991.5Spooka.Xr mount_xxxfsxxx 8 1001.6Swizif 1011.5Spooka.Dq rump 1021.5Spookais added to the options field of 1031.5Spooka.Xr fstab 5 . 1041.5Spooka.Pp 1051.1SpookaPlease see 1061.1Spooka.Xr mount_xxxfsxxx 8 1071.1Spookafor a full description of the available command line options. 1081.1Spooka.Sh SEE ALSO 1091.1Spooka.Xr p2k 3 , 1101.1Spooka.Xr puffs 3 , 1111.1Spooka.Xr rump 3 , 1121.1Spooka.Xr mount_xxxfsxxx 8 1131.1Spooka.Sh HISTORY 1141.1SpookaThe 1151.1Spooka.Nm 1161.1Spookautility first appeared in 1171.8Spooka.Nx 5.0 . 1181.8SpookaIt is currently considered experimental.' 1191.1Spooka 1201.1Spooka# generate the manual pages 1211.1Spooka# 1221.1Spookafor x in rump_* 1231.1Spookado 1241.1Spooka fs=${x#rump_} 1251.1Spooka 1261.1Spooka # syspuffs is special, it has a handwritten manpage 1271.1Spooka if [ "$fs" = "syspuffs" ] 1281.1Spooka then 1291.1Spooka continue 1301.1Spooka fi 1311.1Spooka 1321.1Spooka fsc=`echo $fs | tr '[:lower:]' '[:upper:]'` 1331.3Swiz echo ${MANTMPL} | sed "s/xxxfsxxx/$fs/g;s/XXXFSXXX/$fsc/g" > \ 1341.1Spooka rump_${fs}/rump_${fs}.8 1351.1Spookadone 136