[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Roman Strashkin
Ramzec commented on this pull request. first look. will try to understand how it works. > @@ -188,9 +188,13 @@ zfs_iter_bookmarks(zfs_handle_t *zhp, zfs_iter_f func, > void *data) /* Setup the requested properties nvlist. */ props = fnvlist_alloc(); -

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Matthew Ahrens
ahrens commented on this pull request. > @@ -1054,6 +1054,8 @@ static const char *spa_feature_names[] = { "com.delphix:embedded_data", "org.open-zfs:large_blocks", "org.illumos:sha512", + "com.delphix:redaction_bookmarks", The `redaction_bookmarks` would be active

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Paul Dagnelie
pcd1193182 commented on this pull request. - return (0); + switch (new_type) { + case HOLE: + pending->sru.hole.datablksz = datablksz; + break; + case DATA: + pending->sru.data.datablksz = datablksz; +

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Roman Strashkin
Ramzec commented on this pull request. - return (0); + switch (new_type) { + case HOLE: + pending->sru.hole.datablksz = datablksz; + break; + case DATA: + pending->sru.data.datablksz = datablksz; +

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Roman Strashkin
Ramzec commented on this pull request. - return (0); + switch (new_type) { + case HOLE: + pending->sru.hole.datablksz = datablksz; + break; + case DATA: + pending->sru.data.datablksz = datablksz; +

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Paul Dagnelie
pcd1193182 commented on this pull request. > @@ -1054,6 +1054,8 @@ static const char *spa_feature_names[] = { "com.delphix:embedded_data", "org.open-zfs:large_blocks", "org.illumos:sha512", + "com.delphix:redaction_bookmarks", It's primarily for tracking purposes.

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Paul Dagnelie
pcd1193182 commented on this pull request. > + */ +static int +find_redact_book(libzfs_handle_t *hdl, const char *path, +const uint64_t *redact_snap_guids, int num_redact_snaps, +char **bookname) +{ + char errbuf[1024]; + int error = 0; + nvlist_t *props =

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Paul Dagnelie
pcd1193182 commented on this pull request. > + dbn->dbn_dirty = B_FALSE; + } + } +#ifdef ZFS_DEBUG + for (dsl_bookmark_node_t *dbn = avl_first(>ds_bookmarks); + dbn != NULL; dbn = AVL_NEXT(>ds_bookmarks, dbn)) { +

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Roman Strashkin
Ramzec commented on this pull request. - return (0); + switch (new_type) { + case HOLE: + pending->sru.hole.datablksz = datablksz; + break; + case DATA: + pending->sru.data.datablksz = datablksz; +

[developer] Re: [openzfs/openzfs] 8741 Implement Redacted Send/Receive (#484)

2017-11-21 Thread Roman Strashkin
Ramzec commented on this pull request. > + dbn->dbn_dirty = B_FALSE; + } + } +#ifdef ZFS_DEBUG + for (dsl_bookmark_node_t *dbn = avl_first(>ds_bookmarks); + dbn != NULL; dbn = AVL_NEXT(>ds_bookmarks, dbn)) { +