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

12

/illumos-gate/usr/src/boot/sys/boot/efi/libefi/
H A Ddevicename.c49 efi_getdev(void **vdev, const char *devspec, const char **path) argument
51 struct devdesc **dev = (struct devdesc **)vdev;
174 efi_fmtdev(void *vdev) argument
176 struct devdesc *dev = (struct devdesc *)vdev;
185 return (disk_fmtdev(vdev));
/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;
175 i386_fmtdev(void *vdev) argument
177 struct i386_devdesc *dev = (struct i386_devdesc *)vdev;
186 return (disk_fmtdev(vdev));
189 return (zfs_fmtdev(vdev));
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c138 find_vdev_problem(nvlist_t *vdev, int (*func)(uint64_t, uint64_t, uint64_t)) argument
146 * Ignore problems within a 'replacing' vdev, since we're presumably in
151 verify(nvlist_lookup_string(vdev, ZPOOL_CONFIG_TYPE, &type) == 0);
155 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_CHILDREN, &child,
161 verify(nvlist_lookup_uint64_array(vdev, ZPOOL_CONFIG_VDEV_STATS,
174 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_L2CACHE, &child,
226 * Currently resilvering a vdev
H A Dlibzfs_pool.c154 * vdev's guid then get it from the zhp config nvlist.
1147 * Check if vdev list contains a special vdev
1171 * Create the named pool, using the provided vdev list. It is assumed
1223 "%s property requires a special vdev"),
1423 * necessary verification to ensure that the vdev specification is well-formed.
2027 * Translate vdev names to guids. If a vdev_path is determined to be
2028 * unsuitable then a vd_errlist is allocated and the vdev path and errno
2359 * Find a vdev that matches the search criteria specified. We use the
2409 * - looking for a top-level vdev nam
3362 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.c423 nvlist_t *vdev, uint64_t *p_vdev_id, VirtualDeviceBean_t *bean)
432 result = populate_DeviceStatsBean(env, vdev, stats, object);
442 /* Set parent vdev index */
449 result = nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_GUID, &vdev_id);
465 nvlist_t *vdev, uint64_t *p_vdev_id, LeafVirtualDeviceBean_t *bean)
468 env, zhp, vdev, p_vdev_id, (VirtualDeviceBean_t *)bean));
473 nvlist_t *vdev, uint64_t *p_vdev_id, DiskVirtualDeviceBean_t *bean)
477 env, zhp, vdev, p_vdev_id, (LeafVirtualDeviceBean_t *)bean);
485 result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
544 nvlist_t *vdev, uint64_
422 populate_VirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, VirtualDeviceBean_t *bean) argument
464 populate_LeafVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, LeafVirtualDeviceBean_t *bean) argument
472 populate_DiskVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, DiskVirtualDeviceBean_t *bean) argument
543 populate_SliceVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, SliceVirtualDeviceBean_t *bean) argument
573 populate_FileVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, FileVirtualDeviceBean_t *bean) argument
602 populate_RAIDVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, RAIDVirtualDeviceBean_t *bean) argument
610 populate_MirrorVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, MirrorVirtualDeviceBean_t *bean) argument
637 create_DiskVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
658 create_SliceVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
679 create_FileVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
700 create_RAIDVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
737 create_MirrorVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
942 zjni_get_VirtualDevice_from_vdev(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
1072 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.c35 * marking the vdev FAULTY (for I/O errors) or DEGRADED (for checksum errors).
94 * Find a vdev within a tree with a matching GUID.
148 * Given a (pool, vdev) GUID pair, find the matching pool and vdev.
159 * Find the corresponding pool and make sure the vdev still exists.
209 * Given a FRU FMRI, find the matching pool and vdev.
226 * Given a vdev, attempt to replace it with every known spare until one
230 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) argument
263 dev_name = zpool_vdev_name(zhdl, zhp, vdev, B_FALSE);
294 * Repair this vdev i
390 nvlist_t *vdev; local
[all...]
/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
162 if (nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path) != 0)
165 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_PHYS_PATH, &physpath);
166 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK, &wholedisk);
167 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_OFFLINE, &offline);
240 * Cosntruct the root vdev to pass to zpool_vdev_attach(). While adding
241 * the entire vdev structure is harmless, we construct a reduced set of
274 * Utility functions to find a vdev matchin
611 zfs_update_vdev_fru(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t isdisk) argument
661 nvlist_t *config, *vdev; local
[all...]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxpvd.c741 int *domain, *vdev; local
756 * Use "domain" and "vdev" properties (backend drivers).
760 DDI_PROP_DONTPASS, "vdev", &vdev, &nvdev)
767 (void) snprintf(addr, addrlen, "%d,%d", domain[0], vdev[0]);
768 ddi_prop_free(vdev);
775 * Use "vdev" and "unit-address" properties (frontend/softdev drivers).
776 * At boot time, only the vdev property is available on xdf disks.
781 DDI_PROP_DONTPASS, "vdev", &vdev,
942 int vdev; local
[all...]
H A Dxdf.c1250 blkif_vdev_t vdev = xvdi_get_vdevnum(dip); local
1269 ddi_put16(acchdl, &rreq->handle, vdev);
1290 ddi_put16(acchdl, &rreq->handle, vdev);
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfs.c346 vdev_read(vdev_t *vdev __unused, void *priv, off_t offset, void *buf,
824 zfs_fmtdev(void *vdev) argument
828 struct zfs_devdesc *dev = (struct zfs_devdesc *)vdev;
H A Dzfsimpl.c50 * The indirect_child_t represents the vdev that we will read from, when we
63 * indirect vdev. For non-split (contiguously-mapped) blocks, there will be
76 vdev_t *is_vdev; /* top-level vdev */
91 * The indirect_vsd_t is associated with each i/o to the indirect vdev.
447 vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, argument
453 if (!vdev->v_phys_read)
462 rc = vdev->v_phys_read(vdev, vdev->v_read_priv, offset, buf, psize);
465 rc = zio_checksum_verify(vdev
744 vdev_lookup_top(spa_t *spa, uint64_t vdev) argument
903 vdev_indirect_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
991 vdev_disk_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1008 vdev_mirror_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1027 vdev_replacing_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1050 vdev_t *vdev; local
1062 vdev_t *vdev; local
1087 vdev_set_initial_state(vdev_t *vdev, const unsigned char *nvlist) argument
1129 vdev_t *vdev; local
1265 vdev_find_previous(vdev_t *top_vdev, vdev_t *vdev) argument
1287 vdev_child_count(vdev_t *vdev) argument
1303 vdev_insert(vdev_t *top_vdev, vdev_t *vdev) argument
1338 vdev_t *top_vdev, *vdev; local
1405 vdev_set_state(vdev_t *vdev) argument
1452 vdev_t *vdev; local
1520 vdev_t *vdev; local
1580 vdev_t *vdev; local
1664 vdev_status(vdev_t *vdev, int indent) argument
1692 vdev_t *vdev; local
1980 vdev_t *vdev; local
2238 vdev_t *vdev; local
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c49 * the same level as the root of the vdev tree.
54 * 1. Construct the vdev specification. Performs syntax validation and
88 * For any given vdev specification, we can have multiple errors. The
102 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
384 * Create a leaf vdev. Determine if this is a file or a device. If it's a
386 * leaf vdev are:
397 nvlist_t *vdev = NULL; local
403 * Determine what type of vdev this is, and put the full path into
471 * acceptable to use. Construct the nvlist to describe this vdev. All
474 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAM
[all...]
H A Dzpool_main.c316 "<pool> <vdev> ...\n"));
327 "<pool> <vdev> ...\n"));
352 "\t [[pool] ...]|[pool vdev ...]|[vdev ...]]"
355 return (gettext("\tlabelclear [-f] <vdev>\n"));
518 * print a pool vdev config for dry runs
663 * zpool add [-fgLnP] [-o property=value] <pool> <vdev> ...
666 * -g Display guid for individual vdev name.
667 * -L Follow links when resolving vdev path name.
670 * -P Display full path for vdev nam
939 char vdev[MAXPATHLEN]; 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/xen/os/
H A Dxvdi.c261 DDI_PROP_DONTPASS, "vdev", VDEV_NOXS);
335 * and is contained in the 'vdev' property.
741 domid_t dom, int vdev)
757 if (vdev != VDEV_NOXS) {
760 "%s/%d", xdcp->xs_path_fe, vdev);
765 "%s/%d/%d", xdcp->xs_path_be, dom, vdev);
816 (void) ndi_prop_update_int(DDI_DEV_T_NONE, dip, "vdev", vdev);
952 domid_t dom, int vdev)
965 /* Console and soft devices have no vdev
740 xvdi_create_dev(dev_info_t *parent, xendev_devclass_t devclass, domid_t dom, int vdev) argument
951 xvdi_find_dev(dev_info_t *parent, xendev_devclass_t devclass, domid_t dom, int vdev) argument
1873 int vdev; local
2344 int i, vdev, circ; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_impl.h39 #include <sys/vdev.h>
90 * Given a target vdev, translates the logical range "in" to the physical
168 * On-disk indirect vdev state.
170 * An indirect vdev is described exclusively in the MOS config of a pool.
171 * The config for an indirect vdev includes several fields, which are
179 * vdev_indirect_mapping_phys_t. This object is allocated when a vdev
182 * Note that this object can be empty if none of the data on the vdev
192 * is allocated when a vdev removal is initiated.
194 * Note that this object can be empty if none of the vdev has yet been
200 * This is the vdev I
209 struct vdev { struct
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddbuf.c50 #include <sys/vdev.h>
3907 dbuf_remap_impl_callback(uint64_t vdev, uint64_t offset, uint64_t size, argument
3918 spa_vdev_indirect_mark_obsolete(spa, vdev, offset, size, tx);
3920 dsl_dataset_block_remapped(dmu_objset_ds(os), vdev, offset, local
H A Dvdev.c75 /* maximum scrub/resilver I/O queue per leaf vdev */
78 /* default target for number of metaslabs per top-level vdev */
81 /* minimum number of metaslabs per top-level vdev */
84 /* practical upper limit of total metaslabs per top-level vdev */
96 * Since the DTL space map of a vdev is not expected to have a lot of
108 * vdev-wide space maps that have lots of entries written to them at
128 zfs_dbgmsg("%s vdev '%s': %s", vd->vdev_ops->vdev_op_type,
131 zfs_dbgmsg("%s-%llu vdev (guid %llu): %s",
190 * Given a vdev type, return the appropriate ops vector.
206 * String origin is either the per-vdev za
295 vdev_lookup_top(spa_t *spa, uint64_t vdev) argument
[all...]
H A Ddsl_dataset.c50 #include <sys/vdev.h>
166 * longer referenced in the head dataset. The vdev must be indirect.
172 dsl_dataset_block_remapped(dsl_dataset_t *ds, uint64_t vdev, uint64_t offset, argument
182 spa_vdev_indirect_mark_obsolete(spa, vdev, offset, size, tx);
197 DVA_SET_VDEV(dva, vdev);
H A Ddsl_scan.c140 * Maximum number of parallelly executing I/Os per top-level vdev.
150 * Maximum number of parallelly executed bytes per leaf vdev. We attempt
151 * to strike a balance here between keeping the vdev queues full of I/Os
294 vdev_t *q_vd; /* top-level vdev that this queue represents */
807 * Purge all vdev caches and probe all devices. We do this here
2454 * that can add scan_io_t's to the vdev scan queues from
2987 * punches out one thread per top-level vdev, each of which processes
2988 * only that vdev's scan queue. We can parallelize the I/O here because
2989 * we know that each queue's io's only affect its own top-level vdev.
3184 * The indirect vdev ca
3803 vdev_t *vdev; local
4111 vdev_t *vdev; local
[all...]
H A Dmetaslab.c119 * Empirically, we've seen that our vdev selection for allocations is
836 * because we're done, and possibly removing the vdev.
930 * allocations from taking place and any changes to the vdev tree.
1221 * to one vdev, that looks a bit better at the moment.
2265 * if this is a new metaslab of a vdev that just got
2510 metaslab_calculate_range_tree_type(vdev_t *vdev, metaslab_t *msp, argument
2513 if (vdev->vdev_ms_shift - vdev->vdev_ashift < 32 &&
2515 *shift = vdev->vdev_ashift;
3537 zfs_dbgmsg("condensing: txg %llu, msp[%llu] %p, vdev i
4450 metaslab_group_alloc_increment(spa_t *spa, uint64_t vdev, void *tag, int flags, int allocator) argument
4481 metaslab_group_alloc_decrement(spa_t *spa, uint64_t vdev, void *tag, int flags, int allocator, boolean_t io_complete) argument
4506 uint64_t vdev = DVA_GET_VDEV(&dva[d]); local
5434 uint64_t vdev = DVA_GET_VDEV(dva); local
5484 uint64_t vdev = DVA_GET_VDEV(dva); local
5673 uint64_t vdev = DVA_GET_VDEV(dva); local
5896 uint64_t vdev = DVA_GET_VDEV(&bp->blk_dva[i]); local
[all...]
H A Dspa.c179 * to get the vdev stats associated with the imported devices.
184 * For debugging purposes: print out vdev tree during pool import.
195 * With 1 missing vdev we should be able to import the pool and mount all
590 * Make sure the vdev config is bootable
875 * the root vdev's guid, our own pool guid, and then mark all of our
1207 offsetof(struct vdev, vdev_txg_node));
1314 * Verify a pool configuration, and construct the vdev tree appropriately. This
1315 * will create all the necessary vdevs in the appropriate layout, with each vdev
1317 * All vdev validation is done by the vdev_alloc() routine.
1636 * for basic validation purposes) and one in the active vdev
2267 spa_vdev_err(vdev_t *vdev, vdev_aux_t aux, int err) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c239 " %010llx-%010llx size: %06llx vdev: %06llu words: %llu\n",
1356 * -v Print vdev state
1357 * -e Print vdev error stats
1358 * -m Print vdev metaslab info
1359 * -M print vdev metaslab group info
1685 * ::vdev
1694 * With '-e', the statistics associated with the vdev are printed as well.
1872 mdb_warn("failed to read vdev children at %p", vd.vdev_child);
2030 mdb_vdev_t vdev; local
2033 if (mdb_ctf_vread(&vdev, "vdev_
[all...]
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c46 #include <sys/vdev.h>
143 "[-U <cache>]\n\t\t<poolname> [<vdev> [<metaslab> ...]]\n"
146 "\t\t<poolname> <vdev>:<offset>:<size>[:<flags>]\n"
200 "-e to specify path to vdev dir\n");
869 " %010llx-%010llx size: %06llx vdev: %06llu words: %u\n",
1120 (void) fatal("bad vdev id: %llu", (u_longlong_t)c);
3144 /* test if two DVA offsets from same vdev are within the same metaslab */
3146 same_metaslab(spa_t *spa, uint64_t vdev, uint64_t off1, uint64_t off2) argument
3148 vdev_t *vd = vdev_lookup_top(spa, vdev);
3408 (void) printf("leaked space: vdev
5611 zdb_vdev_lookup(vdev_t *vdev, const char *path) argument
5698 const char *s, *vdev; local
[all...]

Completed in 160 milliseconds

12