Force refreshing property on C side when ReloadProperties() (#24)

This commit is contained in:
Didier Roche 2019-12-18 09:25:03 +01:00 committed by Faruk Kasumovic
parent e50663fa59
commit f0994c77ba
1 changed files with 1 additions and 0 deletions

1
zfs.go
View File

@ -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 {