| Summary: | quota build 3: list still shows large number for soft limit | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | Saurabh <saujain> |
| Component: | glusterd | Assignee: | Krutika Dhananjay <kdhananj> |
| Status: | CLOSED ERRATA | QA Contact: | Saurabh <saujain> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.1 | CC: | grajaiya, kparthas, mzywusko, rhs-bugs, vbellur |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| 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'.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-27 15:33:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 |
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: