Fix dataset to have to correct type
The parent type was used before if the dataset was opened via openChildren().
This commit is contained in:
parent
a91df3a028
commit
ee9aac43ac
2
zfs.go
2
zfs.go
|
@ -59,7 +59,7 @@ func (d *Dataset) openChildren() (err error) {
|
|||
list := C.dataset_list_children(d.list)
|
||||
for list != nil {
|
||||
dataset := Dataset{list: list}
|
||||
dataset.Type = DatasetType(C.dataset_type(d.list))
|
||||
dataset.Type = DatasetType(C.dataset_type(list))
|
||||
dataset.Properties = make(map[Prop]Property)
|
||||
err = dataset.ReloadProperties()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue