Searched defs:vdev (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/boot/sys/boot/zfs/
H A Ddevicename_stubs.c42 zfs_fmtdev(void *vdev) argument
H A Dzfs.c372 vdev_read(vdev_t *vdev, void *priv, off_t offset, void *buf, size_t size) argument
661 vdev_t *vdev; local
683 STAILQ_FOREACH(vdev, &spa->spa_vdevs, v_childlink) {
684 STAILQ_FOREACH(kid, &vdev->v_children, v_childlink) {
691 vdev = kid;
694 if (vdev->v_state == VDEV_STATE_HEALTHY &&
695 vdev->v_phys_path != NULL);
701 * there has to be at least one healthy vdev, therefore vdev
707 if (vdev
718 zfs_fmtdev(void *vdev) argument
[all...]
H A Dzfsimpl.c404 vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, argument
410 if (!vdev->v_phys_read)
420 rc = vdev->v_phys_read(vdev, vdev->v_read_priv, offset, buf, psize);
430 vdev_disk_read(vdev_t *vdev, const blkptr_t *bp, void *buf, argument
434 return (vdev_read_phys(vdev, bp, buf,
440 vdev_mirror_read(vdev_t *vdev, const blkptr_t *bp, void *buf, argument
447 STAILQ_FOREACH(kid, &vdev->v_children, v_childlink) {
459 vdev_replacing_read(vdev_t *vdev, cons argument
482 vdev_t *vdev; local
494 vdev_t *vdev; local
517 vdev_t *vdev, *kid; local
660 vdev_set_state(vdev_t *vdev) argument
733 vdev_t *vdev; local
807 vdev_status(vdev_t *vdev, int indent) argument
828 vdev_t *vdev; local
908 vdev_t *vdev, *top_vdev, *pool_vdev; local
1195 vdev_t *vdev; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/efi/loader/
H A Ddevicename.c53 efi_getdev(void **vdev, const char *devspec, const char **path) argument
55 struct devdesc **dev = (struct devdesc **)vdev;
160 efi_fmtdev(void *vdev) argument
162 struct devdesc *dev = (struct devdesc *)vdev;
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/
H A Dzfs_module.c44 vdev_read(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes) argument
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Ddevicename.c45 i386_getdev(void **vdev, const char *devspec, const char **path) argument
47 struct i386_devdesc **dev = (struct i386_devdesc **)vdev;
167 i386_fmtdev(void *vdev) argument
169 struct i386_devdesc *dev = (struct i386_devdesc *)vdev;
183 return (disk_fmtdev(vdev));
186 return(zfs_fmtdev(vdev));
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/
H A Ddevicename.c44 ofw_getdev(void **vdev, const char *devspec, const char **path) argument
46 struct ofw_devdesc **dev = (struct ofw_devdesc **)vdev;
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/
H A Ddevicename.c46 uboot_getdev(void **vdev, const char *devspec, const char **path) argument
48 struct uboot_devdesc **dev = (struct uboot_devdesc **)vdev;
165 uboot_fmtdev(void *vdev) argument
167 struct uboot_devdesc *dev = (struct uboot_devdesc *)vdev;
177 return (disk_fmtdev(vdev));
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/
H A Ddevicename.c49 userboot_getdev(void **vdev, const char *devspec, const char **path) argument
51 struct disk_devdesc **dev = (struct disk_devdesc **)vdev;
177 userboot_fmtdev(void *vdev) argument
179 struct disk_devdesc *dev = (struct disk_devdesc *)vdev;
192 return (disk_fmtdev(vdev));
200 return (zfs_fmtdev(vdev));
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c121 find_vdev_problem(nvlist_t *vdev, int (*func)(uint64_t, uint64_t, uint64_t)) argument
129 * Ignore problems within a 'replacing' vdev, since we're presumably in
134 verify(nvlist_lookup_string(vdev, ZPOOL_CONFIG_TYPE, &type) == 0);
138 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_CHILDREN, &child,
144 verify(nvlist_lookup_uint64_array(vdev, ZPOOL_CONFIG_VDEV_STATS,
157 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_L2CACHE, &child,
207 * Currently resilvering a vdev
H A Dlibzfs_pool.c150 * vdev's guid then get it from the zhp config nvlist.
1094 * Create the named pool, using the provided vdev list. It is assumed
1272 * necessary verification to ensure that the vdev specification is well-formed.
1921 * Find a vdev that matches the search criteria specified. We use the
1970 * - looking for a top-level vdev name (i.e. ZPOOL_CONFIG_TYPE).
2017 * Determine our vdev type, keeping in mind
2019 * vdev id pair (i.e. mirror-4).
2054 * Now verify that we have the correct vdev id.
2081 * vdev, not the leaf vdevs. So we always lookup the
2082 * log device from the root of the vdev tre
2915 nvlist_t **mchild, *vdev; local
[all...]
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_main.c331 jobject vdev = NULL; local
345 vdev = zjni_get_VirtualDevice_from_vdev(
353 return (vdev);
H A Dlibzfs_jni_pool.c420 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_
419 populate_VirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, VirtualDeviceBean_t *bean) argument
461 populate_LeafVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, LeafVirtualDeviceBean_t *bean) argument
469 populate_DiskVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, DiskVirtualDeviceBean_t *bean) argument
540 populate_SliceVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, SliceVirtualDeviceBean_t *bean) argument
570 populate_FileVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, FileVirtualDeviceBean_t *bean) argument
599 populate_RAIDVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, RAIDVirtualDeviceBean_t *bean) argument
607 populate_MirrorVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, MirrorVirtualDeviceBean_t *bean) argument
634 create_DiskVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
655 create_SliceVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
676 create_FileVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
697 create_RAIDVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
734 create_MirrorVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
938 zjni_get_VirtualDevice_from_vdev(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
1067 populate_DeviceStatsBean(JNIEnv *env, nvlist_t *vdev, DeviceStatsBean_t *bean, zjni_Object_t *object) argument
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c32 * marking the vdev FAULTY (for I/O errors) or DEGRADED (for checksum errors).
91 * Find a vdev within a tree with a matching GUID.
137 * Given a (pool, vdev) GUID pair, find the matching pool and vdev.
148 * Find the corresponding pool and make sure the vdev still exists.
198 * Given a FRU FMRI, find the matching pool and vdev.
215 * Given a vdev, attempt to replace it with every known spare until one
219 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) argument
243 dev_name = zpool_vdev_name(NULL, zhp, vdev, B_FALSE);
269 * Repair this vdev i
365 nvlist_t *vdev; local
[all...]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxpvd.c731 int *domain, *vdev; local
746 * Use "domain" and "vdev" properties (backend drivers).
750 DDI_PROP_DONTPASS, "vdev", &vdev, &nvdev)
757 (void) snprintf(addr, addrlen, "%d,%d", domain[0], vdev[0]);
758 ddi_prop_free(vdev);
879 /* Backend format is "<domain>,<vdev>". */
885 /* Frontend format is "<vdev>". */
920 int vdev; local
922 if (!i_xpvd_parse_devname(arg, &devclass, &dom, &vdev)) {
[all...]
H A Dxdf.c1236 blkif_vdev_t vdev = xvdi_get_vdevnum(dip); local
1255 ddi_put16(acchdl, &rreq->handle, vdev);
1276 ddi_put16(acchdl, &rreq->handle, vdev);
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c51 * 6. If the pool has the 'autoreplace' property set, and the matching vdev
134 * The device associated with the given vdev (either by devid or physical path)
149 zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t isdisk) argument
160 if (nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path) != 0)
163 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_PHYS_PATH, &physpath);
164 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK, &wholedisk);
165 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_OFFLINE, &offline);
231 * Cosntruct the root vdev to pass to zpool_vdev_attach(). While adding
232 * the entire vdev structure is harmless, we construct a reduced set of
265 * Utility functions to find a vdev matchin
602 zfs_update_vdev_fru(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t isdisk) argument
652 nvlist_t *config, *vdev; local
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c48 * the same level as the root of the vdev tree.
53 * 1. Construct the vdev specification. Performs syntax validation and
85 * For any given vdev specification, we can have multiple errors. The
99 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
381 * Create a leaf vdev. Determine if this is a file or a device. If it's a
383 * leaf vdev are:
394 nvlist_t *vdev = NULL; local
399 * Determine what type of vdev this is, and put the full path into
467 * acceptable to use. Construct the nvlist to describe this vdev. All
470 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAM
[all...]
H A Dzpool_main.c204 return (gettext("\tadd [-fn] <pool> <vdev> ...\n"));
213 "\t [-m mountpoint] [-R root] <pool> <vdev> ...\n"));
236 return (gettext("\tlabelclear [-f] <vdev>\n"));
481 * zpool add [-fn] <pool> <vdev> ...
528 (void) fprintf(stderr, gettext("missing vdev specification\n"));
588 * zpool remove <pool> <vdev> ...
590 * Removes the given vdev from the pool. Currently, this supports removing
627 * zpool labelclear [-f] <vdev>
632 * Verifies that the vdev is not active and zeros out the label information
638 char vdev[MAXPATHLE local
[all...]
/illumos-gate/usr/src/uts/common/xen/os/
H A Dxvdi.c252 DDI_PROP_DONTPASS, "vdev", VDEV_NOXS);
326 * and is contained in the 'vdev' property.
732 domid_t dom, int vdev)
748 if (vdev != VDEV_NOXS) {
751 "%s/%d", xdcp->xs_path_fe, vdev);
756 "%s/%d/%d", xdcp->xs_path_be, dom, vdev);
807 (void) ndi_prop_update_int(DDI_DEV_T_NONE, dip, "vdev", vdev);
943 domid_t dom, int vdev)
956 /* Console and soft devices have no vdev
731 xvdi_create_dev(dev_info_t *parent, xendev_devclass_t devclass, domid_t dom, int vdev) argument
942 xvdi_find_dev(dev_info_t *parent, xendev_devclass_t devclass, domid_t dom, int vdev) argument
1864 int vdev; local
2335 int i, vdev, circ; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c1429 * Check if this vdev is online and is in a good state.
1448 * Get a valid vdev pathname/devid from the boot device.
1474 /* for a spare vdev, pick the disk labeled with "is_spare" */
1521 * Check the disk label information and retrieve needed vdev name-value pairs.
1531 vdev_phys_t *vdev; local
1538 /* Read in the vdev name-value pair list (112K). */
1542 vdev = (vdev_phys_t *)stack;
1545 if (nvlist_unpack(vdev->vp_nvlist, &nvlist))
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_impl.h34 #include <sys/vdev.h>
129 struct vdev { struct
131 * Common to all vdev types.
133 uint64_t vdev_id; /* child number in vdev parent */
134 uint64_t vdev_guid; /* unique ID for this vdev */
142 uint64_t vdev_prevstate; /* used when reopening a vdev */
143 vdev_ops_t *vdev_ops; /* vdev operations */
144 spa_t *vdev_spa; /* spa for this vdev */
148 vdev_t *vdev_top; /* top-level vdev */
149 vdev_t *vdev_parent; /* parent vdev */
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev.c66 /* maximum scrub/resilver I/O queue per leaf vdev */
70 * When a vdev is added, it will be divided into approximately (but no
76 * Given a vdev type, return the appropriate ops vector.
110 * the vdev's asize rounded to the nearest metaslab. This allows us to
127 * The top-level vdev just returns the allocatable size rounded
134 * The allocatable space for a raidz vdev is N * sizeof(smallest child),
153 vdev_lookup_top(spa_t *spa, uint64_t vdev) argument
159 if (vdev < rvd->vdev_children) {
160 ASSERT(rvd->vdev_child[vdev] != NULL);
161 return (rvd->vdev_child[vdev]);
[all...]
H A Dmetaslab.c603 * because we're done, and possibly removing the vdev.
1843 * This vdev is in the process of being removed so there is nothing
2094 spa_dbgmsg(spa, "condensing: txg %llu, msp[%llu] %p, vdev id %llu, "
2341 * the vdev.
2588 metaslab_group_alloc_increment(spa_t *spa, uint64_t vdev, void *tag, int flags) argument
2594 metaslab_group_t *mg = vdev_lookup_top(spa, vdev)->vdev_mg;
2602 metaslab_group_alloc_decrement(spa_t *spa, uint64_t vdev, void *tag, int flags) argument
2608 metaslab_group_t *mg = vdev_lookup_top(spa, vdev)->vdev_mg;
2623 uint64_t vdev = DVA_GET_VDEV(&dva[d]); local
2624 metaslab_group_t *mg = vdev_lookup_top(spa, vdev)
3124 uint64_t vdev = DVA_GET_VDEV(dva); local
3182 uint64_t vdev = DVA_GET_VDEV(dva); local
3390 uint64_t vdev = DVA_GET_VDEV(&bp->blk_dva[i]); local
[all...]
H A Dspa.c163 * to get the vdev stats associated with the imported devices.
485 * Make sure the vdev config is bootable
764 * the root vdev's guid, our own pool guid, and then mark all of our
1094 offsetof(struct vdev, vdev_txg_node));
1174 * Verify a pool configuration, and construct the vdev tree appropriately. This
1175 * will create all the necessary vdevs in the appropriate layout, with each vdev
1177 * All vdev validation is done by the vdev_alloc() routine.
1381 * for basic validation purposes) and one in the active vdev
1383 * validate each vdev on the spare list. If the vdev als
2031 spa_vdev_err(vdev_t *vdev, vdev_aux_t aux, int err) argument
[all...]

Completed in 349 milliseconds

12