Page MenuHomeFreeBSD

ctld: Permit simpler syntax for target LUNs in UCL
Needs ReviewPublic

Authored by jhb on Tue, Feb 11, 1:20 AM.

Details

Reviewers
asomers
Summary

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
		}

}

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62366
Build 59250: arc lint + arc unit