Bug 799957 - Missing xml output for "volume quota"
Summary: Missing xml output for "volume quota"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: mainline
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Kaushal
QA Contact: Vijaykumar Koppad
URL:
Whiteboard:
Depends On:
Blocks: 817967
TreeView+ depends on / blocked
 
Reported: 2012-03-05 13:38 UTC by Kaushal
Modified: 2014-08-25 00:49 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:33:03 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Kaushal 2012-03-05 13:38:41 UTC

Comment 1 Anand Avati 2012-03-13 11:00:13 UTC
CHANGE: http://review.gluster.com/2868 (cli: More xml output changes) merged in master by Vijay Bellur (vijay)

Comment 2 Kaushal 2012-05-31 10:08:02 UTC
Appending '--xml' to a quota command will produce xml output. Tested on v3.3.0qa44.

Eg:

-!- ~ » gluster volume quota test enable --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput><opRet>0</opRet><opErrno>9</opErrno><opErrstr>Enabling quota has been successful</opErrstr><cliOp>volQuota</cliOp><output>Enabling quota has been successful</output></cliOutput>

-!- ~ » gluster volume quota test limit-usage /test 100MB
limit set on /test

-!- ~ » gluster volume quota test limit-usage /test2 10MB --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput><opRet>0</opRet><opErrno>2</opErrno><opErrstr>limit set on /test2</opErrstr><cliOp>volQuota</cliOp><output>limit set on /test2</output></cliOutput>

-!- ~ » gluster volume quota test list --xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput><opRet>0</opRet><opErrno>0</opErrno><opErrstr></opErrstr><volQuota><quota><path>/test</path><limit>100MB</limit><size>0</size></quota><quota><path>/test2</path><limit>10MBB</limit><size>0</size></quota></volQuota></cliOutput>

-!- ~ »


Note You need to log in before you can comment on or make changes to this bug.