Module Name:    src
Committed By:   agc
Date:           Mon Jun 22 01:51:02 UTC 2009

Added Files:
        src/external/bsd/iscsi/dist/src/etc: auths targets
        src/external/bsd/iscsi/dist/src/etc/rc.d: iscsi_target

Log Message:
Add example files and rc.d script - taken from dist


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/external/bsd/iscsi/dist/src/etc/auths \
    src/external/bsd/iscsi/dist/src/etc/targets
cvs rdiff -u -r0 -r1.1 src/external/bsd/iscsi/dist/src/etc/rc.d/iscsi_target

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/bsd/iscsi/dist/src/etc/auths
diff -u /dev/null src/external/bsd/iscsi/dist/src/etc/auths:1.1
--- /dev/null	Mon Jun 22 01:51:02 2009
+++ src/external/bsd/iscsi/dist/src/etc/auths	Mon Jun 22 01:51:02 2009
@@ -0,0 +1,17 @@
+# $NetBSD: auths,v 1.1 2009/06/22 01:51:02 agc Exp $
+
+# test passwd file for iSCSI use
+
+nulltest:none:
+
+#chaptest1:chap:crysanthemum
+#chaptest2:CHAP:bannister
+#chaptest3:chap:Rhode Island Red
+
+# test users - throwback
+#alice:chap:alicePass
+#tom:chap:tomPass
+
+# real users
+#billy.nomates:chap:officer
+#iqn.1991-05.com.microsoft\:ws2:CHAP:1234567890123456
Index: src/external/bsd/iscsi/dist/src/etc/targets
diff -u /dev/null src/external/bsd/iscsi/dist/src/etc/targets:1.1
--- /dev/null	Mon Jun 22 01:51:02 2009
+++ src/external/bsd/iscsi/dist/src/etc/targets	Mon Jun 22 01:51:02 2009
@@ -0,0 +1,21 @@
+# $NetBSD: targets,v 1.1 2009/06/22 01:51:02 agc Exp $
+#
+# Structure of this file:
+#
+# + an extent is a straight (offset, length) pair of a file or device
+#   it's the lowest common storage denominator
+#   at least one is needed
+# + a device is made up of one or more extents or other devices
+#   devices can be added in a hierachical manner, to enhance resilience
+# + in this example, no device definitions are necessary, as the target
+#   will just use a simple extent for persistent storage
+# + a target is made up of 1 or more devices
+# The code does not support RAID1 recovery at present
+
+# Simple file showing 1 extent, mapped straight into 1 target
+
+# extents	file			start	length
+extent0		/tmp/iscsi-target0	0	100MB
+
+# target	flags	storage		netmask
+target0		rw	extent0		10.4.0.0/16

Index: src/external/bsd/iscsi/dist/src/etc/rc.d/iscsi_target
diff -u /dev/null src/external/bsd/iscsi/dist/src/etc/rc.d/iscsi_target:1.1
--- /dev/null	Mon Jun 22 01:51:02 2009
+++ src/external/bsd/iscsi/dist/src/etc/rc.d/iscsi_target	Mon Jun 22 01:51:02 2009
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: iscsi_target,v 1.1 2009/06/22 01:51:02 agc Exp $
+#
+
+# PROVIDE: iscsi_target
+# REQUIRE: NETWORKING mountall beforemountlkm quota
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="iscsi_target"
+rcvar=$name
+command="/usr/local/bin/iscsi-target"
+required_files="/usr/local/etc/iscsi/targets"
+pidfile="/var/run/iscsi-target.pid"
+
+load_rc_config $name
+run_rc_command "$1"

Reply via email to