ansible/roles/cryptoraid/files/bin/fs_trim.sh

7 lines
79 B
Bash

#!/bin/sh
set -e
FS_ROOT="${BTRFS_ROOT:-/mnt/btr_pool}"
fstrim -v "$FS_ROOT"