2011-08-11 18:18:25

by Jim Rees

[permalink] [raw]
Subject: [PATCH 1/2] blkmapd: remove init file

Signed-off-by: Jim Rees <[email protected]>
---
utils/blkmapd/etc/initd/initd.redhat | 76 ----------------------------------
1 files changed, 0 insertions(+), 76 deletions(-)
delete mode 100644 utils/blkmapd/etc/initd/initd.redhat

diff --git a/utils/blkmapd/etc/initd/initd.redhat b/utils/blkmapd/etc/initd/initd.redhat
deleted file mode 100644
index d6a77e8..0000000
--- a/utils/blkmapd/etc/initd/initd.redhat
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-#
-# description: Starts and stops the iSCSI initiator
-#
-# processname: blkmapd
-# pidfile: /var/run/blkmapd.pid
-# config: /etc/blkmapd.conf
-
-# Source function library.
-if [ -f /etc/init.d/functions ] ; then
- . /etc/init.d/functions
-elif [ -f /etc/rc.d/init.d/functions ] ; then
- . /etc/rc.d/init.d/functions
-else
- exit 0
-fi
-
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
-
-RETVAL=0
-
-start()
-{
- echo -n $"Starting pNFS block-layout device discovery service: "
- modprobe -q blocklayoutdriver
- daemon /usr/sbin/blkmapd
- RETVAL=$?
- if [ $RETVAL -eq 0 ]; then
- touch /var/lock/subsys/blkmapd
- fi
- echo
- return $RETVAL
-}
-
-stop()
-{
- echo -n $"Stopping pNFS block-layout device discovery service: "
- killproc blkmapd 2> /dev/null
- rm -f /var/run/blkmapd.pid
- RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/blkmapd
- if [ $RETVAL -eq 0 ]; then
- echo_success
- else
- echo_failure
- fi
- echo
- return $RETVAL
-}
-
-restart()
-{
- stop
- start
-}
-
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- status)
- status blkmapd
- ;;
- *)
- echo $"Usage: $0 {start|stop|restart|status}"
- exit 1
-esac
-
-exit $RETVAL
--
1.7.4.1



2011-08-15 07:32:25

by Benny Halevy

[permalink] [raw]
Subject: Re: [PATCH 1/2] blkmapd: remove init file

Thanks. I pushed those to
git://linux-nfs.org/~bhalevy/pnfs-nfs-utils.git
at pnfs-nfs-utils-1-2-5-rc1-2011-08-15
(and pnfs-nfs-utils-1-2-4-2011-08-12)

Benny

On 2011-08-11 21:18, Jim Rees wrote:
> Signed-off-by: Jim Rees <[email protected]>
> ---
> utils/blkmapd/etc/initd/initd.redhat | 76 ----------------------------------
> 1 files changed, 0 insertions(+), 76 deletions(-)
> delete mode 100644 utils/blkmapd/etc/initd/initd.redhat
>
> diff --git a/utils/blkmapd/etc/initd/initd.redhat b/utils/blkmapd/etc/initd/initd.redhat
> deleted file mode 100644
> index d6a77e8..0000000
> --- a/utils/blkmapd/etc/initd/initd.redhat
> +++ /dev/null
> @@ -1,76 +0,0 @@
> -#!/bin/sh
> -#
> -# description: Starts and stops the iSCSI initiator
> -#
> -# processname: blkmapd
> -# pidfile: /var/run/blkmapd.pid
> -# config: /etc/blkmapd.conf
> -
> -# Source function library.
> -if [ -f /etc/init.d/functions ] ; then
> - . /etc/init.d/functions
> -elif [ -f /etc/rc.d/init.d/functions ] ; then
> - . /etc/rc.d/init.d/functions
> -else
> - exit 0
> -fi
> -
> -PATH=/sbin:/bin:/usr/sbin:/usr/bin
> -
> -RETVAL=0
> -
> -start()
> -{
> - echo -n $"Starting pNFS block-layout device discovery service: "
> - modprobe -q blocklayoutdriver
> - daemon /usr/sbin/blkmapd
> - RETVAL=$?
> - if [ $RETVAL -eq 0 ]; then
> - touch /var/lock/subsys/blkmapd
> - fi
> - echo
> - return $RETVAL
> -}
> -
> -stop()
> -{
> - echo -n $"Stopping pNFS block-layout device discovery service: "
> - killproc blkmapd 2> /dev/null
> - rm -f /var/run/blkmapd.pid
> - RETVAL=$?
> - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/blkmapd
> - if [ $RETVAL -eq 0 ]; then
> - echo_success
> - else
> - echo_failure
> - fi
> - echo
> - return $RETVAL
> -}
> -
> -restart()
> -{
> - stop
> - start
> -}
> -
> -case "$1" in
> - start)
> - start
> - ;;
> - stop)
> - stop
> - ;;
> - restart)
> - stop
> - start
> - ;;
> - status)
> - status blkmapd
> - ;;
> - *)
> - echo $"Usage: $0 {start|stop|restart|status}"
> - exit 1
> -esac
> -
> -exit $RETVAL

2011-08-11 18:18:27

by Jim Rees

[permalink] [raw]
Subject: [PATCH 2/2] blkmapd: add man page

Signed-off-by: Jim Rees <[email protected]>
---
utils/blkmapd/blkmapd.man | 54 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
create mode 100644 utils/blkmapd/blkmapd.man

diff --git a/utils/blkmapd/blkmapd.man b/utils/blkmapd/blkmapd.man
new file mode 100644
index 0000000..fd38122
--- /dev/null
+++ b/utils/blkmapd/blkmapd.man
@@ -0,0 +1,54 @@
+.\"
+.\" Copyright 2011, Jim Rees.
+.\"
+.\" You may distribute under the terms of the GNU General Public
+.\" License as specified in the file COPYING that comes with the
+.\" nfs-utils distribution.
+.\"
+.TH blkmapd 8 "11 August 2011"
+.SH NAME
+blkmapd \- pNFS block layout mapping daemon
+.SH SYNOPSIS
+.B "blkmapd [-d] [-f]"
+.SH DESCRIPTION
+The
+.B blkmapd
+daemon performs device discovery and mapping for the parallel NFS (pNFS) block layout
+client [RFC5663].
+.PP
+The pNFS block layout protocol builds a complex storage hierarchy from a set
+of
+.I simple volumes.
+These simple volumes are addressed by content, using a signature on the
+volume to uniquely name each one.
+The daemon locates a volume by examining each block device in the system for
+the given signature.
+.PP
+The topology typically consists of a hierarchy of volumes built by striping,
+slicing, and concatenating the simple volumes.
+The
+.B blkmapd
+daemon uses the device-mapper driver to construct logical devices that
+reflect the server topology, and passes these devices to the kernel for use
+by the pNFS block layout client.
+.SH OPTIONS
+.TP
+.B -d
+Performs device discovery only then exits.
+.TP
+.B -f
+Runs
+.B blkmapd
+in the foreground and sends output to stderr (as opposed to syslogd)
+.SH SEE ALSO
+.BR nfs (5),
+.BR dmsetup (8)
+.sp
+RFC 5661 for the NFS version 4.1 specification.
+.br
+RFC 5663 for the pNFS block layout specification.
+.SH AUTHORS
+.br
+Haiying Tang <[email protected]>
+.br
+Jim Rees <[email protected]>
--
1.7.4.1