Lines Matching +full:sync +full:- +full:2

20 .Nm zfs-program
26 .Op Fl t Ar instruction-limit
27 .Op Fl m Ar memory-limit
52 .Bl -tag -width "-t"
53 .It Fl j , -json
55 When this flag is specified and standard output is empty -
59 Executes a read-only channel program, which runs faster.
60 The program cannot change on-disk state by calling functions from the
61 zfs.sync submodule.
66 .It Fl t Ar instruction-limit
72 .It Fl m Ar memory-limit
93 .Bd -literal -compact -offset indent
96 -- argv == {1="arg1", 2="arg2", ...}
103 .Bd -literal -compact -offset indent
105 -- args == {"foo"="bar", "baz"={...}, ...}
108 Note that because Lua arrays are 1-indexed, arrays passed to Lua from the
126 .Bd -literal -compact -offset indent
127 a = {foo="bar", baz=2}
132 .Bd -literal -compact -offset indent
135 baz: 2
140 If the channel program encounters a fatal error while running, a non-zero exit
167 section below for function-specific details on error return codes.
172 and vice-versa.
180 string -> string
181 number -> int64
182 boolean -> boolean_value
183 nil -> boolean (no value)
184 table -> nvlist
190 string -> no change
191 number -> signed decimal string ("%lld")
192 boolean -> "true" | "false"
198 Lua numbers are represented internally as signed 64-bit integers.
201 The following Lua built-in base library functions are available:
215 built-in submodules are also available.
236 .Dl Sy zfs.sync.destroy Ns Pq \&"rpool@snap"
241 .Dl Sy zfs.sync.destroy Ns Pq {1="rpool@snap", defer=true}
245 .Dl Sy zfs.sync.snapshot Ns {"rpool@snap", defer=true}
261 .Dl errno = Sy zfs.sync.promote Ns Pq dataset
264 .Bd -literal -compact -offset indent
265 .No errno, details = Sy zfs.sync.promote Ns Pq dataset
288 .Bl -tag -width "xx"
293 .Dl dtrace -n 'zfs-dbgmsg{trace(stringof(arg0))}'
295 .Bl -tag -compact -width "property (string)"
308 .Bl -tag -compact -width "property (string)"
324 .Bl -tag -compact -width "property (string)"
342 .Bl -tag -width "xx"
343 .It Sy zfs.sync submodule
344 The sync submodule contains functions that modify the on-disk state.
347 The available sync submodule functions are as follows:
348 .Bl -tag -width "xx"
349 .It Sy zfs.sync.destroy Ns Pq Ar dataset , Op Ar defer Ns = Ns Sy true Ns | Ns Sy false
355 .Bl -tag -compact -width "newbookmark (string)"
363 .It Fn zfs.sync.inherit dataset property
372 .Bl -tag -compact -width "newbookmark (string)"
381 .It Fn zfs.sync.promote dataset
387 .Bl -tag -compact -width "newbookmark (string)"
391 .It Fn zfs.sync.rollback filesystem
398 .Bl -tag -compact -width "newbookmark (string)"
402 .It Fn zfs.sync.set_prop dataset property value
407 .Bl -tag -compact -width "newbookmark (string)"
415 .It Fn zfs.sync.snapshot dataset
423 .Bl -tag -compact -width "newbookmark (string)"
427 .It Fn zfs.sync.rename_snapshot dataset oldsnapname newsnapname
432 .Bl -tag -compact -width "newbookmark (string)"
440 .It Fn zfs.sync.bookmark source newbookmark
447 .Bl -tag -compact -width "newbookmark (string)"
456 .Sy zfs.sync
461 .Sy zfs.sync
463 or a non-zero error code if it would fail, along with any other error details.
464 That is, each has the same behavior as the corresponding sync function except
469 .Fn zfs.sync.destroy \&"fs"
475 .Bl -tag -compact -width "xx"
487 .Bd -literal -compact -offset indent
496 .Bl -tag -width "xx"
500 .Bl -tag -compact -width "snapshot (string)"
509 .Bl -tag -compact -width "snapshot (string)"
518 .Bl -tag -compact -width "snapshot (string)"
527 .Bl -tag -compact -width "snapshot (string)"
537 .Bl -tag -compact -width "snapshot (string)"
544 .Bl -tag -compact -width "snapshot (string)"
554 .Bl -tag -compact -width "snapshot (string)"
559 Returns an array of strings, the names of the valid system (non-user defined)
563 .Bl -tag -compact -width "snapshot (string)"
576 .Bd -literal -offset indent
582 zfs.sync.destroy(snap)
584 zfs.sync.destroy(root)
589 .Ss Example 2
593 .Bd -literal -offset indent
602 err = zfs.sync.destroy(snap)
609 err = zfs.sync.destroy(root)
631 .Bd -literal -offset indent
637 zfs.sync.destroy(ds .. "@" .. snap)
642 return zfs.sync.promote(ds)