Misc updates of docs (#1518)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-09-01 21:58:58 -04:00 • committed by GitHub
parent 071af2e516
commit 5becb334cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 48 additions and 24 deletions

View file

@ -7,13 +7,13 @@ fi
CACHEFS="${1}"
BASEPOOL="${2}"
PERCENTAGE=${3}
PERCENTAGE="${3}"
set -o errexit
while [ $(df "${CACHE}" | tail -n1 | awk '{print $5}' | cut -d'%' -f1) -gt ${PERCENTAGE} ]
while [ $(df "${CACHEFS}" | tail -n1 | awk '{print $5}' | cut -d'%' -f1) -gt ${PERCENTAGE} ]
do
# Find the file with the oldest access time
FILE=$(find "${CACHE}" -type f -printf '%A@ %P\n' | \
FILE=$(find "${CACHEFS}" -type f -printf '%A@ %P\n' | \
sort | \
head -n 1 | \
cut -d' ' -f2-)
@ -32,6 +32,6 @@ do
--remove-source-files \
--relative \
--log-file=/tmp/mergerfs-cache-rsync.log \
"${CACHE}/./${FILE}" \
"${BACKING}/"
"${CACHEFS}/./${FILE}" \
"${BASEPOOL}/"
done