Difference between revisions of "Projects/ZFS Channel Programs"

Jump to navigation Jump to search
no edit summary
Line 80: Line 80:
The nvlist object created from this source code would look something like this:
The nvlist object created from this source code would look something like this:


[[File:Example_ZCP_nvlist.png|center|600px]]
[[File:Example_ZCP_nvlist.png|center|500px]]


This structure is constructed of nested nvpairs, using nvpairs with data type DATA_TYPE_NVLIST. The outermost nvlist is analogous to main() in C/Java. It contains the full channel program, with execution of the program starting at the first object in its data list and ending at the last. The blue nvpair immediately contained by the nvlist represents the iterate snapshots operation. Contained within it are its three arguments in green:
This structure is constructed of nested nvpairs, using nvpairs with data type DATA_TYPE_NVLIST. The outermost nvlist is analogous to main() in C/Java. It contains the full channel program, with execution of the program starting at the first object in its data list and ending at the last. The blue nvpair immediately contained by the nvlist represents the iterate snapshots operation. Contained within it are its three arguments in green:
Editor
90

edits

Navigation menu