Affects master branch an[d] current stable release 0.5.
On a system where a btrfs filesystem exists directly on a LUKS volume.
Where this fs is mounted using /dev/mapper/foo in /etc/fstab.
btrfsmaintenance-functions:L21 returns '/dev/mapper/foo' rather than a mount point.
Which means 'stat -f --format=%T' in is_btrfs() returns tmpfs.
This means 'BTRFS_SCRUB_MOUNTPOINTS="auto"' in the config file skips all filesystems that match conditions one and two.
The user expectation for "auto" to work properly is not met.
Unfortunately, the is_btrfs check at btrfs-scrub.sh:39 means 'BTRFS_SCRUB_MOUNTPOINTS="/mount/point/for/LUKS_btrfs_fs"' will also fail, and thus cannot be used as a workaround. Additionally the expectation that an explicitly specified mount point will be scrubbed is not met.
Affects master branch an[d] current stable release 0.5.
Please fix this :)