Difference between revisions of "Projects/ZFS Channel Programs"

Jump to navigation Jump to search
no edit summary
Line 74: Line 74:
|-
|-
|}
|}
</center
</center>


The zcp_control_stmt and zc_op_stmt objects defined above are nvpair objects in a hierarchical nvlist. This allows the program constructed in this example to be passed immediately to the kernel for execution. Initially, ZFS channel program construction will be done using a C/C++ API like this one (perhaps a little more rough around the edges).  
The zcp_control_stmt and zc_op_stmt objects defined above are nvpair objects in a hierarchical nvlist. This allows the program constructed in this example to be passed immediately to the kernel for execution. Initially, ZFS channel program construction will be done using a C/C++ API like this one (perhaps a little more rough around the edges).  


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.jpg]]
Editor
90

edits

Navigation menu