diff --git a/libzfs.pyx b/libzfs.pyx index 70e84a8..3cd7541 100644 --- a/libzfs.pyx +++ b/libzfs.pyx @@ -2892,7 +2892,7 @@ cdef class ZFSPool(object): IF HAVE_LZC_SYNC: def sync(self, force=False): cdef int ret - cdef const char *c_name = self.name + cdef const char *c_name = libzfs.zpool_get_name(self.handle) cdef NVList innvl = NVList() innvl["force"] = force