summaryrefslogtreecommitdiffstats
path: root/extras/geo-rep/get-gfid.sh
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2014-03-25 08:40:47 +0530
committerVijay Bellur <vbellur@redhat.com>2014-04-04 10:07:13 -0700
commit4e0659a779f19bccaf44e4fa58a6c2a7a0d08f61 (patch)
tree310ef67e397ff104a67f352cb6ccb957543fcbff /extras/geo-rep/get-gfid.sh
parent18ad6f2dc7b8254ef718de6311f7344b28e99797 (diff)
geo-rep: fix pattern matching in upgrade scripts.v3.5.0beta5
Change-Id: I9ceed333a5416f06537e6ea14055c0971ead9362 BUG: 847839 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/7327 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras/geo-rep/get-gfid.sh')
-rwxr-xr-xextras/geo-rep/get-gfid.sh2
1 files changed, 1 insertions, 1 deletions
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"