Bug 1311146
Summary: | glfs_dup() functionality is broken | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Prashanth Pai <ppai> | |
Component: | libgfapi | Assignee: | rjoseph | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sudhir D <sdharane> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | mainline | CC: | bugs, ndevos, rjoseph, srangana | |
Target Milestone: | --- | Keywords: | Tracking, Triaged | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1317863 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-06 17:39:26 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: | ||||
Bug Blocks: | 1303995, 1317863 |
Description
Prashanth Pai
2016-02-23 13:47:06 UTC
REVIEW: http://review.gluster.org/13666 (gfapi: preserve glfd state during glfs_dup) posted (#1) for review on master by Rajesh Joseph (rjoseph) glfs_dup is completely broken. Current behavior is not in accordance with POSIX dup (http://linux.die.net/man/2/dup) http://review.gluster.org/13666 only addresses are very small subset of the problem. glfs_dup needs to be re-written to fix the broken behavior. Therefore not changing the state of the bug as of now. COMMIT: http://review.gluster.org/13666 committed in master by Niels de Vos (ndevos) ------ commit 5bdfaf98904a339144bf3a237b162e8385b95085 Author: Rajesh Joseph <rjoseph> Date: Wed Mar 9 22:05:18 2016 +0530 gfapi: preserve glfd state during glfs_dup Following patch introduced a new state variable in glfd to track the current status of the fd. http://review.gluster.org/13340/ But this state was not copied in glfd_dup function. BUG: 1311146 Change-Id: I283f8944035f6defe491f81e13d7ef28fc440572 Signed-off-by: Rajesh Joseph <rjoseph> Reviewed-on: http://review.gluster.org/13666 Smoke: Gluster Build System <jenkins.com> Reviewed-by: Prashanth Pai <ppai> Tested-by: Prashanth Pai <ppai> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.com> Reviewed-by: Raghavendra Talur <rtalur> Reviewed-by: Niels de Vos <ndevos> |