From f0994c77ba3d079895a2f97b0b8b1dde0795a9eb Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Wed, 18 Dec 2019 09:25:03 +0100 Subject: [PATCH] Force refreshing property on C side when ReloadProperties() (#24) --- zfs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zfs.go b/zfs.go index 170fd04..0dfc44c 100644 --- a/zfs.go +++ b/zfs.go @@ -319,6 +319,7 @@ func (d *Dataset) ReloadProperties() (err error) { d.Properties = make(map[Prop]Property) Global.Mtx.Lock() defer Global.Mtx.Unlock() + C.zfs_refresh_properties(d.list.zh) for prop := DatasetPropType; prop < DatasetNumProps; prop++ { plist := C.read_dataset_property(d.list, C.int(prop)) if plist == nil {