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.c137 find_vdev_problem(nvlist_t *vdev, int (*func)(uint64_t, uint64_t, uint64_t)) argument
145 * Ignore problems within a 'replacing' vdev, since we're presumably in
150 verify(nvlist_lookup_string(vdev, ZPOOL_CONFIG_TYPE, &type) == 0);
154 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_CHILDREN, &child,
160 verify(nvlist_lookup_uint64_array(vdev, ZPOOL_CONFIG_VDEV_STATS,
173 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_L2CACHE, &child,
225 * Currently resilvering a vdev
H A Dlibzfs_pool.c153 * vdev's guid then get it from the zhp config nvlist.
1145 * Check if vdev list contains a special vdev
1169 * Create the named pool, using the provided vdev list. It is assumed
1221 "%s property requires a special vdev"),
1421 * necessary verification to ensure that the vdev specification is well-formed.
2032 * Translate vdev names to guids. If a vdev_path is determined to be
2033 * unsuitable then a vd_errlist is allocated and the vdev path and errno
2364 * Find a vdev that matches the search criteria specified. We use the
2414 * - 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.c421 nvlist_t *vdev, uint64_t *p_vdev_id, VirtualDeviceBean_t *bean)
430 result = populate_DeviceStatsBean(env, vdev, stats, object);
440 /* Set parent vdev index */
447 result = nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_GUID, &vdev_id);
463 nvlist_t *vdev, uint64_t *p_vdev_id, LeafVirtualDeviceBean_t *bean)
466 env, zhp, vdev, p_vdev_id, (VirtualDeviceBean_t *)bean));
471 nvlist_t *vdev, uint64_t *p_vdev_id, DiskVirtualDeviceBean_t *bean)
475 env, zhp, vdev, p_vdev_id, (LeafVirtualDeviceBean_t *)bean);
483 result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
542 nvlist_t *vdev, uint64_
420 populate_VirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, VirtualDeviceBean_t *bean) argument
462 populate_LeafVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, LeafVirtualDeviceBean_t *bean) argument
470 populate_DiskVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, DiskVirtualDeviceBean_t *bean) argument
541 populate_SliceVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, SliceVirtualDeviceBean_t *bean) argument
571 populate_FileVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, FileVirtualDeviceBean_t *bean) argument
600 populate_RAIDVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, RAIDVirtualDeviceBean_t *bean) argument
608 populate_MirrorVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id, MirrorVirtualDeviceBean_t *bean) argument
635 create_DiskVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
656 create_SliceVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
677 create_FileVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
698 create_RAIDVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
735 create_MirrorVirtualDeviceBean(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
939 zjni_get_VirtualDevice_from_vdev(JNIEnv *env, zpool_handle_t *zhp, nvlist_t *vdev, uint64_t *p_vdev_id) argument
1068 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.
140 * Given a (pool, vdev) GUID pair, find the matching pool and vdev.
151 * Find the corresponding pool and make sure the vdev still exists.
201 * Given a FRU FMRI, find the matching pool and vdev.
218 * Given a vdev, attempt to replace it with every known spare until one
222 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) argument
253 dev_name = zpool_vdev_name(NULL, zhp, vdev, B_FALSE);
284 * Repair this vdev i
380 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.c739 int *domain, *vdev; local
754 * Use "domain" and "vdev" properties (backend drivers).
758 DDI_PROP_DONTPASS, "vdev", &vdev, &nvdev)
765 (void) snprintf(addr, addrlen, "%d,%d", domain[0], vdev[0]);
766 ddi_prop_free(vdev);
773 * Use "vdev" and "unit-address" properties (frontend/softdev drivers).
774 * At boot time, only the vdev property is available on xdf disks.
779 DDI_PROP_DONTPASS, "vdev", &vdev,
940 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,
815 zfs_fmtdev(void *vdev) argument
819 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.
474 vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, argument
480 if (!vdev->v_phys_read)
490 rc = vdev->v_phys_read(vdev, vdev->v_read_priv, offset, buf, psize);
494 return (zio_checksum_verify(vdev
772 vdev_lookup_top(spa_t *spa, uint64_t vdev) argument
929 vdev_indirect_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1016 vdev_disk_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1026 vdev_mirror_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1045 vdev_replacing_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1068 vdev_t *vdev; local
1080 vdev_t *vdev; local
1105 vdev_t *vdev, *kid; local
1282 vdev_set_state(vdev_t *vdev) argument
1355 vdev_t *vdev; local
1433 vdev_status(vdev_t *vdev, int indent) argument
1460 vdev_t *vdev; local
1698 vdev_t *vdev, *top_vdev, *pool_vdev; local
1960 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
87 * For any given vdev specification, we can have multiple errors. The
101 (void) fprintf(stderr, gettext("invalid vdev specification\n"));
383 * Create a leaf vdev. Determine if this is a file or a device. If it's a
385 * leaf vdev are:
396 nvlist_t *vdev = NULL; local
402 * Determine what type of vdev this is, and put the full path into
470 * acceptable to use. Construct the nvlist to describe this vdev. All
473 verify(nvlist_alloc(&vdev, NV_UNIQUE_NAM
[all...]
H A Dzpool_main.c233 "<pool> <vdev> ...\n"));
244 "<pool> <vdev> ...\n"));
270 return (gettext("\tlabelclear [-f] <vdev>\n"));
432 * print a pool vdev config for dry runs
577 * zpool add [-fgLnP] [-o property=value] <pool> <vdev> ...
580 * -g Display guid for individual vdev name.
581 * -L Follow links when resolving vdev path name.
584 * -P Display full path for vdev name.
655 (void) fprintf(stderr, gettext("missing vdev specification\n"));
745 * zpool remove <pool> <vdev>
853 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.h38 #include <sys/vdev.h>
87 * Given a target vdev, translates the logical range "in" to the physical
164 * On-disk indirect vdev state.
166 * An indirect vdev is described exclusively in the MOS config of a pool.
167 * The config for an indirect vdev includes several fields, which are
175 * vdev_indirect_mapping_phys_t. This object is allocated when a vdev
178 * Note that this object can be empty if none of the data on the vdev
188 * is allocated when a vdev removal is initiated.
190 * Note that this object can be empty if none of the vdev has yet been
196 * This is the vdev I
205 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.c74 /* maximum scrub/resilver I/O queue per leaf vdev */
77 /* default target for number of metaslabs per top-level vdev */
80 /* minimum number of metaslabs per top-level vdev */
83 /* practical upper limit of total metaslabs per top-level vdev */
95 * Since the DTL space map of a vdev is not expected to have a lot of
101 * vdev-wide space maps that have lots of entries written to them at
121 zfs_dbgmsg("%s vdev '%s': %s", vd->vdev_ops->vdev_op_type,
124 zfs_dbgmsg("%s-%llu vdev (guid %llu): %s",
183 * Given a vdev type, return the appropriate ops vector.
199 * String origin is either the per-vdev za
288 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 */
784 * Purge all vdev caches and probe all devices. We do this here
2461 * that can add scan_io_t's to the vdev scan queues from
2975 * punches out one thread per top-level vdev, each of which processes
2976 * only that vdev's scan queue. We can parallelize the I/O here because
2977 * we know that each queue's io's only affect its own top-level vdev.
3172 * The indirect vdev ca
3791 vdev_t *vdev; local
4099 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.c178 * to get the vdev stats associated with the imported devices.
183 * For debugging purposes: print out vdev tree during pool import.
194 * With 1 missing vdev we should be able to import the pool and mount all
582 * Make sure the vdev config is bootable
867 * the root vdev's guid, our own pool guid, and then mark all of our
1199 offsetof(struct vdev, vdev_txg_node));
1306 * Verify a pool configuration, and construct the vdev tree appropriately. This
1307 * will create all the necessary vdevs in the appropriate layout, with each vdev
1309 * All vdev validation is done by the vdev_alloc() routine.
1627 * for basic validation purposes) and one in the active vdev
2258 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",
1336 * -v Print vdev state
1337 * -e Print vdev error stats
1338 * -m Print vdev metaslab info
1339 * -M print vdev metaslab group info
1665 * ::vdev
1674 * With '-e', the statistics associated with the vdev are printed as well.
1852 mdb_warn("failed to read vdev children at %p", vd.vdev_child);
2010 mdb_vdev_t vdev; local
2013 if (mdb_ctf_vread(&vdev, "vdev_
[all...]
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c46 #include <sys/vdev.h>
140 "[-U <cache>]\n\t\t<poolname> [<vdev> [<metaslab> ...]]\n"
143 "\t\t<poolname> <vdev>:<offset>:<size>[:<flags>]\n"
197 "-e to specify path to vdev dir\n");
866 " %010llx-%010llx size: %06llx vdev: %06llu words: %u\n",
1117 (void) fatal("bad vdev id: %llu", (u_longlong_t)c);
2941 /* test if two DVA offsets from same vdev are within the same metaslab */
2943 same_metaslab(spa_t *spa, uint64_t vdev, uint64_t off1, uint64_t off2) argument
2945 vdev_t *vd = vdev_lookup_top(spa, vdev);
3205 (void) printf("leaked space: vdev
5408 zdb_vdev_lookup(vdev_t *vdev, const char *path) argument
5495 const char *s, *vdev; local
[all...]

Completed in 447 milliseconds

12