Home
last modified time | relevance | path

Searched refs:vdev (Results 1 – 25 of 124) sorted by relevance

12345

/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/
H A Dzpool_split_vdevs.ksh74 vdev='' ;;
76 vdev='mirror';;
78 vdev='raidz1';;
80 vdev='raidz2';;
82 vdev='raidz3';;
84 vdev='spare';;
86 vdev='log';;
88 vdev='log mirror';;
90 vdev='cache';;
92 vdev='special mirror';;
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_001_pos.ksh73 typeset vdev
83 for vdev in "${poolarray[@]}"; do
87 log_must vdevs_in_pool "$TESTPOOL" "$vdev"
93 for vdev in "${mirrorarray[@]}"; do
97 log_must zpool add "$TESTPOOL" ${keywords[i]} $vdev
98 log_must vdevs_in_pool "$TESTPOOL" "$vdev"
104 for vdev in "${raidzarray[@]}"; do
108 log_must zpool add "$TESTPOOL" ${keywords[i]} $vdev
109 log_must vdevs_in_pool "$TESTPOOL" "$vdev"
115 for vdev in "${draidarray[@]}"; do
[all …]
/freebsd-13.1/tests/sys/cddl/zfs/tests/cli_root/zpool_add/
H A Dzpool_add_001_pos.ksh80 typeset vdev
88 for vdev in "${poolarray[@]}"; do
92 $vdev
93 log_must iscontained "$TESTPOOL" "$vdev"
99 for vdev in "${mirrorarray[@]}"; do
104 $vdev
105 log_must iscontained "$TESTPOOL" "$vdev"
111 for vdev in "${raidzarray[@]}"; do
116 $vdev
117 log_must iscontained "$TESTPOOL" "$vdev"
H A Dzpool_add.kshlib46 typeset vdev
55 for vdev in $@; do
58 vdev=${vdev#/dev/}
61 vdevname=$vdev >/dev/null 2>&1
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/trim/
H A Dtrim.kshlib36 typeset vdev="${3}"
42 rval=$(zpool iostat -pr $pool $vdev | awk \
47 rval=$(zpool iostat -pr $pool $vdev | awk \
65 typeset vdev="${4}"
68 ios=$(get_trim_io $pool $type $vdev)
112 for vdev in $vdevs; do
113 typeset size=$(get_size_mb $vdev)
115 log_note "Success $vdev is $size MB which is $tgt_op" \
118 log_fail "Failure $vdev is $size MB which is not" \
/freebsd-13.1/stand/libsa/zfs/
H A Dzfsimpl.c254 rc = vdev->v_phys_read(vdev, vdev->v_priv, offset, buf, psize); in vdev_read_phys()
269 return (vdev->v_phys_write(vdev, offset, buf, size)); in vdev_write_phys()
851 vdev_t *vdev; in vdev_find() local
863 vdev_t *vdev; in vdev_create() local
930 vdev_t *vdev; in vdev_init() local
1239 vdev_t *vdev; in vdev_update_from_nvlist() local
1469 ret = print_state(indent, vdev->v_name, vdev->v_state); in vdev_status()
1724 vdev->v_name ? vdev->v_name : "unknown", l, rc); in vdev_write_bootenv_impl()
2138 if (vdev && vdev->v_phys_read) { in vdev_probe()
2294 if (!vdev || !vdev->v_read) in zio_read()
[all …]
H A Dzfs.c569 fd = (uintptr_t)vdev->v_priv; in vdev_write()
774 zfs_get_bootenv(void *vdev, nvlist_t **benvp) in zfs_get_bootenv() argument
811 zfs_set_bootenv(void *vdev, nvlist_t *benv) in zfs_set_bootenv() argument
842 if ((rv = zfs_get_bootenv(vdev, &benv)) != 0) in zfs_get_bootonce()
855 (void) zfs_set_bootenv(vdev, benv); in zfs_get_bootonce()
1068 rv = zfs_nvstore_setenv(vdev, in zfs_nvstore_setter()
1442 rv = cb(vdev, nvh); in zfs_nvstore_iterate()
1459 zfs_attach_nvstore(void *vdev) in zfs_attach_nvstore() argument
1461 struct zfs_devdesc *dev = vdev; in zfs_attach_nvstore()
1482 memcpy(dev, vdev, sizeof (*dev)); in zfs_attach_nvstore()
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import.kshlib176 typeset vdev=$1
184 echo $vdev | egrep -qE \
187 vdev=$word
192 [[ $vdev == "logs" ]] && echo "log" && return 0
196 echo $vdev
231 typeset vdev=$(echo "$line" | awk '{printf $1}')
232 if ( ! $began ) && [[ $vdev == NAME ]]; then
236 ( $began ) && [[ -z $vdev ]] && break;
239 [[ -z $actual ]] && actual="$vdev" && continue
240 vdev=$(_translate_vdev $vdev)
[all …]
/freebsd-13.1/tests/sys/cddl/zfs/tests/redundancy/
H A Dredundancy.kshlib168 typeset vdev
169 for vdev in $@; do
170 [ ! -f $vdev ] && log_must create_vdevs $vdev
171 log_must $ZPOOL replace -f $pool $vdev $vdev
186 for vdev in $*; do
187 check_state $pool $vdev UNAVAIL && continue
188 log_must create_vdevs $vdev
273 for vdev in $vdevs; do
274 wait_for 20 1 check_state $pool $vdev UNAVAIL
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount.kshlib55 typeset vdev=$6
67 if [[ $vdev != "" && \
68 $vdev != "mirror" && \
69 $vdev != "raidz" && \
70 $vdev != "draid" ]] ; then
72 log_note "Wrong vdev: (\"$vdev\")"
77 create_pool $pool $vdev $disklist
H A Dzfs_mount_014_neg.ksh28 vdev=${vdevs[0]}
36 log_must force_unmount $vdev
50 log_mustnot ${helper},abc $vdev $mntpoint
65 log_mustnot $helper $vdev
/freebsd-13.1/cddl/usr.sbin/zfsd/
H A Dzfsd_event.cc211 Vdev vdev(devLabel); in ReadLabel() local
212 degraded = vdev.State() != VDEV_STATE_HEALTHY; in ReadLabel()
240 Vdev vdev(devConfig); in OnlineByLabel() local
242 vdev.GUID())); in OnlineByLabel()
354 Vdev vdev(zpl.front(), vdevConfig); in Process() local
355 caseFile = &CaseFile::Create(vdev); in Process()
361 msg << vdev.GUID() << ") "; in Process()
444 ZfsEvent::TryDetach(Vdev &vdev, void *cbArg) in TryDetach() argument
453 if (vdev.IsSpare()) { in TryDetach()
458 Vdev parent = vdev.Parent(); in TryDetach()
[all …]
H A Dzfsd_exception.cc121 Vdev vdev(m_poolConfig, m_vdevConfig); in Log() local
123 output << "Vdev " << vdev.GUID() << ": "; in Log()
125 Vdev vdev(m_vdevConfig); in Log() local
127 output << "Pool " << vdev.PoolGUID() << ": "; in Log()
128 output << "Vdev " << vdev.GUID() << ": "; in Log()
/freebsd-13.1/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/
H A Dzfs_mount.kshlib55 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
/freebsd-13.1/tools/tools/zfsboottest/
H A Dzfsboottest.sh67 for vdev in `zpool status "${pool}" | grep ONLINE | awk '{print $1}'`; do
68 vdev="/dev/${vdev#/dev/}"
69 if [ -c "${vdev}" ]; then
71 vdevs="${vdev}"
73 vdevs="${vdevs} ${vdev}"
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_decompress.ksh84 vdev=$(echo "$dva" |awk '{split($0,array,":")} END{print array[1]}')
86 output=$(zdb -R $TESTPOOL $vdev:$offset:$size_str:d 2> /dev/null)
90 output=$(zdb -R $TESTPOOL $vdev:$offset:$size_str:dr 2> /dev/null)
94 output=$(zdb -R $TESTPOOL $vdev:$offset:$size_str:dr 2> /dev/null)
102 output=$(zdb -R $TESTPOOL $vdev:$offset:$lsize:dr 2> /dev/null)
109 output=$(zdb -R $TESTPOOL $vdev:$offset:$psize:dr 2> /dev/null)
/freebsd-13.1/tests/sys/cddl/zfs/tests/cli_root/zpool_export/
H A Dzpool_export_004_pos.ksh77 if [[ -e $mntpnt/vdev$i ]]; then
78 log_must $RM -f $mntpnt/vdev$i
94 log_must create_vdevs $mntpnt/vdev$i
95 eval vdev$i=$mntpnt/vdev$i
/freebsd-13.1/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dvdev_attach-led.sh45 vdev=""
89 zed_log_msg "vdev $vdev set '$file' LED to $val"
188 while read -r vdev state _ _ _ therest; do
212 zed_log_msg "vdev $vdev '$led_path' doesn't exist"
233 vdev=$(basename "$ZEVENT_VDEV_PATH")
H A Dvdev_clear-led.sh45 vdev=""
89 zed_log_msg "vdev $vdev set '$file' LED to $val"
188 while read -r vdev state _ _ _ therest; do
212 zed_log_msg "vdev $vdev '$led_path' doesn't exist"
233 vdev=$(basename "$ZEVENT_VDEV_PATH")
H A Dpool_import-led.sh45 vdev=""
89 zed_log_msg "vdev $vdev set '$file' LED to $val"
188 while read -r vdev state _ _ _ therest; do
212 zed_log_msg "vdev $vdev '$led_path' doesn't exist"
233 vdev=$(basename "$ZEVENT_VDEV_PATH")
H A Dstatechange-led.sh45 vdev=""
89 zed_log_msg "vdev $vdev set '$file' LED to $val"
188 while read -r vdev state _ _ _ therest; do
212 zed_log_msg "vdev $vdev '$led_path' doesn't exist"
233 vdev=$(basename "$ZEVENT_VDEV_PATH")
/freebsd-13.1/stand/userboot/userboot/
H A Ddevicename.c50 userboot_getdev(void **vdev, const char *devspec, const char **path) in userboot_getdev() argument
52 struct disk_devdesc **dev = (struct disk_devdesc **)vdev; in userboot_getdev()
180 userboot_fmtdev(void *vdev) in userboot_fmtdev() argument
182 struct devdesc *dev = (struct devdesc *)vdev; in userboot_fmtdev()
195 return (disk_fmtdev(vdev)); in userboot_fmtdev()
203 return (zfs_fmtdev(vdev)); in userboot_fmtdev()
/freebsd-13.1/stand/i386/libi386/
H A Ddevicename.c45 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()
192 return (disk_fmtdev(vdev)); in i386_fmtdev()
195 return(zfs_fmtdev(vdev)); in i386_fmtdev()
/freebsd-13.1/tests/sys/cddl/zfs/tests/cachefile/
H A Dcachefile_004_pos.ksh74 if [[ -e $mntpnt/vdev$i ]]; then
75 log_must $RM -f $mntpnt/vdev$i
98 log_must create_vdevs $mntpnt/vdev$i
99 eval vdev$i=$mntpnt/vdev$i
/freebsd-13.1/sys/contrib/openzfs/tests/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

12345