zfs: add 'received' property source, handle 'any' source correctly and use 'any' for placeholder FS detection

we want was first noticed in zfs 0.8rc1

Upstream doc PR: https://github.com/zfsonlinux/zfs/pull/8134
This commit is contained in:
Christian Schwarz
2018-11-16 11:12:29 +01:00
parent 3472145df6
commit 7ab51fad0d
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ func TestZFSPropertySource(t *testing.T) {
}{
{
in: sourceAny,
exp: []string{"local", "default", "inherited", "-", "temporary"},
// although empty prefix matches any source
exp: []string{"local", "default", "inherited", "-", "temporary", "received", ""},
},
{
in: sourceTemporary,