summaryrefslogtreecommitdiffstats
path: root/tests/bugs/unclassified/bug-1357397.t
blob: 129a208e27885065aca259c01feb5c96df9ff024 (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
#!/bin/bash

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

cleanup

TEST glusterd
TEST pidof glusterd

TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{1,2}

TEST $CLI volume start $V0

TEST $CLI volume set $V0 features.trash on
TEST $CLI volume set $V0 features.trash-internal-op on

TEST [ -e $B0/${V0}1/.trashcan ]

TEST [ -e $B0/${V0}1/.trashcan/internal_op ]

TEST $CLI volume stop $V0

rm -rf $B0/${V0}1/.trashcan/internal_op

TEST [ ! -e $B0/${V0}1/.trashcan/internal_op ]

TEST $CLI volume start $V0 force

TEST [ -e $B0/${V0}1/.trashcan/internal_op ]

cleanup