opnsense-src/usr.sbin/ctld
John Baldwin 5b51147399 ctld: Permit simpler syntax for target LUNs in UCL
Allow the LUN number to be specified as the key for a LUN instead
of requiring it as a "number" field.  If a key is used, permit
a simple string value to be used for non-anymous LUNs.  This permits
replacing:

	lun = [
		{ number = 0, name = zvol_lun },
		{
			number = 1
			backend = ramdisk
			size = 1GB
		}
	]

with:

	lun = {
		0 = zvol_lun
		1 {
			backend = ramdisk
			size = 1GB
		}
	}

Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D48939
2025-02-26 10:14:53 -05:00
..
conf.c ctld: Add a dedicated API between parse.y and the rest of the program 2025-02-26 10:10:33 -05:00
conf.h ctld: Add a dedicated API between parse.y and the rest of the program 2025-02-26 10:10:33 -05:00
ctl.conf.5 ctld: Permit simpler syntax for target LUNs in UCL 2025-02-26 10:14:53 -05:00
ctld.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
ctld.c ctld: Add a dedicated API between parse.y and the rest of the program 2025-02-26 10:10:33 -05:00
ctld.h ctld: Add a dedicated API between parse.y and the rest of the program 2025-02-26 10:10:33 -05:00
discovery.c ctld: Some bool-related cleanups 2025-02-12 14:25:52 -05:00
isns.c ctld: Consistently use item count as the first argument to calloc 2024-07-19 13:07:22 -04:00
isns.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
kernel.c ctld: Add a dedicated API between parse.y and the rest of the program 2025-02-26 10:10:33 -05:00
login.c ctld: Some bool-related cleanups 2025-02-12 14:25:52 -05:00
Makefile ctld: Add a dedicated API between parse.y and the rest of the program 2025-02-26 10:10:33 -05:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
parse.y ctld: Add a dedicated API between parse.y and the rest of the program 2025-02-26 10:10:33 -05:00
token.l Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
uclparse.c ctld: Permit simpler syntax for target LUNs in UCL 2025-02-26 10:14:53 -05:00