| Summary: | Quota: xattrs getting corrupted | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Saurabh <saurabh> |
| Component: | quota | Assignee: | Raghavendra G <raghavendra> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | mainline | CC: | gluster-bugs, raghavendra |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Saurabh
2011-04-07 12:45:47 UTC
The culprit is in the way vim is creating backup files (files postfixed with ~). It creates a hardlink to existing file and does an unlink on the original name. Now, in marker there would be only one contribution node for both the links (since both links have same parent) and hence during link, file-size corresponding to new-link will not be added to parents. However during unlink, file size is subtracted, there by resulting in negative values. PATCH: http://patches.gluster.com/patch/6942 in master (features/marker-quota: remove contribution xattrs from oldloc in rename.) PATCH: http://patches.gluster.com/patch/6943 in master (features/marker-quota: reduce contributions to parents during unlink only if it is the last link.) used vi to edit a file over nfs mount, and the extended attributes were not corrupted. |