Bug 762035 (GLUSTER-303)

Summary: chmod not working on mainline
Product: [Community] GlusterFS Reporter: Pavan Vilas Sondur <pavan>
Component: fuseAssignee: Csaba Henk <csaba>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: mainlineCC: gluster-bugs, shehjart, vikas
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 Vikas Gorur 2009-10-07 08:46:16 UTC
fattr_to_gf_set_attr does not handle FATTR_MODE flag.

Comment 1 Shehjar Tikoo 2009-10-07 09:02:57 UTC
Setattr has another bug that I've fixed in my nfs tree. Heres the diff, if you need a fix ASAP.


diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c
index a80b2c1..bfa340a 100644
--- a/libglusterfs/src/call-stub.c
+++ b/libglusterfs/src/call-stub.c
@@ -2473,7 +2473,7 @@ fop_setattr_cbk_stub (call_frame_t *frame,
         if (frame == NULL)
                 goto out;
 
-	stub = stub_new (frame, 1, GF_FOP_SETATTR);
+	stub = stub_new (frame, 0, GF_FOP_SETATTR);
 	if (stub == NULL)
                 goto out;

Comment 2 Vikas Gorur 2009-10-07 09:14:15 UTC

*** This bug has been marked as a duplicate of bug 146 ***

Comment 3 Pavan Vilas Sondur 2009-10-07 11:44:51 UTC
chmod does not work on the master build.