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
900 stars 79 forks source link

defrag does not descend into subvolumes #37

Closed Zugschlus closed 6 years ago

Zugschlus commented 6 years ago

Hi, btrfs-defrag.sh makes use of find -xdev, which treats a subvolume boundary as device boundary and stops descending. If this is the intended behavior, it should be documented. If it is not the intendedn behavior, the script needs to build a list of subvolumes that are part oft the BTRFS_DEFRAG_PATHS and invoke find for each of them. Greetings Marc

kdave commented 6 years ago

Can you please check if the updated documentation is sufficient? Thanks.