Skip to contentSkip to conversation

blkmapd: remove init file

PATCH In review Jim Rees 2 participants 3 messages Aug 11, 2011 – Aug 15, 2011

Subsystems (2)
lore
Share & tools
lore

Jim Rees

author
#0 lore raw

PATCH 1/2 blkmapd: remove init file

---
 utils/blkmapd/etc/initd/initd.redhat |   76 ----------------------------------
 1 files changed, 0 insertions(+), 76 deletions(-)
 delete mode 100644 utils/blkmapd/etc/initd/initd.redhat
utils/blkmapd/etc/initd/initd.redhat deleted +0 -76
deleted file mode 100644
index d6a77e8..0000000
@@ -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
Signature · 1 line
1.7.4.1
author
#1 lore raw

PATCH 2/2 blkmapd: add man page

---
 utils/blkmapd/blkmapd.man |   54 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)
 create mode 100644 utils/blkmapd/blkmapd.man
utils/blkmapd/blkmapd.man new file +54 -0
new file mode 100644
index 0000000..fd38122
@@ -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]>
Signature · 1 line
1.7.4.1
#2 lore raw
In reply to Jim Rees

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

Quoted 88 lines · Jim Rees
---
 utils/blkmapd/etc/initd/initd.redhat |   76 ----------------------------------
 1 files changed, 0 insertions(+), 76 deletions(-)
 delete mode 100644 utils/blkmapd/etc/initd/initd.redhat
utils/blkmapd/etc/initd/initd.redhat deleted +0 -76
deleted file mode 100644
index d6a77e8..0000000
@@ -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