Bug 762035 (GLUSTER-303) - chmod not working on mainline
Summary: chmod not working on mainline
Keywords:
Status: CLOSED DUPLICATE of bug 761878
Alias: GLUSTER-303
Product: GlusterFS
Classification: Community
Component: fuse
Version: mainline
Hardware: All
OS: Linux
urgent
high
Target Milestone: ---
Assignee: Csaba Henk
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-07 11:44 UTC by Pavan Vilas Sondur
Modified: 2009-10-07 12:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.