receive

Undocumented in source. Be warned that the author may not have intended to support it.
@SILdoc(`zfs receive: The simplest receive case: receive from the specified fd, creating the specified snapshot. Apply the specified properties as "received" properties (which can be overridden by locally-set properties). If the stream is a clone, its origin snapshot must be specified by origin. The 'force' flag will cause the target filesystem to be rolled back or destroyed if necessary to receive. Return 0 on success or an (*__errno_location ()) on failure. Note: this interface does not work on dedupd streams (those with DMU_BACKUP_FEATURE_DEDUP). resumable: Like lzc_receive, but if the receive fails due to premature stream termination, the intermediate state will be preserved on disk. In this case, ECKSUM will be returned. The receive may subsequently be resumed with a resuming send stream generated by lzc_send_resume(). `)
void
receive
(
string snapName
,
Socket socket
,
string origin = ""
,
bool force = false
,
bool raw = false
,
string[string] properties = (string[string]).init
,
bool resumable = false
)

Meta