Bug 1000992 - quota build 3: list still shows large number for soft limit
Summary: quota build 3: list still shows large number for soft limit
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterd
Version: 2.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Krutika Dhananjay
QA Contact: Saurabh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-26 09:27 UTC by Saurabh
Modified: 2016-01-19 06:12 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.4.0.34rhs
Doc Type: Bug Fix
Doc Text:
Cause: This bug results from not initialising variables appropriately before using them. Consequence: The junk value is written to the glusterfs.quota.limit-set xattr in the backend for the directory on which it is desired to set the hard limit. The same junk value, therefore, gets displayed in the output of 'quota list'. Fix: Initialised the local variable to all zeroes before using it. Result: Now the correct value of the soft-limit is displayed in the output of 'quota list'.
Clone Of:
Environment:
Last Closed: 2013-11-27 15:33:28 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1769 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #1 2013-11-27 20:17:39 UTC

Description Saurabh 2013-08-26 09:27:25 UTC
Description of problem:
large value for soft limit is still displayed, which was assumed to be fixed by now.


Version-Release number of selected component (if applicable):
glusterfs-fuse-3.4.0.20rhsquota5-1.el6rhs.x86_64
glusterfs-libs-3.4.0.20rhsquota5-1.el6rhs.x86_64
glusterfs-api-3.4.0.20rhsquota5-1.el6rhs.x86_64
glusterfs-geo-replication-3.4.0.20rhsquota5-1.el6rhs.x86_64
glusterfs-server-3.4.0.20rhsquota5-1.el6rhs.x86_64
glusterfs-3.4.0.20rhsquota5-1.el6rhs.x86_64
glusterfs-rdma-3.4.0.20rhsquota5-1.el6rhs.x86_64

How reproducible:
always

Steps to Reproduce:
1. enable quota
2. set some limit
3. quota list

Actual results:
[root@rhsauto034 ~]# gluster volume quota dist-rep3 list /
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                          1.0GB 1251945038655630689       1.0GB  0Bytes
[root@rhsauto034 ~]# 


Expected results:
it should be percentage

Additional info:

Comment 8 errata-xmlrpc 2013-11-27 15:33:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1769.html


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