From 5224a785faaa615adac7cd25207912ab109ad7e6 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Tue, 20 May 2014 14:50:25 +0000 Subject: glusterd/geo-rep: Creating .ssh dir with right ownership Also adding -P option to the usage of df for portability in gverify.sh Change-Id: I0be19d26ea63769a934c6ccbfc04ef80768ebc9a BUG: 1099041 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/7812 Reviewed-by: Kotresh HR Tested-by: Gluster Build System Reviewed-by: Venky Shankar Tested-by: Venky Shankar Reviewed-by: Aravinda VK --- geo-replication/src/gverify.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'geo-replication/src/gverify.sh') diff --git a/geo-replication/src/gverify.sh b/geo-replication/src/gverify.sh index c986f78a7ea..32ba843ceee 100755 --- a/geo-replication/src/gverify.sh +++ b/geo-replication/src/gverify.sh @@ -32,8 +32,8 @@ echo 0:0; exit 1; fi; cd \$d; -disk_size=\$(df -B1 \$d | tail -1 | awk "{print \\\$2}"); -used_size=\$(df -B1 \$d | tail -1 | awk "{print \\\$3}"); +disk_size=\$(df -P -B1 \$d | tail -1 | awk "{print \\\$2}"); +used_size=\$(df -P -B1 \$d | tail -1 | awk "{print \\\$3}"); umount -l \$d; rmdir \$d; ver=\$(gluster --version | head -1 | cut -f2 -d " "); @@ -89,8 +89,8 @@ function slave_stats() exit 1; fi; cd $d; - disk_size=$(df -B1 $d | tail -1 | awk "{print \$2}"); - used_size=$(df -B1 $d | tail -1 | awk "{print \$3}"); + disk_size=$(df -P -B1 $d | tail -1 | awk "{print \$2}"); + used_size=$(df -P -B1 $d | tail -1 | awk "{print \$3}"); no_of_files=$(find $d -maxdepth 0 -empty); umount -l $d; rmdir $d; -- cgit