Merge "chore: Update the BTRFS disk check for AIOs"

This commit is contained in:
Zuul 2023-12-01 20:26:06 +00:00 committed by Gerrit Code Review
commit 1c03e89b4a
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@
shell: |
set -o pipefail
if [[ $(df -T / | tail -n 1 | awk '{print $2}') == "btrfs" ]]; then
btrfs fi usage --kbytes / | awk '/^.*Free / {print $3}'| sed 's/\..*//'
btrfs fi du -s --raw / 2>/dev/null | awk '/[0-9]/ {print $2*1024}'
else
df -BK / | awk '!/^Filesystem/ {print $4}' | sed 's/K//'
fi