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

cleanup;