Difference between revisions of "Projects/ZFS Channel Programs"

Jump to navigation Jump to search
no edit summary
Line 34: Line 34:


Examples of how a channel program would be written by a person in either a procedural or functional language are below:
Examples of how a channel program would be written by a person in either a procedural or functional language are below:
{| border="1" style="border-collapse:collapse; text-align: center"
|-
| '''Procedural (Python-esque)''' || '''Functional (Scheme-esque)'''
|-
| fs = argv[0] || ("""iterate_snapshots""" fs snap
| for snap in fs."""snapshots"""(): || ("""destroy_snapshot""" snap))
| snap."""destroy"""() ||
|-
|}
Editor
90

edits

Navigation menu