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

Make btrfs-defrag-plugin.py Python 2+3 compatible #47

Closed lpechacek closed 6 years ago

lpechacek commented 6 years ago

There is demand from distro vendor(s) for making btrfs-defrag-plugin.py work with Python 3. This patch addresses the need.

lpechacek commented 6 years ago

Successfully tested with both Python 2.7 and 3.6.

kdave commented 6 years ago

Merged, thanks.