summaryrefslogtreecommitdiffstats
path: root/geo-replication/src/gverify.sh
diff options
context:
space:
mode:
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;