[Bugs] [Bug 1185259] cli crashes when listing quota limits with xml output

bugzilla at redhat.com bugzilla at redhat.com
Thu Feb 19 10:12:39 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1185259



--- Comment #16 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9481 committed in master by Kaushal M
(kaushal at redhat.com) 
------
commit f099a87fd36b600ccb8268937d3cd7ca84799f77
Author: Sachin Pandit <spandit at redhat.com>
Date:   Tue Feb 3 05:01:38 2015 +0530

    features/quota : Fix XML output for quota list command

    Sample output:
    ---------------

    Sample 1)
    ----------
    [root at snapshot-28 glusterfs]# gluster volume quota vol1 list /dir1 /dir4
/dir5 --xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <cliOutput>
      <opRet>0</opRet>
      <opErrno>0</opErrno>
      <opErrstr/>
      <volQuota>
        <limit>
          <path>/dir1</path>
          <hard_limit>10.0MB</hard_limit>
          <soft_limit>80%</soft_limit>
          <used_space>0Bytes</used_space>
          <avail_space>10.0MB</avail_space>
          <hl_exceeded>No</hl_exceeded>
          <sl_exceeded>No</sl_exceeded>
        </limit>
        <limit>
          <path>/dir4</path>
          <path>No such file or directory</path>
        </limit>
        <limit>
          <path>/dir5</path>
          <path>No such file or directory</path>
        </limit>
      </volQuota>
    </cliOutput>

    Sample 2)
    ---------
    gluster volume quota vol1 list --xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <cliOutput>
      <opRet>0</opRet>
      <opErrno>0</opErrno>
      <opErrstr/>
      <volQuota/>
    </cliOutput>
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <cliOutput>
      <volQuota>
        <limit>
          <path>/dir</path>
          <hard_limit>10.0MB</hard_limit>
          <soft_limit>80%</soft_limit>
          <used_space>0Bytes</used_space>
          <avail_space>10.0MB</avail_space>
          <hl_exceeded>No</hl_exceeded>
          <sl_exceeded>No</sl_exceeded>
        </limit>
        <limit>
          <path>/dir1</path>
          <hard_limit>10.0MB</hard_limit>
          <soft_limit>80%</soft_limit>
          <used_space>0Bytes</used_space>
          <avail_space>10.0MB</avail_space>
          <hl_exceeded>No</hl_exceeded>
          <sl_exceeded>No</sl_exceeded>
        </limit>
      </volQuota>
    </cliOutput>

    Change-Id: I8a8d83cff88f778e5ee01fbca07d9f94c412317a
    BUG: 1185259
    Signed-off-by: Sachin Pandit <spandit at redhat.com>
    Reviewed-on: http://review.gluster.org/9481
    Reviewed-by: Vijaikumar Mallikarjuna <vmallika at redhat.com>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Kaushal M <kaushal at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=XXNFXt6YsK&a=cc_unsubscribe


More information about the Bugs mailing list