summaryrefslogtreecommitdiffstats
path: root/tests/basic/posixonly.t
blob: b9de317a4d0c77c6e4e2ae19a450c99ccdcf6acd (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
#!/bin/bash

. $(dirname $0)/../include.rc

cleanup;

TEST mkdir -p $B0/posixonly
cat > $B0/posixonly.vol <<EOF
volume poisxonly
  type storage/posix
  option directory $B0/posixonly
end-volume
EOF

TEST glusterfs -f $B0/posixonly.vol $M0;

TEST touch $M0/filename;
TEST stat $M0/filename;
TEST mkdir $M0/dirname;
TEST stat $M0/dirname;
TEST touch $M0/dirname/filename;
TEST stat $M0/dirname/filename;
TEST ln $M0/dirname/filename $M0/dirname/linkname;
TEST chown 100:100 $M0/dirname/filename;
TEST chown 100:100 $M0/dirname;
TEST rm -rf $M0/filename $M0/dirname;

TEST umount $M0;

cleanup;