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

7 lines
152 B
Bash
Raw Normal View History

2022-01-30 13:22:47 +01:00
#!/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