File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / default / ctl.conf
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Tue Jan 7 13:44:53 2014 UTC (10 years, 9 months ago) by misho
Branches: elwix2_2
add cam controls

#
# CAM control example
#
# $Id: ctl.conf,v 1.1.2.1 2014/01/07 13:44:53 misho Exp $
#

pidfile /var/run/ctld.pid

auth-group example2 {
	chap-mutual "user" "secret" "mutualuser" "mutualsecret"
	chap-mutual "user2" "secret2" "mutualuser" "mutualsecret"
}

portal-group example2 {
	discovery-auth-group no-authentication
	listen 127.0.0.1
	listen 0.0.0.0:3261
	listen [::]:3261
	listen [fe80::be:ef]
}

target iqn.2012-06.com.example:target0 {
	alias "Testing target"
	auth-group no-authentication
	lun 0 {
		path /dev/zvol/example_0
		blocksize 4096
		size 4G
	}
}

target iqn.2012-06.com.example:target3 {
	chap chapuser chapsecret
	lun 0 {
		path /dev/zvol/example_3
	}
}

target iqn.2012-06.com.example:target2 {
	auth-group example2
	portal-group example2
	lun 0 {
		path /dev/zvol/example2_0
	}
	lun 1 {
		path /dev/zvol/example2_1
		option foo bar
	}
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>