summaryrefslogtreecommitdiffstats
path: root/geo-replication/src/gverify.sh
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2014-05-20 14:50:25 +0000
committerVenky Shankar <vshankar@redhat.com>2014-05-25 19:49:31 -0700
commit5224a785faaa615adac7cd25207912ab109ad7e6 (patch)
treeced2910f66ce52d0e99bfdd545bfdebf70c7c285 /geo-replication/src/gverify.sh
parent9dce23c30edb3622049d40ea16877c7b26e5753b (diff)
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 <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/7812 Reviewed-by: Kotresh HR <khiremat@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Tested-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'geo-replication/src/gverify.sh')
-rwxr-xr-xgeo-replication/src/gverify.sh8
1 files changed, 4 insertions, 4 deletions
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;