version 1.4, 2010/12/30 16:58:07 |
version 1.5, 2011/01/03 09:37:42 |
|
|
# POSSIBILITY OF SUCH DAMAGE. |
# POSSIBILITY OF SUCH DAMAGE. |
# |
# |
|
|
|
rawpart=`sysctl -n kern.rawpartition | tr '01234' 'abcde'` |
|
rawcgd=/dev/rcgd0${rawpart} |
cgdserver=\ |
cgdserver=\ |
"rump_server -lrumpvfs -lrumpkern_crypto -lrumpdev -lrumpdev_disk -lrumpdev_cgd" |
"rump_server -lrumpvfs -lrumpkern_crypto -lrumpdev -lrumpdev_disk -lrumpdev_cgd" |
|
|
|
|
export RUMP_SERVER=unix://csock |
export RUMP_SERVER=unix://csock |
atf_check -s exit:0 sh -c "echo 12345 | \ |
atf_check -s exit:0 sh -c "echo 12345 | \ |
rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile" |
rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile" |
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=/dev/rcgd0d count=2 |
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=${rawcgd} count=2 |
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2 |
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2 |
atf_check -s exit:0 -e ignore -o file:testfile \ |
atf_check -s exit:0 -e ignore -o file:testfile dd rif=${rawcgd} count=2 |
dd rif=/dev/rcgd0d count=2 |
|
} |
} |
|
|
basic_cleanup() |
basic_cleanup() |
|
|
export RUMP_SERVER=unix://csock |
export RUMP_SERVER=unix://csock |
atf_check -s exit:0 sh -c "echo 12345 | \ |
atf_check -s exit:0 sh -c "echo 12345 | \ |
rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile" |
rump.cgdconfig -p cgd0 /dev/dk ${d}/paramsfile" |
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=/dev/rcgd0d count=2 |
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd rof=${rawcgd} count=2 |
|
|
# unconfig and reconfig cgd |
# unconfig and reconfig cgd |
atf_check -s exit:0 rump.cgdconfig -u cgd0 |
atf_check -s exit:0 rump.cgdconfig -u cgd0 |
|
|
|
|
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2 |
atf_check -s exit:0 -e ignore dd if=${d}/t_cgd of=testfile count=2 |
atf_check -s exit:0 -e ignore -o not-file:testfile \ |
atf_check -s exit:0 -e ignore -o not-file:testfile \ |
dd rif=/dev/rcgd0d count=2 |
dd rif=${rawcgd} count=2 |
} |
} |
|
|
wrongpass_cleanup() |
wrongpass_cleanup() |