makerumpmanpages.sh revision 1.1
11.1Spooka#!/bin/sh 21.1Spooka# 31.1Spooka# $NetBSD: makerumpmanpages.sh,v 1.1 2008/08/06 20:15:30 pooka Exp $ 41.1Spooka# 51.1Spooka 61.1SpookaIFS=' ' 71.1SpookaMANTMPL=".\\\" \$NetBSD\$"' 81.1Spooka.\" 91.1Spooka.\" Copyright (c) 2008 Antti Kantee. All rights reserved. 101.1Spooka.\" 111.1Spooka.\" Redistribution and use in source and binary forms, with or without 121.1Spooka.\" modification, are permitted provided that the following conditions 131.1Spooka.\" are met: 141.1Spooka.\" 1. Redistributions of source code must retain the above copyright 151.1Spooka.\" notice, this list of conditions and the following disclaimer. 161.1Spooka.\" 2. Redistributions in binary form must reproduce the above copyright 171.1Spooka.\" notice, this list of conditions and the following disclaimer in the 181.1Spooka.\" documentation and/or other materials provided with the distribution. 191.1Spooka.\" 201.1Spooka.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND 211.1Spooka.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 221.1Spooka.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 231.1Spooka.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 241.1Spooka.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 251.1Spooka.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 261.1Spooka.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 271.1Spooka.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 281.1Spooka.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 291.1Spooka.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 301.1Spooka.\" SUCH DAMAGE. 311.1Spooka.\" 321.1Spooka.Dd August 6, 2008 331.1Spooka.Dt RUMP_XXXFSXXX 8 341.1Spooka.Os 351.1Spooka.Sh NAME 361.1Spooka.Nm rump_xxxfsxxx 371.1Spooka.Nd mount the xxxfsxxx file system using a userspace server 381.1Spooka.Sh SYNOPSIS 391.1Spooka.Cd "file-system PUFFS" 401.1Spooka.Pp 411.1Spooka.Nm 421.1Spooka.Op options 431.1Spooka.Ar special 441.1Spooka.Ar node 451.1Spooka.Sh DESCRIPTION 461.1SpookaThe 471.1Spooka.Nm 481.1Spookautility can be used to mount xxxfsxxx file systems. 491.1SpookaIt uses 501.1Spooka.Xr rump 3 511.1Spookaand 521.1Spooka.Xr p2k 3 531.1Spookato facilitate running the file system as a server in userspace. 541.1SpookaAs opposed to 551.1Spooka.Xr mount_xxxfsxxx 8 , 561.1Spooka.Nm 571.1Spookadoes not use file system code within the kernel and therefore does 581.1Spookanot require kernel support except 591.1Spooka.Xr puffs 4 . 601.1SpookaApart from a minor speed penalty (~10%), there is no difference to 611.1Spookausing the in-kernel code. 621.1Spooka.Pp 631.1SpookaIt is recommended that untrusted file system images be mounted with 641.1Spooka.Nm 651.1Spookainstead of 661.1Spooka.Xr mount_xxxfsxxx 8 . 671.1SpookaCorrupt file system images commonly cause the file system 681.1Spookato crash the entire kernel, but with 691.1Spooka.Nm 701.1Spookaonly the userspace server process will dump core. 711.1Spooka.Pp 721.1SpookaPlease see 731.1Spooka.Xr mount_xxxfsxxx 8 741.1Spookafor a full description of the available command line options. 751.1Spooka.Sh SEE ALSO 761.1Spooka.Xr p2k 3 , 771.1Spooka.Xr puffs 3 , 781.1Spooka.Xr rump 3 , 791.1Spooka.Xr mount_xxxfsxxx 8 801.1Spooka.Sh HISTORY 811.1SpookaThe 821.1Spooka.Nm 831.1Spookautility first appeared in 841.1Spooka.Nx 5.0 . 851.1Spooka.Sh BUGS 861.1Spooka.Nm 871.1Spookacannot be used via 881.1Spooka.Xr mount 8 . 891.1SpookaInstead, 901.1Spooka.Nm 911.1Spookamust be run directly.' 921.1Spooka 931.1Spooka# generate the manual pages 941.1Spooka# 951.1Spookafor x in rump_* 961.1Spookado 971.1Spooka fs=${x#rump_} 981.1Spooka 991.1Spooka # syspuffs is special, it has a handwritten manpage 1001.1Spooka if [ "$fs" = "syspuffs" ] 1011.1Spooka then 1021.1Spooka continue 1031.1Spooka fi 1041.1Spooka 1051.1Spooka fsc=`echo $fs | tr '[:lower:]' '[:upper:]'` 1061.1Spooka echo ${MANTMPL}�| sed "s/xxxfsxxx/$fs/g;s/XXXFSXXX/$fsc/g" > \ 1071.1Spooka rump_${fs}/rump_${fs}.8 1081.1Spookadone 109