Lines Matching refs:_libzfs
1070 _libzfs = CDLL('libzfs.so.1', use_errno=True)
1071 _libzfs.libzfs_init.restype = c_void_p
1073 _libzfs.libzfs_fini.argtypes = [c_void_p]
1074 _libzfs.libzfs_fini.restype = None
1076 _libzfs.libzfs_error_description.argtypes = [c_void_p]
1077 _libzfs.libzfs_error_description.restype = c_char_p
1079 _libzfs.zfs_open.restype = c_void_p
1080 _libzfs.zfs_open.argtypes = [c_void_p, c_char_p, c_int]
1082 _libzfs.zfs_close.argtypes = [c_void_p]
1083 _libzfs.zfs_close.restype = None
1086 _libzfs.zfs_iter_filesystems.argtypes = [c_void_p, zif_callback, c_void_p]
1088 _libzfs.zfs_get_type.argtypes = [c_void_p]
1090 _libzfs.zfs_get_name.restype = c_char_p
1091 _libzfs.zfs_get_name.argtypes = [c_void_p]
1093 _libzfs.zfs_name_valid.argtypes = [c_char_p, c_int]
1095 _libzfs.zpool_open.restype = c_void_p
1096 _libzfs.zpool_open.argtypes = [c_void_p, c_char_p]
1098 _libzfs.zpool_close.restype = None
1099 _libzfs.zpool_close.argtypes = [c_void_p]
1101 _libzfs.zpool_get_physpath.argtypes = [c_void_p, c_char_p, c_int]
1103 _libzfs.zpool_get_prop.argtypes = [c_void_p, c_int, c_char_p, c_int,
1106 _libzfs.zpool_set_prop.argtypes = [c_void_p, c_char_p, c_char_p]
1108 _libzfs.zfs_prop_get.argtypes = [ c_void_p, c_int, c_char_p, c_int,
1225 hdl = _libzfs.libzfs_init()
1232 return _libzfs.libzfs_error_description(lzfsh)
1236 hdl = _libzfs.zfs_open(lzfsh, zfsname, type)
1243 _libzfs.zfs_close(zfsh)
1247 return _libzfs.zfs_get_type(zfsh)
1251 return _libzfs.zfs_get_name(zfsh)
1255 ret = _libzfs.zfs_name_valid(beName, type)
1260 hdl = _libzfs.zpool_open(lzfsh, poolname)
1267 _libzfs.zpool_close(zph)
1272 ret = _libzfs.zpool_get_physpath(zph, buf, MAX_PATH)
1286 ret = _libzfs.zpool_get_prop(zph, propid, buf, LIBZFS_PROPLEN_MAX,
1297 return _libzfs.zpool_set_prop(zph, propname, propval)
1307 ret = _libzfs.zfs_prop_get(zfs_hdl, propid, buf,
1318 _libzfs.libzfs_fini(handle)