From af939370ad20fe1be8e52ea953996e190e86c4ee Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Sat, 9 Mar 2013 16:36:56 +0530 Subject: cluster/afr: sync xattrs removed on source to sink(s) xattrs are first removed from sink followed by setting source xattrs. Change-Id: I181cb5b785b667bbfc6e40787a2183a8f45de06b BUG: 906646 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.org/4656 Reviewed-by: Pranith Kumar Karampuri Tested-by: Gluster Build System Reviewed-by: Jeff Darcy --- tests/volume.rc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 1b9f8b2c8..33a38ee7e 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -220,3 +220,12 @@ function dht_get_layout { local my_xa=trusted.glusterfs.dht getfattr -d -e hex -n $my_xa $1 2> /dev/null | grep "$my_xa=" | cut -d= -f2 } + +## + # query pathinfo xattr and extract POSIX pathname(s) + ## +function get_backend_paths { + local path=$1 + + getfattr -m . -n trusted.glusterfs.pathinfo $path | tr ' ' '\n' | sed -n 's/.*/\1/p' +} -- cgit