Commit afd6b31e authored by Duncan Mac-Vicar P's avatar Duncan Mac-Vicar P

add pool lookup by volume

parent 354fc5b6
......@@ -132,3 +132,13 @@ func (v *VirStorageVol) Download(stream *VirStream, offset, length uint64, flags
}
return nil
}
func (v *VirStorageVol) LookupPoolByVolume() (VirStoragePool, error) {
poolPtr := C.virStoragePoolLookupByVolume(v.ptr)
if poolPtr == nil {
return VirStoragePool{}, GetLastError()
}
return VirStoragePool{ptr: poolPtr}, nil
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment