Lines Matching full:vdev

57  *	6. If the pool has the 'autoreplace' property set, and the matching vdev
94 #define DEV_BYVDEV_PATH "/dev/disk/by-vdev/"
180 * The device associated with the given vdev (either by devid or physical path)
197 zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t labeled) in zfs_process_add() argument
222 * '/dev/disk/by-vdev' directories. Note that this path can change in zfs_process_add()
223 * when a vdev is replaced with a new disk. in zfs_process_add()
225 if (nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path) != 0) in zfs_process_add()
229 verify(nvlist_lookup_uint64_array(vdev, ZPOOL_CONFIG_VDEV_STATS, in zfs_process_add()
237 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_PHYS_PATH, &physpath); in zfs_process_add()
239 update_vdev_config_dev_sysfs_path(vdev, path, in zfs_process_add()
241 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_VDEV_ENC_SYSFS_PATH, in zfs_process_add()
244 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK, &wholedisk); in zfs_process_add()
245 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_OFFLINE, &offline); in zfs_process_add()
246 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_FAULTED, &faulted); in zfs_process_add()
248 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_GUID, &guid); in zfs_process_add()
249 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_IS_SPARE, &is_spare); in zfs_process_add()
261 * path: '/dev/disk/by-vdev/L28' in zfs_process_add()
272 * path: '/dev/disk/by-vdev/L29' in zfs_process_add()
281 * If the disk's path is a /dev/disk/by-vdev/ path, then we can infer in zfs_process_add()
282 * the ZPOOL_CONFIG_PHYS_PATH from the by-vdev disk name. in zfs_process_add()
285 /* If path begins with "/dev/disk/by-vdev/" ... */ in zfs_process_add()
288 /* Set physpath to the char after "/dev/disk/by-vdev" */ in zfs_process_add()
305 zed_log_msg(LOG_INFO, "zfs_process_add: pool '%s' vdev '%s', phys '%s'" in zfs_process_add()
317 * The VDEV guid is preferred for identification (gets passed in path) in zfs_process_add()
350 " zpool_vdev_online: vdev '%s' ('%s') is " in zfs_process_add()
365 * vdev online to trigger a FMA fault by posting an ereport. in zfs_process_add()
379 * needs to be /dev/disk/by-vdev for a scsi_debug device since in zfs_process_add()
409 nvlist_lookup_string(vdev, "new_devid", &new_devid); in zfs_process_add()
414 rc = zpool_prepare_disk(zhp, vdev, "autoreplace", &lines, in zfs_process_add()
452 vdev, "autoreplace", &lines, &lines_cnt); in zfs_process_add()
535 * Construct the root vdev to pass to zpool_vdev_attach(). While adding in zfs_process_add()
536 * the entire vdev structure is harmless, we construct a reduced set of in zfs_process_add()
599 * Utility functions to find a vdev matching given criteria.
647 /* once a vdev was matched and processed there is nothing left to do */ in zfs_iter_vdev()
667 * If the attached disk already contains a vdev GUID, it means in zfs_iter_vdev()
680 " != vdev GUID:%llu)", __func__, in zfs_iter_vdev()
725 * For each vdev in this pool, look for a match to apply dd_func in zfs_iter_pool()
767 * (pool, vdev) pairs which correspond to that location.
789 * Given a device identifier, find any vdevs with a matching by-vdev
792 * /dev/disk/by-vdev/L28, normally devphys_iter() would match the
804 * path: '/dev/disk/by-vdev/L28'
815 * path: '/dev/disk/by-vdev/L29'
826 * We can do this because we assume by-vdev paths are authoritative as physical
845 /* by_vdev_path doesn't start with "/dev/disk/by-vdev/" */ in by_vdev_path_iter()
901 * Matches: vdev's ZPOOL_CONFIG_PHYS_PATH or ZPOOL_CONFIG_DEVID
909 * Matches: vdev's ZPOOL_CONFIG_PHYS_PATH or ZPOOL_CONFIG_DEVID
943 * 3. ZPOOL_CONFIG_GUID (identifies unique vdev). in zfs_deliver_add()
944 * 4. ZPOOL_CONFIG_PATH for /dev/disk/by-vdev devices only (since in zfs_deliver_add()
945 * by-vdev paths represent physical paths). in zfs_deliver_add()
957 /* Can we match a /dev/disk/by-vdev/ path? */ in zfs_deliver_add()
960 "/dev/disk/by-vdev/%s", devpath); in zfs_deliver_add()
986 zed_log_msg(LOG_INFO, "zfs_deliver_check: pool '%llu', vdev %llu", in zfs_deliver_check()
997 * Given a path to a vdev, lookup the vdev's physical size from its
1000 * Returns the vdev's physical size in bytes on success, 0 on error.
1026 * Given a path to a vdev, lookup if the vdev is a "whole disk" in the
1166 * Only attempt an autoexpand if the vdev size in zfsdle_vdev_online()
1211 * provided vdev guid when looking up a disk or partition, when the guid