summaryrefslogtreecommitdiff
path: root/checkpoint_gc/checkpoint_gc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'checkpoint_gc/checkpoint_gc.sh')
-rw-r--r--checkpoint_gc/checkpoint_gc.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/checkpoint_gc/checkpoint_gc.sh b/checkpoint_gc/checkpoint_gc.sh
index 682c8499..beaedcbc 100644
--- a/checkpoint_gc/checkpoint_gc.sh
+++ b/checkpoint_gc/checkpoint_gc.sh
@@ -31,7 +31,8 @@ MAX_TIME=3600
NAME=`while read dev dir type opt; do
if [ /data = ${dir} -a f2fs = ${type} ]; then
- echo ${dev##*/}
+ real_dev=$(realpath $dev)
+ echo ${real_dev##*/}
break
fi
done < /proc/mounts`