blob: 357959e268496b2a60c3d7aae542f872d4641583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/bin/sh
# $FreeBSD$
dir=`dirname $0`
. ${dir}/../../misc.sh
echo "1..28"
disks_create 1
names_create 2
expect_fl is_mountpoint /${name0}
expect_fl is_mountpoint /${name1}
expect_ok ${ZPOOL} create -m /${name1} ${name0} ${disk0}
exp=`(
echo "NAME PROPERTY VALUE SOURCE"
echo "${name0} altroot - default"
)`
expect "${exp}" ${ZPOOL} get altroot ${name0}
expect_fl is_mountpoint /${name0}
if [ -z "${no_mountpoint}" ]; then
expect_ok is_mountpoint /${name1}
else
expect_fl is_mountpoint /${name1}
fi
expect_ok ${ZPOOL} destroy ${name0}
expect_fl is_mountpoint /${name0}
expect_fl is_mountpoint /${name1}
expect_ok rmdir /${name1}
expect_ok mkdir /${name1}
expect_ok ${ZPOOL} create -m legacy ${name0} ${disk0}
expect_fl is_mountpoint /${name0}
expect_ok mount ${mount_t_flag} zfs ${name0} /${name1}
if [ -z "${no_mountpoint}" ]; then
expect_ok is_mountpoint /${name1}
else
expect_fl is_mountpoint /${name1}
fi
expect_ok umount /${name1}
expect_fl is_mountpoint /${name1}
expect_ok ${ZPOOL} destroy ${name0}
expect_ok rmdir /${name1}
expect_ok mkdir /${name1}
expect_ok ${ZPOOL} create -m none ${name0} ${disk0}
expect_fl is_mountpoint /${name0}
expect_ok mount ${mount_t_flag} zfs ${name0} /${name1}
if [ -z "${no_mountpoint}" ]; then
expect_ok is_mountpoint /${name1}
else
expect_fl is_mountpoint /${name1}
fi
expect_ok umount /${name1}
expect_fl is_mountpoint /${name1}
expect_ok ${ZPOOL} destroy ${name0}
expect_ok rmdir /${name1}
disks_destroy
|