/illumos-gate/usr/src/test/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy.kshlib | 110 vdevs="$vdevs $BASEDIR/vdev$i" 253 typeset vdev 254 for vdev in $@; do 255 log_must mkfile $MINVDEVSIZE $vdev 256 log_must zpool replace -f $pool $vdev $vdev
|
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 51 * 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/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_006_pos.ksh | 61 log_must mkfile $MINVDEVSIZE $mntpnt/vdev$i 63 eval vdev$i=$mntpnt/vdev$i
|
/illumos-gate/usr/src/cmd/ztest/ |
H A D | zloop.bash | 46 " vdev files, and core file (if one exists) are moved to the\n" \ 53 " -f Specify working directory for ztest vdev files.\n" \ 76 or_die /bin/mkdir $dest/vdev 82 or_die /bin/mv $workdir/ztest* $dest/vdev/ 83 or_die /bin/mv $workdir/zpool.cache $dest/vdev/
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | libi386.h | 91 int i386_getdev(void **vdev, const char *devspec, const char **path); 92 char *i386_fmtdev(void *vdev);
|
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/ |
H A D | devicename.c | 44 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/zfs/ |
H A D | zfs.c | 372 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...] |
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xpvd.c | 731 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...] |
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | llib-lzpool | 45 #include <sys/vdev.h>
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_clear/ |
H A D | zpool_clear_001_pos.ksh | 75 function check_err # <pool> [<vdev>] 139 typeset vdev="$@" 141 log_must zpool create -f $TESTPOOL1 $vdev 158 #Make errors to the testing pool by overwrite the vdev device with 160 #may cause the system panic. So, we should skip the vdev label space.
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | zfsimpl.h | 199 * vdev virtual device ID 740 * The persistent vdev state is stored as separate values rather than a single 775 * vdev states are ordered from least to most healthy. 776 * A vdev that's CANT_OPEN or below is considered unusable. 779 VDEV_STATE_UNKNOWN = 0, /* Uninitialized vdev */ 785 VDEV_STATE_DEGRADED, /* Replicated vdev with unhealthy kids */ 790 * vdev aux states. When a vdev is in the CANT_OPEN state, the aux field 791 * of the vdev stats structure uses these constants to distinguish why. 798 VDEV_AUX_BAD_GUID_SUM, /* vdev gui 1483 typedef struct vdev { struct [all...] |
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 48 * 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 D | zpool_main.c | 204 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/cmd/mdb/common/modules/zfs/ |
H A D | zfs.c | 1152 * -v Print vdev state 1153 * -e Print vdev error stats 1154 * -m Print vdev metaslab info 1155 * -M print vdev metaslab group info 1335 mdb_vdev_t vdev; local 1338 if (mdb_ctf_vread(&vdev, "vdev_t", "mdb_vdev_t", 1340 mdb_warn("failed to read vdev at %p\n", addr); 1348 vdev_ms = mdb_alloc(vdev.vdev_ms_count * sizeof (void *), 1350 if (mdb_vread(vdev_ms, vdev.vdev_ms_count * sizeof (void *), 1351 (uintptr_t)vdev 1435 vdev_t vdev; local 1762 mdb_vdev_t vdev; local [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | vdev_impl.h | 34 #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...] |
H A D | metaslab_impl.h | 36 #include <sys/vdev.h> 134 * Each top-level vdev is associated with a metaslab group which defines 135 * the allocatable region for that vdev. Examples of these categories include 195 * of a top-level vdev. They are linked togther to form a circular linked
|
H A D | vdev.h | 61 extern vdev_t *vdev_lookup_top(spa_t *spa, uint64_t vdev);
|
H A D | spa_impl.h | 33 #include <sys/vdev.h> 121 AVZ_ACTION_DESTROY, /* Destroy all per-vdev ZAPs and the AVZ. */ 158 txg_list_t spa_vdev_txg_list; /* per-txg dirty vdev list */ 159 vdev_t *spa_root_vdev; /* top-level vdev container */ 219 vdev_t *spa_pending_vdev; /* pending vdev additions */
|
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | xvdi.c | 252 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/lib/libzfs_jni/common/ |
H A D | libzfs_jni_main.c | 331 jobject vdev = NULL; local 345 vdev = zjni_get_VirtualDevice_from_vdev( 353 return (vdev);
|
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/ |
H A D | zfs_module.c | 44 vdev_read(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes) argument
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | metaslab.c | 603 * 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...] |
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 43 #include <sys/vdev.h> 128 "poolname [vdev [metaslab...]]\n" 130 "vdev:offset:size[:flags]\n" 175 "-e to specify path to vdev dir\n"); 867 (void) fatal("bad vdev id: %llu", (u_longlong_t)c); 2517 (void) printf("leaked space: vdev %llu, offset 0x%llx, size %llu\n", 2600 "vdev %llu of %llu, " 2832 (void) printf("\tDittoed blocks on same vdev: %llu\n", 3206 * RAID-Zs, you can specify either RAID-Z vdev with 0.0 or 0.1 . 3209 zdb_vdev_lookup(vdev_t *vdev, cha argument 3288 char *s, *p, *dup, *vdev, *flagstr; local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 1429 * 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/cmd/zhack/ |
H A D | zhack.c | 43 #include <sys/vdev.h>
|