add manpage for rump_syspuffs

This commit is contained in:
pooka 2008-08-09 11:07:26 +00:00
parent cd86a737b6
commit 5f1dda08e4
3 changed files with 77 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1083 2008/08/06 20:14:08 pooka Exp $
# $NetBSD: mi,v 1.1084 2008/08/09 11:07:26 pooka Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -2436,6 +2436,7 @@
./usr/share/man/cat8/rump_lfs.0 man-sysutil-catman puffs,.cat
./usr/share/man/cat8/rump_msdos.0 man-sysutil-catman puffs,.cat
./usr/share/man/cat8/rump_ntfs.0 man-sysutil-catman puffs,.cat
./usr/share/man/cat8/rump_syspuffs.0 man-sysutil-catman puffs,.cat
./usr/share/man/cat8/rump_tmpfs.0 man-sysutil-catman puffs,.cat
./usr/share/man/cat8/rump_udf.0 man-sysutil-catman puffs,.cat
./usr/share/man/cat8/rusersd.0 man-netutil-catman .cat
@ -5018,6 +5019,7 @@
./usr/share/man/man8/rump_lfs.8 man-sysutil-man puffs,.man
./usr/share/man/man8/rump_msdos.8 man-sysutil-man puffs,.man
./usr/share/man/man8/rump_ntfs.8 man-sysutil-man puffs,.man
./usr/share/man/man8/rump_syspuffs.8 man-sysutil-man puffs,.man
./usr/share/man/man8/rump_tmpfs.8 man-sysutil-man puffs,.man
./usr/share/man/man8/rump_udf.8 man-sysutil-man puffs,.man
./usr/share/man/man8/rtsol.8 man-netutil-man inet6,.man

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/08/06 20:14:09 pooka Exp $
# $NetBSD: Makefile,v 1.3 2008/08/09 11:07:26 pooka Exp $
#
PROG= rump_syspuffs
@ -8,6 +8,6 @@ DPADD+= ${LIBRUMPFS_SYSPUFFS}
ISRUMP= # indubitably
CPPFLAGS+= -I${.CURDIR}/../../../sys/rump/fs/lib/libsyspuffs
NOMAN=
MAN= rump_syspuffs.8
.include <bsd.prog.mk>

View File

@ -0,0 +1,72 @@
.\" $NetBSD: rump_syspuffs.8,v 1.1 2008/08/09 11:07:26 pooka Exp $
.\"
.\" Copyright (c) 2008 Antti Kantee. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd August 9, 2008
.Dt RUMP_SYSPUFFS 8
.Os
.Sh NAME
.Nm rump_syspuffs
.Nd mount a puffs file server with a userspace puffs loop
.Sh SYNOPSIS
.Cd "file-system PUFFS"
.Pp
.Nm
.Ar "file_server"
.Ar arguments
.Sh DESCRIPTION
The
.Nm
utility can be used to mount any
.Xr puffs 3
file server so that the requests are passed through the kernel
puffs code in userspace as well.
Therefore the approximate callgraph looks a little like the following,
where k and u denote code running in the kernel space and userspace,
respectively:
puffs vfs (k) \(-> libpuffs (u) \(-> p2k (u) \(-> puffs vfs (u) \(->
libpuffs (u) \(-> file server (u).
The response path is the same, but in reverse.
.Pp
In its current state,
.Nm
is most useful as a proof of concept for file system distribution
and for developing and debugging the kernel portion of puffs.
.Sh EXAMPLES
Mount a file system with sshfs:
.Dl rump_syspuffs mount_psshfs server.address /mnt
.Pp
Mount an ntfs file system using ntfs-3g (from pkgsrc/filesystems/fuse-ntfs-3g),
set the default uid to 1323:
.Dl rump_syspuffs ntfs-3g -o uid=1323 /path/to/filesystem /mnt
.Sh SEE ALSO
.Xr p2k 3 ,
.Xr puffs 3 ,
.Xr rump 3
.Xr puffs 4
.Sh HISTORY
The
.Nm
debugging utility first appeared in
.Nx 5.0 .