[Bugs] [Bug 1181367] rmdir changes permission of directory when rmdir fails with ENOTEMPTY

bugzilla at redhat.com bugzilla at redhat.com
Mon Jan 19 05:11:52 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1181367



--- Comment #3 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9435 committed in master by Raghavendra G
(rgowdapp at redhat.com) 
------
commit 7b58df7965ad557e23681d61164bfc7d609ed2cd
Author: Pranith Kumar K <pkarampu at redhat.com>
Date:   Mon Jan 12 17:05:32 2015 +0530

    cluster/dht: Don't restore entry when only one subvolume is present

    Problem:
    When rmdir fails with op_errno other than ENOENT/EACCES then self-heal
    is attempted with zeroed-out stbuf. Only ia_type is filled from inode,
    when the self-heal progresses, it sees that the directory is still
    present and performs setattr with all valid flags set to '1' so the
    file will be owned by root:root and the time goes to epoch

    Fix:
    This fixes the problem only in dht with single subvolume. Just don't
    perform self-heal when there is a single subvolume.

    Change-Id: I6c85b845105bc6bbe7805a14a48a2c5d7bc0c5b6
    BUG: 1181367
    Signed-off-by: Pranith Kumar K <pkarampu at redhat.com>
    Reviewed-on: http://review.gluster.org/9435
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    Tested-by: Raghavendra G <rgowdapp at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list