diff options
author | Don Brady <[email protected]> | 2016-08-31 15:46:58 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-01 11:39:45 -0700 |
commit | d02ca379795a37b8541da5a1b37528f7130de1e6 (patch) | |
tree | 67167cfd23f15abeccefe553400bf37dd1032399 /include/libzfs.h | |
parent | 0b284702b75aa712a7d1353b93e19d5b2c783f27 (diff) |
Bring over illumos ZFS FMA logic -- phase 1
This first phase brings over the ZFS SLM module, zfs_mod.c, to handle
auto operations in response to disk events. Disk event monitoring is
provided from libudev and generates the expected payload schema for
zfs_mod. This work leverages the recently added devid and phys_path
strings in the vdev label.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Don Brady <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #4673
Diffstat (limited to 'include/libzfs.h')
-rw-r--r-- | include/libzfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h index f83e21423..287555acf 100644 --- a/include/libzfs.h +++ b/include/libzfs.h @@ -824,6 +824,13 @@ extern int zpool_fru_set(zpool_handle_t *, uint64_t, const char *); */ extern boolean_t is_mpath_whole_disk(const char *); extern void update_vdev_config_dev_strs(nvlist_t *); +extern char *zfs_strip_partition(libzfs_handle_t *, char *); + +#ifdef HAVE_LIBUDEV +struct udev_device; +extern int zfs_device_get_devid(struct udev_device *, char *, size_t); +extern int zfs_device_get_physical(struct udev_device *, char *, size_t); +#endif #ifdef __cplusplus } |