Description of problem: when quota is disabled, all quota related commands should fail or should show that quota is disabled. root@Dagobah:~/newmount# gluster volume info vol Volume Name: vol Type: Distributed-Replicate Status: Started Number of Bricks: 3 x 2 = 6 Transport-type: tcp Bricks: Brick1: dagobah:/data/export1 Brick2: dagobah:/data/export2 Brick3: dagobah:/data/export3 Brick4: dagobah:/data/export4 Brick5: dagobah:/data/export5 Brick6: dagobah:/data/export6 Options Reconfigured: performance.stat-prefetch: on performance.flush-behind: on performance.io-thread-count: 32 geo-replication.indexing: on features.quota: off cluster.self-heal-daemon: on root@Dagobah:~/newmount# gluster volume quota vol limit-usage / 10GB limit set on / root@Dagobah:~/newmount# gluster volume quota vol list root@Dagobah:~/newmount# echo $? 0 What I am unsure about is that whether limit-usage should be set or not if quota is disabled. root@Dagobah:~/newmount# gluster volume info vol Volume Name: vol Type: Distributed-Replicate Status: Started Number of Bricks: 3 x 2 = 6 Transport-type: tcp Bricks: Brick1: dagobah:/data/export1 Brick2: dagobah:/data/export2 Brick3: dagobah:/data/export3 Brick4: dagobah:/data/export4 Brick5: dagobah:/data/export5 Brick6: dagobah:/data/export6 Options Reconfigured: features.limit-usage: /:10GB performance.stat-prefetch: on performance.flush-behind: on performance.io-thread-count: 32 geo-replication.indexing: on features.quota: off cluster.self-heal-daemon: on Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
CHANGE: http://review.gluster.com/2609 (glusterd/quota: inform the user if some quota command is executed without enabling it) merged in master by Vijay Bellur (vijay)
When quota is disabled, gives proper output when issued quota related commands. gluster volume quota vol limit-usage / 10GB Quota is disabled, please enable quota