func (p *VirStoragePool) Undefine() error { result := C.virStoragePoolUndefine(p.ptr) if result == -1 { return errors.New(GetLastError()) } return nil }
// Undefine undefines an inactive storage pool. func (pool StoragePool) Undefine() error { pool.log.Println("undefining storage pool...") cRet := C.virStoragePoolUndefine(pool.virStoragePool) ret := int32(cRet) if ret == -1 { err := LastError() pool.log.Printf("an error occurred: %v\n", err) return err } pool.log.Println("pool undefined") return nil }