Lines Matching refs:vdev

420     nvlist_t *vdev, uint64_t *p_vdev_id, VirtualDeviceBean_t *bean)
429 result = populate_DeviceStatsBean(env, vdev, stats, object);
439 /* Set parent vdev index */
446 result = nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_GUID, &vdev_id);
462 nvlist_t *vdev, uint64_t *p_vdev_id, LeafVirtualDeviceBean_t *bean)
465 env, zhp, vdev, p_vdev_id, (VirtualDeviceBean_t *)bean));
470 nvlist_t *vdev, uint64_t *p_vdev_id, DiskVirtualDeviceBean_t *bean)
474 env, zhp, vdev, p_vdev_id, (LeafVirtualDeviceBean_t *)bean);
482 result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
541 nvlist_t *vdev, uint64_t *p_vdev_id, SliceVirtualDeviceBean_t *bean)
545 env, zhp, vdev, p_vdev_id, (LeafVirtualDeviceBean_t *)bean);
553 result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
571 nvlist_t *vdev, uint64_t *p_vdev_id, FileVirtualDeviceBean_t *bean)
575 env, zhp, vdev, p_vdev_id, (LeafVirtualDeviceBean_t *)bean);
583 result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
600 nvlist_t *vdev, uint64_t *p_vdev_id, RAIDVirtualDeviceBean_t *bean)
602 return (populate_VirtualDeviceBean(env, zhp, vdev, p_vdev_id,
608 nvlist_t *vdev, uint64_t *p_vdev_id, MirrorVirtualDeviceBean_t *bean)
610 return (populate_VirtualDeviceBean(env, zhp, vdev, p_vdev_id,
635 nvlist_t *vdev, uint64_t *p_vdev_id)
645 env, zhp, vdev, p_vdev_id, bean);
656 nvlist_t *vdev, uint64_t *p_vdev_id)
666 env, zhp, vdev, p_vdev_id, bean);
677 nvlist_t *vdev, uint64_t *p_vdev_id)
687 env, zhp, vdev, p_vdev_id, bean);
698 nvlist_t *vdev, uint64_t *p_vdev_id)
711 result = nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_NPARITY,
724 env, zhp, vdev, p_vdev_id, bean);
735 nvlist_t *vdev, uint64_t *p_vdev_id)
745 env, zhp, vdev, p_vdev_id, bean);
853 * Gets the root vdev (an nvlist_t *) for the given pool.
876 * Gets the vdev (an nvlist_t *) with the given vdev_id, below the
877 * given vdev. If the given vdev is NULL, all vdevs within the given
881 * vdev, if any, or to vdev_id_to_find if the searched-for vdev is a
882 * toplevel vdev.
891 /* Was a vdev specified? */
893 /* No -- retrieve the top-level pool vdev */
896 /* Get index of this vdev and compare with vdev_id_to_find */
909 /* Get the vdevs under this vdev */
918 /* For each vdev child... */
921 /* Save parent vdev id */
939 nvlist_t *vdev, uint64_t *p_vdev_id)
943 int result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_TYPE, &type);
948 if (nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK,
951 env, zhp, vdev, p_vdev_id);
954 env, zhp, vdev, p_vdev_id);
958 env, zhp, vdev, p_vdev_id);
961 env, zhp, vdev, p_vdev_id);
964 env, zhp, vdev, p_vdev_id);
967 /* Get the vdevs under this vdev */
971 vdev, ZPOOL_CONFIG_CHILDREN, &children, &nelem);
975 /* Get last vdev child (replacement device) */
996 /* Was a vdev specified? */
998 /* No -- retrieve the top-level pool vdev */
1004 /* Get the vdevs under this vdev */
1012 /* For each vdev child... */
1017 /* Create a Java object from this vdev */
1031 /* Add child to child vdev list */
1067 populate_DeviceStatsBean(JNIEnv *env, nvlist_t *vdev,
1074 vdev, ZPOOL_CONFIG_VDEV_STATS, (uint64_t **)&vs, &c);