summaryrefslogtreecommitdiffstats
path: root/tests/bugs/quota/bug-1100050.t
blob: 65a1250f246e3e0747ac34a3b6d30fa77e15681e (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
#!/bin/bash

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

cleanup;

TEST glusterd;
TEST pidof glusterd;

TEST gluster volume create $V0 stripe 2 $H0:$B0/{1,2} force;
TEST gluster volume start $V0;
TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $M0;

TEST gluster volume quota $V0 enable;

EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" quotad_up_status;

TEST mkdir $M0/dir;

TEST gluster volume quota $V0 limit-usage /dir 10MB;

TEST mkdir $M0/dir/subdir;

TEST $CLI volume stop $V0
EXPECT "1" get_aux
cleanup;