Skip to content

Commit

Permalink
Expand comment block to explain why we could be using a nested nvlist
Browse files Browse the repository at this point in the history
Requires-builders: style
  • Loading branch information
loli10K committed Dec 20, 2016
1 parent 3746b84 commit 3607c96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions module/zfs/dsl_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,11 @@ dsl_props_set_sync_impl(dsl_dataset_t *ds, zprop_source_t source,

if (nvpair_type(pair) == DATA_TYPE_NVLIST) {
/*
* dsl_prop_get_all_impl() returns properties in this
* format.
* This usually happens when we reuse the nvlist_t data
* returned by the counterpart dsl_prop_get_all_impl().
* For instance we do this to restore the original
* received properties when an error occurs in the
* zfs_ioc_recv() codepath.
*/
nvlist_t *attrs = fnvpair_value_nvlist(pair);
pair = fnvlist_lookup_nvpair(attrs, ZPROP_VALUE);
Expand Down

0 comments on commit 3607c96

Please sign in to comment.