blob: 90c778c8a88454616ca16e03b2039582d3cc287c (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
#!/bin/bash
. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
cleanup;
TEST glusterd
TEST $CLI volume create $V0 $H0:$B0/${V0}{0..4}
EXPECT 'Created' volinfo_field $V0 'Status'
TEST $CLI volume set $V0 group nl-cache
EXPECT '600' volinfo_field $V0 'performance.nl-cache-timeout'
EXPECT 'on' volinfo_field $V0 'performance.nl-cache'
EXPECT '600' volinfo_field $V0 'features.cache-invalidation-timeout'
EXPECT 'on' volinfo_field $V0 'features.cache-invalidation'
EXPECT '200000' volinfo_field $V0 'network.inode-lru-limit'
TEST $CLI volume set $V0 nl-cache-positive-entry on
TEST $CLI volume start $V0;
EXPECT 'Started' volinfo_field $V0 'Status';
TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0
TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M1
TEST ! ls $M0/file2
TEST touch $M0/file1
TEST ! ls $M0/file2
TEST touch $M0/file2
TEST ls $M0/file2
TEST rm $M0/file2
TEST rm $M0/file1
TEST mkdir $M0/dir1
TEST ! ls -l $M0/dir1/file
TEST mkdir $M0/dir1/dir2
TEST ! ls -l $M0/dir1/file
TEST ! ls -l $M0/dir1/dir2/file
TEST ls -l $M0/dir1/dir2
TEST rmdir $M0/dir1/dir2
TEST rmdir $M0/dir1
TEST ! ls -l $M0/file2
TEST touch $M1/file2
TEST ls -l $M0/file2
TEST rm $M1/file2
TEST ! ls -l $M0/dir1
TEST mkdir $M1/dir1
TEST ls -l $M0/dir1
TEST ! ls -l $M0/dir1/file1
TEST mkdir $M1/dir1/dir2
TEST ! ls -l $M0/dir1/file1
TEST ls -l $M0/dir1/dir2
TEST ! ls -l $M1/dir1/file1
TEST touch $M0/dir1/file
TEST ln $M0/dir1/file $M0/dir1/file_link
TEST ls -l $M1/dir1/file
TEST ls -l $M1/dir1/file_link
TEST rm $M0/dir1/file
TEST rm $M0/dir1/file_link
TEST rmdir $M0/dir1/dir2
TEST rmdir $M0/dir1
#Check mknod
TEST ! ls -l $M0/dir
TEST mkdir $M0/dir
TEST mknod -m 0666 $M0/dir/block b 4 5
TEST mknod -m 0666 $M0/dir/char c 1 5
TEST mknod -m 0666 $M0/dir/fifo p
TEST rm $M0/dir/block
TEST rm $M0/dir/char
TEST rm $M0/dir/fifo
#Check getxattr
TEST touch $M0/file1
TEST getfattr -d -m. -e hex $M0/file1
TEST getfattr -n "glusterfs.get_real_filename:file1" $M0;
TEST getfattr -n "glusterfs.get_real_filename:FILE1" $M0;
TEST ! getfattr -n "glusterfs.get_real_filename:FILE2" $M0;
#Check statedump
TEST generate_mount_statedump $V0 $M0
TEST cleanup_mount_statedump $V0
#Check reconfigure
TEST $CLI volume reset $V0 nl-cache-timeout
TEST $CLI volume reset $V0 nl-cache-positive-entry
TEST $CLI volume reset $V0 nl-cache-limit
TEST $CLI volume reset $V0 nl-cache-pass-through
TEST $CLI volume stop $V0
TEST $CLI volume delete $V0
cleanup;
#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=000000
|