003 File Manager
Current Path:
/usr/src/tools/regression/zfs/zpool/add
usr
/
src
/
tools
/
regression
/
zfs
/
zpool
/
add
/
📁
..
📄
cache.t
(4.02 KB)
📄
disks.t
(1.72 KB)
📄
doesnt_exist.t
(357 B)
📄
files.t
(7.71 KB)
📄
log.t
(10.1 KB)
📄
mirror.t
(3 KB)
📄
option-f_inuse.t
(42.67 KB)
📄
option-f_replication_level_mismatch_0.t
(5.15 KB)
📄
option-f_replication_level_mismatch_1.t
(28.41 KB)
📄
option-f_size_mismatch.t
(15.27 KB)
📄
option-f_type_mismatch.t
(13.95 KB)
📄
option-n.t
(756 B)
📄
raidz1.t
(2.56 KB)
📄
raidz2.t
(2.96 KB)
📄
spare.t
(4.11 KB)
Editing: option-n.t
#!/bin/sh # $FreeBSD$ dir=`dirname $0` . ${dir}/../../misc.sh echo "1..5" disks_create 2 names_create 1 expect_ok ${ZPOOL} create ${name0} ${disk0} exp=`( echo "would update '${name0}' to the following configuration:" echo " ${name0}" echo " ${disk0}" echo " ${disk1}" )` expect "${exp}" ${ZPOOL} add -n ${name0} ${disk1} exp=`( echo " pool: ${name0}" echo " state: ONLINE" echo " scrub: none requested" echo "config:" echo " NAME STATE READ WRITE CKSUM" echo " ${name0} ONLINE 0 0 0" echo " ${disk0} ONLINE 0 0 0" echo "errors: No known data errors" )` expect "${exp}" ${ZPOOL} status ${name0} expect_ok ${ZPOOL} destroy ${name0} expect_fl ${ZPOOL} status -x ${name0} disks_destroy
Upload File
Create Folder