| /titanic_53/usr/src/boot/sys/boot/zfs/ |
| H A D | zfsimpl.c | 404 vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_read_phys() argument 410 if (!vdev->v_phys_read) in vdev_read_phys() 420 rc = vdev->v_phys_read(vdev, vdev->v_read_priv, offset, buf, psize); in vdev_read_phys() 430 vdev_disk_read(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_disk_read() argument 434 return (vdev_read_phys(vdev, bp, buf, in vdev_disk_read() 440 vdev_mirror_read(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_mirror_read() argument 447 STAILQ_FOREACH(kid, &vdev->v_children, v_childlink) { in vdev_mirror_read() 459 vdev_replacing_read(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_replacing_read() argument 471 kid = STAILQ_FIRST(&vdev->v_children); in vdev_replacing_read() 482 vdev_t *vdev; in vdev_find() local [all …]
|
| H A D | zfs.c | 370 vdev_read(vdev_t *vdev, void *priv, off_t offset, void *buf, size_t bytes) in vdev_read() argument 715 vdev_t *vdev; in zfs_bootfs() local 737 STAILQ_FOREACH(vdev, &spa->spa_vdevs, v_childlink) { in zfs_bootfs() 738 STAILQ_FOREACH(kid, &vdev->v_children, v_childlink) { in zfs_bootfs() 746 vdev = kid; in zfs_bootfs() 749 if (vdev->v_state == VDEV_STATE_HEALTHY && in zfs_bootfs() 750 vdev->v_phys_path != NULL) { in zfs_bootfs() 764 if (vdev->v_phys_path != NULL) in zfs_bootfs() 765 setenv("bootpath", vdev->v_phys_path, 1); in zfs_bootfs() 766 if (vdev->v_devid != NULL) in zfs_bootfs() [all …]
|
| H A D | libzfs.h | 62 char *zfs_bootfs(void *vdev); 63 char *zfs_fmtdev(void *vdev);
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/ |
| H A D | zpool_add_001_pos.ksh | 84 typeset vdev 92 for vdev in "${poolarray[@]}"; do 95 log_must $ZPOOL add -f "$TESTPOOL" ${keywords[i]} $vdev 96 log_must vdevs_in_pool "$TESTPOOL" "$vdev" 102 for vdev in "${mirrorarray[@]}"; do 106 log_must $ZPOOL add "$TESTPOOL" ${keywords[i]} $vdev 107 log_must vdevs_in_pool "$TESTPOOL" "$vdev" 113 for vdev in "${raidzarray[@]}"; do 117 log_must $ZPOOL add "$TESTPOOL" ${keywords[i]} $vdev 118 log_must vdevs_in_pool "$TESTPOOL" "$vdev"
|
| /titanic_53/usr/src/lib/libzfs_jni/common/ |
| H A D | libzfs_jni_pool.c | 420 nvlist_t *vdev, uint64_t *p_vdev_id, VirtualDeviceBean_t *bean) in populate_VirtualDeviceBean() argument 429 result = populate_DeviceStatsBean(env, vdev, stats, object); in populate_VirtualDeviceBean() 446 result = nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_GUID, &vdev_id); in populate_VirtualDeviceBean() 462 nvlist_t *vdev, uint64_t *p_vdev_id, LeafVirtualDeviceBean_t *bean) in populate_LeafVirtualDeviceBean() argument 465 env, zhp, vdev, p_vdev_id, (VirtualDeviceBean_t *)bean)); in populate_LeafVirtualDeviceBean() 470 nvlist_t *vdev, uint64_t *p_vdev_id, DiskVirtualDeviceBean_t *bean) in populate_DiskVirtualDeviceBean() argument 474 env, zhp, vdev, p_vdev_id, (LeafVirtualDeviceBean_t *)bean); in populate_DiskVirtualDeviceBean() 482 result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path); in populate_DiskVirtualDeviceBean() 541 nvlist_t *vdev, uint64_t *p_vdev_id, SliceVirtualDeviceBean_t *bean) in populate_SliceVirtualDeviceBean() argument 545 env, zhp, vdev, p_vdev_id, (LeafVirtualDeviceBean_t *)bean); in populate_SliceVirtualDeviceBean() [all …]
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/ |
| H A D | zfs_mount.kshlib | 51 typeset vdev=$6 63 if [[ $vdev != "" && \ 64 $vdev != "mirror" && \ 65 $vdev != "raidz" ]] ; then 67 log_note "Wrong vdev: (\"$vdev\")" 72 create_pool $pool $vdev $disklist
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/ |
| H A D | zpool_export_004_pos.ksh | 57 if [[ -e $mntpnt/vdev$i ]]; then 58 log_must $RM -f $mntpnt/vdev$i 72 log_must $MKFILE 64M $mntpnt/vdev$i 73 eval vdev$i=$mntpnt/vdev$i
|
| /titanic_53/usr/src/boot/sys/boot/i386/libi386/ |
| H A D | devicename.c | 45 i386_getdev(void **vdev, const char *devspec, const char **path) in i386_getdev() argument 47 struct i386_devdesc **dev = (struct i386_devdesc **)vdev; in i386_getdev() 176 i386_fmtdev(void *vdev) in i386_fmtdev() argument 178 struct i386_devdesc *dev = (struct i386_devdesc *)vdev; in i386_fmtdev() 187 return (disk_fmtdev(vdev)); in i386_fmtdev() 190 return (zfs_fmtdev(vdev)); in i386_fmtdev()
|
| /titanic_53/usr/src/boot/sys/boot/userboot/userboot/ |
| H A D | devicename.c | 49 userboot_getdev(void **vdev, const char *devspec, const char **path) in userboot_getdev() argument 51 struct disk_devdesc **dev = (struct disk_devdesc **)vdev; in userboot_getdev() 177 userboot_fmtdev(void *vdev) in userboot_fmtdev() argument 179 struct disk_devdesc *dev = (struct disk_devdesc *)vdev; in userboot_fmtdev() 192 return (disk_fmtdev(vdev)); in userboot_fmtdev() 200 return (zfs_fmtdev(vdev)); in userboot_fmtdev()
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/cachefile/ |
| H A D | cachefile_004_pos.ksh | 61 if [[ -e $mntpnt/vdev$i ]]; then 62 log_must $RM -f $mntpnt/vdev$i 87 log_must $MKFILE 64M $mntpnt/vdev$i 88 eval vdev$i=$mntpnt/vdev$i
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
| H A D | zfs_send_007_pos.ksh | 44 $RM $vdev 52 vdev=$(mktemp /var/tmp/file.XXXXXX) 90 log_must $TRUNCATE --size=1G $vdev 91 log_must $ZPOOL create -o version=1 testpool $vdev 94 log_must $ZPOOL create -d testpool $vdev
|
| /titanic_53/usr/src/boot/sys/boot/uboot/lib/ |
| H A D | devicename.c | 46 uboot_getdev(void **vdev, const char *devspec, const char **path) in uboot_getdev() argument 48 struct uboot_devdesc **dev = (struct uboot_devdesc **)vdev; in uboot_getdev() 165 uboot_fmtdev(void *vdev) in uboot_fmtdev() argument 167 struct uboot_devdesc *dev = (struct uboot_devdesc *)vdev; in uboot_fmtdev() 177 return (disk_fmtdev(vdev)); in uboot_fmtdev()
|
| H A D | libuboot.h | 52 int uboot_getdev(void **vdev, const char *devspec, const char **path); 53 char *uboot_fmtdev(void *vdev);
|
| /titanic_53/usr/src/boot/sys/boot/efi/loader/ |
| H A D | devicename.c | 51 efi_getdev(void **vdev, const char *devspec, const char **path) in efi_getdev() argument 53 struct devdesc **dev = (struct devdesc **)vdev; in efi_getdev() 177 efi_fmtdev(void *vdev) in efi_fmtdev() argument 179 struct devdesc *dev = (struct devdesc *)vdev; in efi_fmtdev() 188 return (disk_fmtdev(vdev)); in efi_fmtdev()
|
| /titanic_53/usr/src/cmd/syseventd/modules/zfs_mod/ |
| H A D | zfs_mod.c | 149 zfs_process_add(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t isdisk) in zfs_process_add() argument 160 if (nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path) != 0) in zfs_process_add() 163 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_PHYS_PATH, &physpath); in zfs_process_add() 164 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_WHOLE_DISK, &wholedisk); in zfs_process_add() 165 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_OFFLINE, &offline); in zfs_process_add() 601 zfs_update_vdev_fru(zpool_handle_t *zhp, nvlist_t *vdev, boolean_t isdisk) in zfs_update_vdev_fru() argument 607 (void) nvlist_lookup_uint64(vdev, ZPOOL_CONFIG_GUID, &vdev_guid); in zfs_update_vdev_fru() 608 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_PHYS_PATH, &devpath); in zfs_update_vdev_fru() 609 (void) nvlist_lookup_string(vdev, ZPOOL_CONFIG_FRU, &oldfru); in zfs_update_vdev_fru() 651 nvlist_t *config, *vdev; in zfs_deliver_update() local [all …]
|
| /titanic_53/usr/src/cmd/fm/modules/common/zfs-retire/ |
| H A D | zfs_retire.c | 219 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) in replace_with_spare() argument 243 dev_name = zpool_vdev_name(NULL, zhp, vdev, B_FALSE); in replace_with_spare() 365 nvlist_t *vdev; in zfs_retire_recv() local 386 &vdev)) == NULL) in zfs_retire_recv() 390 replace_with_spare(hdl, zhp, vdev); in zfs_retire_recv() 471 zhp = find_by_fru(zhdl, fmri, &vdev); in zfs_retire_recv() 478 (void) nvlist_lookup_uint64(vdev, in zfs_retire_recv() 508 &vdev)) == NULL) in zfs_retire_recv() 545 replace_with_spare(hdl, zhp, vdev); in zfs_retire_recv()
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/redundancy/ |
| H A D | redundancy.kshlib | 253 typeset vdev 254 for vdev in $@; do 255 log_must $MKFILE $DEV_SIZE $vdev 256 log_must $ZPOOL replace -f $pool $vdev $vdev
|
| /titanic_53/usr/src/lib/libzfs/common/ |
| H A D | libzfs_status.c | 121 find_vdev_problem(nvlist_t *vdev, int (*func)(uint64_t, uint64_t, uint64_t)) in find_vdev_problem() argument 134 verify(nvlist_lookup_string(vdev, ZPOOL_CONFIG_TYPE, &type) == 0); in find_vdev_problem() 138 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_CHILDREN, &child, in find_vdev_problem() 144 verify(nvlist_lookup_uint64_array(vdev, ZPOOL_CONFIG_VDEV_STATS, in find_vdev_problem() 157 if (nvlist_lookup_nvlist_array(vdev, ZPOOL_CONFIG_L2CACHE, &child, in find_vdev_problem()
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
| H A D | zpool_create_006_pos.ksh | 57 log_must $MKFILE 64M $mntpnt/vdev$i 59 eval vdev$i=$mntpnt/vdev$i
|
| /titanic_53/usr/src/uts/common/xen/io/ |
| H A D | xpvd.c | 731 int *domain, *vdev; in xpvd_name_child() local 750 DDI_PROP_DONTPASS, "vdev", &vdev, &nvdev) in xpvd_name_child() 757 (void) snprintf(addr, addrlen, "%d,%d", domain[0], vdev[0]); in xpvd_name_child() 758 ddi_prop_free(vdev); in xpvd_name_child() 920 int vdev; in xpvd_bus_config() local 922 if (!i_xpvd_parse_devname(arg, &devclass, &dom, &vdev)) { in xpvd_bus_config() 927 *childp = xvdi_find_dev(parent, devclass, dom, vdev); in xpvd_bus_config() 929 *childp = xvdi_create_dev(parent, devclass, dom, vdev); in xpvd_bus_config()
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/slog/ |
| H A D | slog_013_pos.ksh | 87 log_must $MKFILE 100M $mntpnt/vdev 88 log_must $ZPOOL add $TESTPOOL $mntpnt/vdev
|
| /titanic_53/usr/src/test/zfs-tests/tests/functional/cli_root/zpool/ |
| H A D | zpool_002_pos.ksh | 67 for vdev in $vdev1 $vdev2 $vdev3; do 68 $MKFILE 64m $vdev
|
| /titanic_53/usr/src/cmd/mdb/common/modules/zfs/ |
| H A D | zfs.c | 1288 mdb_vdev_t vdev; in metaslab_stats() local 1291 if (mdb_ctf_vread(&vdev, "vdev_t", "mdb_vdev_t", in metaslab_stats() 1301 vdev_ms = mdb_alloc(vdev.vdev_ms_count * sizeof (void *), in metaslab_stats() 1303 if (mdb_vread(vdev_ms, vdev.vdev_ms_count * sizeof (void *), in metaslab_stats() 1304 (uintptr_t)vdev.vdev_ms) == -1) { in metaslab_stats() 1305 mdb_warn("failed to read vdev_ms at %p\n", vdev.vdev_ms); in metaslab_stats() 1309 for (int m = 0; m < vdev.vdev_ms_count; m++) { in metaslab_stats() 1388 vdev_t vdev; in do_print_vdev() local 1394 if (mdb_vread(&vdev, sizeof (vdev), (uintptr_t)addr) == -1) { in do_print_vdev() 1402 if (vdev.vdev_path != NULL) { in do_print_vdev() [all …]
|
| /titanic_53/usr/src/boot/sys/boot/ofw/libofw/ |
| H A D | devicename.c | 44 ofw_getdev(void **vdev, const char *devspec, const char **path) in ofw_getdev() argument 46 struct ofw_devdesc **dev = (struct ofw_devdesc **)vdev; in ofw_getdev()
|
| /titanic_53/usr/src/boot/sys/cddl/boot/zfs/ |
| H A D | zfsimpl.h | 1515 struct vdev; 1516 typedef int vdev_phys_read_t(struct vdev *vdev, void *priv, 1518 typedef int vdev_read_t(struct vdev *vdev, const blkptr_t *bp, 1521 typedef STAILQ_HEAD(vdev_list, vdev) vdev_list_t; 1523 typedef struct vdev { struct 1524 STAILQ_ENTRY(vdev) v_childlink; /* link in parent's child list */ 1525 STAILQ_ENTRY(vdev) v_alllink; /* link in global vdev list */ 1534 struct vdev *v_top; /* parent vdev */ argument
|