From 99eaa1a8255105687c78f8dda48c0a60023e1ffc Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Mon, 20 Apr 2015 10:08:03 +0530 Subject: features/quota : Make "quota-deem-statfs" option "on" by default, when quota is enabled As of now it is expected from user to set deem-statfs to "on" when quota is enabled. Better to turn it "on" by default when quota is enabled. Change-Id: I85e0b919b1bdb74ac21e256073eebcb55bcb8e2a BUG: 1213364 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/10299 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Vijaikumar Mallikarjuna Reviewed-by: Raghavendra G Tested-by: Raghavendra G --- ...213364-disable-deem-statfs-when-quota-disable.t | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/bugs/quota/bug-1213364-disable-deem-statfs-when-quota-disable.t (limited to 'tests/bugs/quota') diff --git a/tests/bugs/quota/bug-1213364-disable-deem-statfs-when-quota-disable.t b/tests/bugs/quota/bug-1213364-disable-deem-statfs-when-quota-disable.t new file mode 100644 index 00000000000..aaf4a315949 --- /dev/null +++ b/tests/bugs/quota/bug-1213364-disable-deem-statfs-when-quota-disable.t @@ -0,0 +1,24 @@ +#!/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}; +EXPECT 'Created' volinfo_field $V0 'Status'; + +TEST $CLI volume start $V0; +EXPECT 'Started' volinfo_field $V0 'Status'; + +TEST $CLI volume quota $V0 enable +EXPECT 'on' volinfo_field $V0 'features.quota' +EXPECT 'on' volinfo_field $V0 'features.quota-deem-statfs' + +TEST $CLI volume quota $V0 disable +EXPECT 'off' volinfo_field $V0 'features.quota' +EXPECT '' volinfo_field $V0 'features.quota-deem-statfs' + +cleanup; -- cgit