computer-playbook/roles/native-btrfs-health-check/files/btrfs-health-check.sh

7 lines
152 B
Bash

#!/bin/bash
# Checks the healt of all btrfs volumes
for path in $(btrfs filesystem show | awk '/ path /{print $NF}')
do
btrfs device stats $path
done