Fix uninitialized variable snapprops_nvlist in zfs_receive_one

The variable snapprops_nvlist was never initialized, so properties
were not applied to the received snapshot.

Additionally, add zfs_receive_013_pos.ksh script to ZFS test suite to exercise
'zfs receive' functionality for user properties.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #4338
This commit is contained in:
LOLi
2016-10-07 19:05:06 +02:00
committed by Brian Behlendorf
parent 910a571578
commit 48f783de79
4 changed files with 91 additions and 2 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ tests = []
tests = ['zfs_receive_001_pos', 'zfs_receive_002_pos', 'zfs_receive_003_pos',
'zfs_receive_005_neg', 'zfs_receive_006_pos',
'zfs_receive_007_neg', 'zfs_receive_008_pos', 'zfs_receive_009_neg',
'zfs_receive_010_pos', 'zfs_receive_012_pos']
'zfs_receive_010_pos', 'zfs_receive_012_pos', 'zfs_receive_013_pos']
# DISABLED:
# zfs_rename_002_pos - needs investigation