From 4e0659a779f19bccaf44e4fa58a6c2a7a0d08f61 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 25 Mar 2014 08:40:47 +0530 Subject: geo-rep: fix pattern matching in upgrade scripts. Change-Id: I9ceed333a5416f06537e6ea14055c0971ead9362 BUG: 847839 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.org/7327 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- extras/geo-rep/get-gfid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/geo-rep/get-gfid.sh b/extras/geo-rep/get-gfid.sh index a4d609b0bc5..e63057db3d2 100755 --- a/extras/geo-rep/get-gfid.sh +++ b/extras/geo-rep/get-gfid.sh @@ -1,7 +1,7 @@ #!/bin/bash ATTR_STR=`getfattr -h $1 -n glusterfs.gfid.string` -GLFS_PATH=`echo $ATTR_STR | sed -e 's/# file: \(.*\) glusterfs.gfid.string*/\1/g'` +GLFS_PATH=`echo $ATTR_STR | sed -e 's/# file: \(.*\) glusterfs.gfid.string.*/\1/g'` GFID=`echo $ATTR_STR | sed -e 's/.*glusterfs.gfid.string="\(.*\)"/\1/g'` echo "$GFID $GLFS_PATH" -- cgit