Page MenuHomeFreeBSD

ctld: Permit simpler syntax for target LUNs in UCL
ClosedPublic

Authored by jhb on Feb 11 2025, 1:20 AM.
Tags
None
Referenced Files
F169847805: D48939.id.diff
Wed, Sep 2, 6:13 PM
F169810197: D48939.diff
Wed, Sep 2, 3:30 PM
Unknown Object (File)
Tue, Sep 1, 3:48 AM
Unknown Object (File)
Mon, Aug 31, 12:01 PM
Unknown Object (File)
Mon, Aug 31, 3:01 AM
Unknown Object (File)
Sat, Aug 29, 7:04 PM
Unknown Object (File)
Thu, Aug 27, 11:53 AM
Unknown Object (File)
Tue, Aug 25, 8:01 PM
Subscribers

Details

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

Event Timeline

jhb requested review of this revision.Feb 11 2025, 1:20 AM

Rebase after removing globals from parse.y

Fix a few nits missed in last rebase

This revision was not accepted when it landed; it landed in state Needs Review.Feb 26 2025, 3:17 PM
This revision was automatically updated to reflect the committed changes.