summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/dict.c
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2012-03-14 16:45:21 +0530
committerAnand Avati <avati@redhat.com>2012-03-18 02:19:29 -0700
commit5f59fbd81830a5f2157b3206d8413ba862aa5253 (patch)
tree4418e94e68b8b4222428390b2cf2e1c87775f8a2 /libglusterfs/src/dict.c
parent1477fe376ae51ae077430aea25aa6a7a34596768 (diff)
cluster/stripe: fix {set/get}xattr query for dirs/symlink
This patch fixes the following problems: * ENOENT returned for getxattr (xtime) on symlinks Non-data entities are created only on the first subvolume but getxattr fop winds to all subvols. This results in all subvols except the first one to return ENOENT which is propogated down the stack. * ENODATA returned for getxattr (xtime) on directory setxattr calls always wind to the first stripe subvolume. xtime getxattr invocation winds to all subvolumes but the xattr is present in only the first one, resulting in all subvols except the first one to return ENODATA. Fix For symlinks getxattr now always winds to the first subvol and for directories setxattr sets the xattr on all subvols. NOTE For directories the all-subvol-wind in setxattr is done only when request is from a special client (client-pid == -1) Change-Id: I9236345ef319506770d2034b840ee4ac04704b21 BUG: 801394 Signed-off-by: Venky Shankar <vshankar@redhat.com> Reviewed-on: http://review.gluster.com/2948 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shishir Gowda <shishirng@gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src/dict.c')
0 files changed, 0 insertions, 0 deletions