diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2015-01-12 17:05:32 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-01-18 21:11:40 -0800 |
commit | 7b58df7965ad557e23681d61164bfc7d609ed2cd (patch) | |
tree | c1ceacc56460705c2777ee2fdced0be744002ad8 /xlators/cluster/ec/src/ec-helpers.h | |
parent | dec4700c663975896f3aad1b4e59257263b4f4ac (diff) |
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@redhat.com>
Reviewed-on: http://review.gluster.org/9435
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-helpers.h')
0 files changed, 0 insertions, 0 deletions