Bug 1159471
| Summary: | rename operation leads to core dump | |||
|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | lidi <lidi> | |
| Component: | disperse | Assignee: | Xavi Hernandez <jahernan> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 3.6.0 | CC: | bugs, gluster-bugs, jahernan, lmohanty, rabhat | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-3.6.3beta1 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1161886 (view as bug list) | Environment: | ||
| Last Closed: | 2015-08-07 11:30:31 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: | ||
| Embargoed: | ||||
| Bug Depends On: | 1161886 | |||
| Bug Blocks: | 1159529, 1184460 | |||
|
Description
lidi
2014-11-01 08:13:42 UTC
*** Bug 1161034 has been marked as a duplicate of this bug. *** REVIEW: http://review.gluster.org/9501 (ec: Fix posix compliance failures) posted (#1) for review on release-3.6 by Xavier Hernandez (xhernandez) COMMIT: http://review.gluster.org/9501 committed in release-3.6 by Raghavendra Bhat (raghavendra) ------ commit 22035d5e37db748cbdee2596d99006cea6b5282e Author: Xavier Hernandez <xhernandez> Date: Sat Nov 8 21:46:41 2014 +0100 ec: Fix posix compliance failures This patch solves some problems that caused dispersed volumes to not pass posix smoke tests: * Problems in open/create with O_WRONLY Opening files with -w- permissions using O_WRONLY returned an EACCES error because internally O_WRONLY was replaced with O_RDWR. * Problems with entrylk on renames. When source and destination were the same, ec tried to acquire the same entrylk twice, causing a deadlock. * Overwrite of a variable when reordering locks. On a rename, if the second lock needed to be placed at the beggining of the list, the 'lock' variable was overwritten and later its timer was cancelled, cancelling the incorrect one. * Handle O_TRUNC in open. When O_TRUNC was received in an open call, it was blindly propagated to child subvolumes. This caused a discrepancy between real file size and the size stored into trusted.ec.size xattr. This has been solved by removing O_TRUNC from open and later calling ftruncate. This is a backport of http://review.gluster.org/9420 Change-Id: I20c3d6e1c11be314be86879be54b728e01013798 BUG: 1159471 Signed-off-by: Xavier Hernandez <xhernandez> Reviewed-on: http://review.gluster.org/9501 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Dan Lambright <dlambrig> Reviewed-by: Pranith Kumar Karampuri <pkarampu> Reviewed-by: Raghavendra Bhat <raghavendra> |