kdave / btrfsmaintenance

Scripts for btrfs maintenance tasks like periodic scrub, balance, trim or defrag on selected mountpoints or directories.
GNU General Public License v2.0
927 stars 79 forks source link

infinity loop if raid56 scrub is canceled #124

Open bahrthaare opened 3 months ago

bahrthaare commented 3 months ago

I think raid56 scrub is waiting for scrub status finished to operate the next device. In case the scrub is canceled the status finished will not appear.
until btrfs scrub status "$DEV" | grep finished line 52 in btrfs-scrub.sh