fixup zfs changes

This commit is contained in:
Christian Schwarz
2020-04-05 20:01:30 +02:00
parent f70393378f
commit 568a112519
+2 -1
View File
@@ -253,7 +253,7 @@ func ZFSListFilesystemVersions(fs *DatasetPath, options ListFilesystemVersionsOp
} }
func ZFSGetFilesystemVersion(ctx context.Context, ds string) (v FilesystemVersion, _ error) { func ZFSGetFilesystemVersion(ctx context.Context, ds string) (v FilesystemVersion, _ error) {
props, err := zfsGet(ctx, ds, []string{"createtxg", "guid", "creation"}, sourceAny) props, err := zfsGet(ctx, ds, []string{"createtxg", "guid", "creation", "userrefs"}, sourceAny)
if err != nil { if err != nil {
return v, err return v, err
} }
@@ -262,5 +262,6 @@ func ZFSGetFilesystemVersion(ctx context.Context, ds string) (v FilesystemVersio
createtxg: props.Get("createtxg"), createtxg: props.Get("createtxg"),
guid: props.Get("guid"), guid: props.Get("guid"),
creation: props.Get("creation"), creation: props.Get("creation"),
userrefs: props.Get("userrefs"),
}) })
} }