public interface libzfs
extends com.sun.jna.Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
libzfs.zfs_allow_node_t |
static class |
libzfs.zfs_allow_t |
static interface |
libzfs.zfs_iter_f |
static class |
libzfs.zfs_perm_node_t |
static interface |
libzfs.zpool_iter_f |
static interface |
libzfs.zprop_func |
| Modifier and Type | Field and Description |
|---|---|
static int |
GET_COL_NAME |
static int |
GET_COL_PROPERTY |
static int |
GET_COL_SOURCE |
static int |
GET_COL_VALUE |
static libzfs |
LIBZFS |
static int |
MAXNAMELEN |
static int |
MAXPATHLEN |
static int |
ZFS_MAXNAMELEN |
static int |
ZFS_MAXPROPLEN |
static String |
ZFS_MOUNTPOINT_LEGACY |
static String |
ZFS_MOUNTPOINT_NONE |
static int |
ZPOOL_MAXNAMELEN |
static int |
ZPOOL_MAXPROPLEN |
static final libzfs LIBZFS
static final int MAXNAMELEN
static final int MAXPATHLEN
static final int ZFS_MAXNAMELEN
static final int ZPOOL_MAXNAMELEN
static final int ZFS_MAXPROPLEN
static final int ZPOOL_MAXPROPLEN
static final String ZFS_MOUNTPOINT_NONE
static final String ZFS_MOUNTPOINT_LEGACY
static final int GET_COL_NAME
static final int GET_COL_PROPERTY
static final int GET_COL_VALUE
static final int GET_COL_SOURCE
libzfs_handle_t libzfs_init()
void libzfs_fini(libzfs_handle_t handle)
libzfs_handle_t zpool_get_handle(zpool_handle_t handle)
libzfs_handle_t zfs_get_handle(zfs_handle_t handle)
void libzfs_print_on_error(libzfs_handle_t lib, boolean flag)
int libzfs_errno(libzfs_handle_t lib)
String libzfs_error_action(libzfs_handle_t lib)
String libzfs_error_description(libzfs_handle_t lib)
void libzfs_mnttab_init(libzfs_handle_t lib)
void libzfs_mnttab_fini(libzfs_handle_t lib)
void libzfs_mnttab_cache(libzfs_handle_t lib, boolean flag)
void libzfs_mnttab_add(libzfs_handle_t lib, String specal, String mountp, String mntopts)
void libzfs_mnttab_remove(libzfs_handle_t lib, String fsname)
zpool_handle_t zpool_open(libzfs_handle_t lib, String name)
zpool_handle_t zpool_open_canfail(libzfs_handle_t lib, String name)
void zpool_close(zpool_handle_t pool)
String zpool_get_name(zpool_handle_t pool)
int zpool_get_state(zpool_handle_t pool)
String zpool_state_to_name(vdev_state_t state, vdev_aux_t aux)
void zpool_free_handles(libzfs_handle_t lib)
int zpool_iter(libzfs_handle_t lib, libzfs.zpool_iter_f callback, com.sun.jna.Pointer arg)
int zpool_create(libzfs_handle_t lib, String poolName, nvlist_t nvroot, nvlist_t props)
int zpool_destroy(zpool_handle_t pool)
int zpool_add(zpool_handle_t pool, nvlist_t _1)
int zpool_scrub(zpool_handle_t pool, pool_scrub_type_t scrub)
int zpool_clear(zpool_handle_t pool, String name)
int zpool_vdev_online(zpool_handle_t pool, String path, int flags, vdev_state_t newstate)
int zpool_vdev_offline(zpool_handle_t pool, String path, boolean istmp)
int zpool_vdev_attach(zpool_handle_t pool, String old_disk, String new_disk, nvlist_t nvroot, int replacing)
int zpool_vdev_detach(zpool_handle_t pool, String path)
int zpool_vdev_remove(zpool_handle_t pool, String path)
int zpool_vdev_fault(zpool_handle_t pool, long guid, vdev_aux_t aux)
int zpool_vdev_degrade(zpool_handle_t pool, long guid, vdev_aux_t aux)
int zpool_vdev_clear(zpool_handle_t pool, long guid)
nvlist_t zpool_find_vdev(zpool_handle_t pool, String path, BooleanByReference avail_spare, BooleanByReference l2cache, BooleanByReference log)
nvlist_t zpool_find_vdev_by_physpath(zpool_handle_t pool, String ppath, BooleanByReference avail_spare, BooleanByReference l2cache, BooleanByReference log)
int zpool_label_disk(libzfs_handle_t lib, zpool_handle_t pool, String label)
int zpool_set_prop(zpool_handle_t pool, String name, String value)
int zpool_get_prop(zpool_handle_t pool, com.sun.jna.NativeLong prop, com.sun.jna.Pointer buf, com.sun.jna.NativeLong len, EnumByReference<org.jvnet.solaris.libzfs.jna.zprop_source_t> srctype)
long zpool_get_prop_int(zpool_handle_t pool, zpool_prop_t prop, EnumByReference<org.jvnet.solaris.libzfs.jna.zprop_source_t> src)
String zpool_prop_to_name(zpool_prop_t prop)
String zpool_prop_values(zpool_prop_t prop)
int zpool_get_status(zpool_handle_t handle, com.sun.jna.ptr.PointerByReference msgid)
int zpool_import_status(nvlist_t config, com.sun.jna.ptr.PointerByReference misgid)
nvlist_t zpool_get_config(zpool_handle_t pool, com.sun.jna.ptr.PointerByReference ppchNVList)
int zpool_refresh_stats(zpool_handle_t pool, BooleanByReference missing)
int zpool_get_errlog(zpool_handle_t pool, com.sun.jna.ptr.PointerByReference ppchNVList)
int zpool_export(zpool_handle_t pool, boolean force)
int zpool_export_force(zpool_handle_t pool)
int zpool_import(libzfs_handle_t lib, nvlist_t config, String newname, String altroot)
int zpool_import_props(libzfs_handle_t lib, nvlist_t config, String newname, nvlist_t props, BooleanByReference importfaulted)
nvlist_t zpool_find_import(libzfs_handle_t lib, int argc, com.sun.jna.ptr.PointerByReference argv)
nvlist_t zpool_find_import_cached(libzfs_handle_t lib, String cachefile, String poolname, long guid)
nvlist_t zpool_find_import_byname(libzfs_handle_t lib, int argc, com.sun.jna.ptr.PointerByReference argv, String pool)
nvlist_t zpool_find_import_byguid(libzfs_handle_t lib, int argc, com.sun.jna.ptr.PointerByReference argv, long guid)
nvlist_t zpool_find_import_activeok(libzfs_handle_t lib, int argc, com.sun.jna.ptr.PointerByReference argv)
String zpool_vdev_name(libzfs_handle_t lib, zpool_handle_t pool, nvlist_t nv, BooleanByReference verbose)
int zpool_upgrade(zpool_handle_t pool, long new_version)
int zpool_get_history(zpool_handle_t pool, com.sun.jna.ptr.PointerByReference ppNVList)
void zpool_set_history_str(String subcommand, int argc, String[] argv, String history_str)
int zpool_stage_history(libzfs_handle_t lib, String _2)
void zpool_obj_to_path(zpool_handle_t pool, long _2, long _3, String _4, com.sun.jna.NativeLong len)
int zfs_ioctl(libzfs_handle_t lib, int _2, zfs_cmd cmd)
zfs_handle_t zfs_open(libzfs_handle_t lib, String name, int typeMask)
zfs_handle_t zfs_handle_dup(zfs_handle_t src)
void zfs_close(zfs_handle_t handle)
int zfs_get_type(zfs_handle_t handle)
String zfs_get_name(zfs_handle_t handle)
zpool_handle_t zfs_get_pool_handle(zfs_handle_t h)
String zfs_prop_default_string(zfs_prop_t prop)
long zfs_prop_default_numeric(zfs_prop_t prop)
String zfs_prop_column_name(zfs_prop_t prop)
boolean zfs_prop_align_right(zfs_prop_t prop)
String zfs_prop_to_name(zfs_prop_t prop)
int zfs_prop_set(zfs_handle_t handle, String propertyName, String propertyValue)
This method can set both native properties and user-defined properties.
int zfs_prop_get(zfs_handle_t handle, com.sun.jna.NativeLong prop, com.sun.jna.Pointer _4, int cbSize, com.sun.jna.ptr.IntByReference _5, char[] _6, com.sun.jna.NativeLong _7, boolean _8)
int zfs_prop_get_numeric(zfs_handle_t handle, zfs_prop_t prop, com.sun.jna.ptr.LongByReference r, com.sun.jna.ptr.IntByReference _4, char[] _5, com.sun.jna.NativeLong _6)
long zfs_prop_get_int(zfs_handle_t handle, zfs_prop_t prop)
int zfs_prop_inherit(zfs_handle_t handle, String _2)
String zfs_prop_values(zfs_prop_t prop)
int zfs_prop_is_string(zfs_prop_t prop)
nvlist_t zfs_get_user_props(zfs_handle_t handle)
int zfs_expand_proplist(zfs_handle_t handle, com.sun.jna.ptr.PointerByReference _2)
int zpool_expand_proplist(zpool_handle_t pool, com.sun.jna.ptr.PointerByReference _2)
String zpool_prop_default_string(zpool_prop_t prop)
long zpool_prop_default_numeric(zpool_prop_t prop)
String zpool_prop_column_name(zpool_prop_t prop)
boolean zpool_prop_align_right(zpool_prop_t prop)
int zprop_iter(libzfs.zprop_func func, com.sun.jna.Pointer arg, boolean show_all, boolean ordered, zfs_type_t type)
int zprop_get_list(libzfs_handle_t lib, String buf, com.sun.jna.ptr.PointerByReference result, int type)
void zprop_free_list(zprop_list_t arg)
void zprop_print_one_property(String _1, zprop_get_cbdata_t _2, String _3, String _4, org.jvnet.solaris.libzfs.jna.zprop_source_t _5, String _6)
int zfs_iter_root(libzfs_handle_t lib, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_iter_children(zfs_handle_t handle, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_iter_dependents(zfs_handle_t handle, boolean _2, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_iter_filesystems(zfs_handle_t handle, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_iter_snapshots(zfs_handle_t handle, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_iter_snapshots(zfs_handle_t handle, boolean simple, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_iter_snapshots_sorted(zfs_handle_t handle, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_iter_snapspec(zfs_handle_t handle, libzfs.zfs_iter_f callback, com.sun.jna.Pointer arg)
int zfs_create(libzfs_handle_t lib, String name, int type, nvlist_t props)
int zfs_create_ancestors(libzfs_handle_t lib, String _2)
int zfs_destroy(zfs_handle_t handle, boolean defer)
int zfs_destroy_snaps(zfs_handle_t handle, String name, boolean _3)
int zfs_clone(zfs_handle_t handle, String name, nvlist_t _3)
int zfs_snapshot(libzfs_handle_t lib, String fullNameWithAtSnapShot, boolean recursive, nvlist_t props)
int zfs_rollback(zfs_handle_t handle1, zfs_handle_t handle2, boolean _3)
int zfs_rename(zfs_handle_t handle, String name, boolean _3)
int zfs_promote(zfs_handle_t handle)
String zfs_type_to_name(zfs_type_t type)
void zfs_refresh_properties(zfs_handle_t handle)
int zfs_name_valid(String name, zfs_type_t type)
zfs_handle_t zfs_path_to_zhandle(libzfs_handle_t lib, String path, int type)
boolean zfs_dataset_exists(libzfs_handle_t lib, String name, int type)
int zfs_spa_version(zfs_handle_t handle, com.sun.jna.ptr.IntByReference r)
int zfs_perm_set(zfs_handle_t handle, nvlist_t perms)
int zfs_perm_remove(zfs_handle_t handle, nvlist_t perms)
int zfs_build_perms(zfs_handle_t handle, String who, String perms, int who_type, int deleg_type, PtrByReference<nvlist_t> ppchNVList)
nvlist_t format that it internally uses.who - To whom the permission concerns.
User name, if who_type is zfs_deleg_who_type_t.ZFS_DELEG_USER,
Group name if who_type is zfs_deleg_who_type_t.ZFS_DELEG_GROUP.
If who_type is zfs_deleg_who_type_t.ZFS_DELEG_WHO_UNKNOWN, then
this is interpreted preferentially as the keyword "everyone", then as a user name,
and lastly as a group name.who_type - One of the constants from zfs_deleg_who_type_t.deleg_type - Inheritance type from zfs_deleg_inherit_t. Its ordinal should be passed.ppchNVList - Receives nvlist_t upon a completion.int zfs_perm_get(zfs_handle_t handle, com.sun.jna.ptr.PointerByReference _2)
void zfs_free_allows(libzfs.zfs_allow_t p)
void zfs_deleg_permissions()
boolean is_mounted(libzfs_handle_t lib, String special, com.sun.jna.ptr.PointerByReference _2)
boolean zfs_is_mounted(zfs_handle_t handle, com.sun.jna.ptr.PointerByReference _3)
int zfs_mount(zfs_handle_t handle, String options, int mountFlags)
int zfs_unmount(zfs_handle_t handle, String _2, int umountFlags)
umountFlags - Bit combinations from MountFlagsint zfs_unmountall(zfs_handle_t handle, int umountFlags)
boolean zfs_is_shared(zfs_handle_t handle)
int zfs_share(zfs_handle_t handle)
int zfs_unshare(zfs_handle_t handle)
boolean zfs_is_shared_nfs(zfs_handle_t handle, com.sun.jna.ptr.PointerByReference ppch)
boolean zfs_is_shared_smb(zfs_handle_t handle, com.sun.jna.ptr.PointerByReference ppch)
int zfs_share_nfs(zfs_handle_t handle)
int zfs_share_smb(zfs_handle_t handle)
int zfs_shareall(zfs_handle_t handle)
int zfs_unshare_nfs(zfs_handle_t handle, String _2)
int zfs_unshare_smb(zfs_handle_t handle, String _2)
int zfs_unshareall_nfs(zfs_handle_t handle)
int zfs_unshareall_smb(zfs_handle_t handle)
int zfs_unshareall_bypath(zfs_handle_t handle, String _2)
int zfs_unshareall(zfs_handle_t handle)
boolean zfs_is_shared_iscsi(zfs_handle_t handle)
int zfs_share_iscsi(zfs_handle_t handle)
int zfs_unshare_iscsi(zfs_handle_t handle)
void zfs_nicenum(long _1,
char[] buf,
com.sun.jna.NativeLong size)
int zfs_nicestrtonum(libzfs_handle_t lib, String _2, com.sun.jna.ptr.LongByReference r)
int zpool_in_use(libzfs_handle_t lib, int _2, com.sun.jna.ptr.IntByReference r, com.sun.jna.ptr.PointerByReference ppch, BooleanByReference _5)
int zpool_read_label(int _1,
com.sun.jna.ptr.PointerByReference ppnvlist)
int zpool_create_zvol_links(zpool_handle_t pool)
int zpool_remove_zvol_links(zpool_handle_t pool)
int zvol_check_dump_config(String _1)
int zpool_enable_datasets(zpool_handle_t pool, String _2, int _3)
int zpool_disable_datasets(zpool_handle_t pool, boolean force)
Copyright © 2008–2017. All rights reserved.