Searched refs:vdev (Results 1 - 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_file.h32 #include <sys/vdev.h>
H A Dvdev_raidz.h28 #include <sys/vdev.h>
H A Duberblock.h33 #include <sys/vdev.h>
H A Dvdev_disk.h31 #include <sys/vdev.h>
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_001_pos.ksh37 # 'zpool add <pool> <vdev> ...' can successfully add the specified
56 log_assert "'zpool add <pool> <vdev> ...' can add devices to the pool."
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 i
[all...]
H A Dzpool_add_010_pos.ksh63 log_must truncate -s $MINVDEVSIZE $mntpnt/vdev$i
65 eval vdev$i=$mntpnt/vdev$i
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount.kshlib48 function setup_filesystem #disklist #pool #fs #mntpoint #type #vdev
55 typeset vdev=$6
67 if [[ $vdev != "" && \
68 $vdev != "mirror" && \
69 $vdev != "raidz" ]] ; then
71 log_note "Wrong vdev: (\"$vdev\")"
76 create_pool $pool $vdev $disklist
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dlibzfs.h53 char *zfs_bootfs(void *vdev);
54 char *zfs_fmtdev(void *vdev);
H A Ddevicename_stubs.c42 zfs_fmtdev(void *vdev __unused)
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
912 vdev_indirect_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
999 vdev_disk_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1009 vdev_mirror_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1028 vdev_replacing_read(vdev_t *vdev, const blkptr_t *bp, void *buf, off_t offset, size_t bytes) argument
1051 vdev_t *vdev; local
1063 vdev_t *vdev; local
1088 vdev_t *vdev, *kid; local
1255 vdev_set_state(vdev_t *vdev) argument
1328 vdev_t *vdev; local
1406 vdev_status(vdev_t *vdev, int indent) argument
1427 vdev_t *vdev; local
1521 vdev_t *vdev, *top_vdev, *pool_vdev; local
1842 vdev_t *vdev; local
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/trim/
H A Dtrim.kshlib53 # Get trim counts for each vdev
158 for vdev in $vdevs; do
159 typeset size=$(get_size_mb $vdev)
161 log_note "Success $vdev is $size MB which is $tgt_op" \
164 log_fail "Failure $vdev is $size MB which is not" \
184 for vdev in $vdevs; do
185 if [[ "$(trim_progress $pool $vdev)" -lt "100" ]]; then
189 log_must eval "trim_prog_line $pool $vdev | \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_004_pos.ksh61 if [[ -e $mntpnt/vdev$i ]]; then
62 log_must rm -f $mntpnt/vdev$i
76 log_must mkfile $MINVDEVSIZE $mntpnt/vdev$i
77 eval vdev$i=$mntpnt/vdev$i
/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/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import.kshlib163 # Translate vdev names returned by zpool status into more generic names.
169 typeset vdev=$1
173 echo $vdev | egrep "^${word}-[0-9]+\$" > /dev/null
175 vdev=$word
180 [[ $vdev == "logs" ]] && echo "log" && return 0
181 [[ $vdev == "raidz1" ]] && echo "raidz" && return 0
183 echo $vdev
189 # configuration. Format for the check string is same as the vdev arguments for
218 typeset vdev=$(echo "$line" | awk '{printf $1}')
219 if ( ! $began ) && [[ $vdev
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/
H A Dcachefile_004_pos.ksh61 if [[ -e $mntpnt/vdev$i ]]; then
62 log_must rm -f $mntpnt/vdev$i
87 log_must mkfile $MINVDEVSIZE $mntpnt/vdev$i
88 eval vdev$i=$mntpnt/vdev$i
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_007_pos.ksh44 rm $vdev
52 vdev=$(mktemp /var/tmp/file.XXXXXX)
90 log_must truncate --size=1G $vdev
91 log_must zpool create -o version=1 tmp_pool $vdev
94 log_must zpool create -d tmp_pool $vdev
/illumos-gate/usr/src/lib/libzfs_jni/common/
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/test/zfs-tests/tests/functional/cli_root/zpool/
H A Dzpool_002_pos.ksh72 for vdev in $vdev1 $vdev2 $vdev3; do
73 mkfile $MINVDEVSIZE $vdev
/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/test/zfs-tests/tests/functional/cli_root/zpool_initialize/
H A Dzpool_initialize_unsupported_vdevs.ksh59 log_must mkfile $MINVDEVSIZE $TESTDIR/vdev$n
60 FDISKS+=("$TESTDIR/vdev$n")
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_trim/
H A Dzpool_trim_unsupported_vdevs.ksh55 log_must mkfile $MINVDEVSIZE $TESTDIR/vdev$n
56 FDISKS+=("$TESTDIR/vdev$n")
/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/test/zfs-tests/tests/functional/redundancy/
H A Dredundancy.kshlib110 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 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/cmd/ztest/
H A Dzloop.bash46 " 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/

Completed in 253 milliseconds

123