From 9658700a8b0d5439fd3488437cd26e335fb63973 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Nov 03 2021 08:12:28 +0000 Subject: mkdumprd: remove an awk call in get_fs_size upstream: fedora resolves: bz2003832 conflict: none commit c486b1fa3010c4c5f190ece9a2ed0a1430dfe7b5 Author: Kairui Song Date: Tue Sep 7 14:42:30 2021 +0800 mkdumprd: remove an awk call in get_fs_size By using `df --output=avail`, the awk call can be dropped. Signed-off-by: Kairui Song Acked-by: Philipp Rudo Signed-off-by: Tao Liu --- diff --git a/mkdumprd b/mkdumprd index 1113e7c..f4af6ca 100644 --- a/mkdumprd +++ b/mkdumprd @@ -132,7 +132,7 @@ mkdir_save_path_ssh() #Function: get_fs_size #$1=dump target get_fs_size() { - df -P "$(get_mntpoint_from_target "$1")/$SAVE_PATH"|tail -1|awk '{print $4}' + df --output=avail "$(get_mntpoint_from_target "$1")/$SAVE_PATH" | tail -1 } #Function: get_raw_size