The begin record contains useful information that the caller might
want to have the access to, so that it can be used to derive values
for 'snapname' and 'origin' parameters.
New lzc_receive_with_header function is added.

Review request on the reviewboard: https://reviews.csiden.org/r/256/
An example of the intended usage: 
ClusterHQ/pyzfs@340f585d100e4e8cca82e620b0d44e7da314e4cb
(see `test_recv_with_header_full`)
You can view, comment on, or merge this pull request online at:

  https://github.com/openzfs/openzfs/pull/30

-- Commit Summary --

  * 6051 lzc_receive: allow the caller to read the begin record

-- File Changes --

    M usr/src/lib/libzfs_core/common/libzfs_core.c (40)
    M usr/src/lib/libzfs_core/common/libzfs_core.h (7)
    M usr/src/lib/libzfs_core/common/mapfile-vers (1)

-- Patch Links --

https://github.com/openzfs/openzfs/pull/30.patch
https://github.com/openzfs/openzfs/pull/30.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/30
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to