Bug 1211221

Summary: Any operation that relies on fd->flags may not work on anonymous fds
Product: [Community] GlusterFS Reporter: Raghavendra Talur <rtalur>
Component: coreAssignee: Raghavendra Talur <rtalur>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, rgowdapp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 12:50:21 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:

Description Raghavendra Talur 2015-04-13 10:51:31 UTC
Description of problem:

We do not set the same flags to anonymous fd that posix uses to open
a anonymous fd in the backend. If there are any xlators which rely on
these flags for their operation they may not work well.

Add proper flags to anonymous fds at the time of their creation.

Comment 1 Anand Avati 2015-04-13 11:51:51 UTC
REVIEW: http://review.gluster.org/10219 (libglusterfs: Even anonymous fds must have fd->flags set) posted (#1) for review on master by Raghavendra Talur (rtalur)

Comment 2 Anand Avati 2015-04-27 13:06:39 UTC
REVIEW: http://review.gluster.org/10219 (libglusterfs: Even anonymous fds must have fd->flags set) posted (#2) for review on master by Raghavendra Talur (rtalur)

Comment 3 Anand Avati 2015-04-28 06:35:13 UTC
REVIEW: http://review.gluster.org/10219 (libglusterfs: Even anonymous fds must have fd->flags set) posted (#3) for review on master by Raghavendra Talur (rtalur)

Comment 4 Anand Avati 2015-07-20 10:48:22 UTC
COMMIT: http://review.gluster.org/10219 committed in master by Raghavendra G (rgowdapp) 
------
commit 175f1737fb6fe9450702556b24bf395bac97cef1
Author: Raghavendra Talur <rtalur>
Date:   Mon Apr 13 17:05:44 2015 +0530

    libglusterfs: Even anonymous fds must have fd->flags set
    
    We do not set the same flags to anonymous fd that posix uses to open
    an anonymous fd in the backend. If there are any xlators which rely on
    these flags for their operation they may not work well.
    
    Add proper flags to anonymous fds at the time of their creation and
    refer to them for subsequent operations.
    
    Change-Id: Ia99b7ea7d38839f099c7b4aae3c7ead123bc8c67
    BUG: 1211221
    Signed-off-by: Raghavendra Talur <rtalur>
    Reviewed-on: http://review.gluster.org/10219
    Tested-by: NetBSD Build System <jenkins.org>
    Reviewed-by: soumya k <skoduri>
    Reviewed-by: Poornima G <pgurusid>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Rajesh Joseph <rjoseph>
    Reviewed-by: Niels de Vos <ndevos>
    Reviewed-by: Raghavendra Bhat <raghavendra>
    Reviewed-by: Raghavendra G <rgowdapp>

Comment 5 Niels de Vos 2016-06-16 12:50:21 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user