File: posixonly.t

package info (click to toggle)
glusterfs 11.2-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 28,244 kB
  • sloc: ansic: 471,238; sh: 45,610; python: 16,893; perl: 3,328; makefile: 2,014; yacc: 487; ruby: 171; lisp: 124; xml: 75; lex: 61
file content (31 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download | duplicates (8)
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
#!/bin/bash

. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.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;

EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0

cleanup;