https://bugzilla.redhat.com/show_bug.cgi?id=1154807
Bug ID: 1154807 Summary: Review Request: btrfsmaintenance - periodically run preventative mainteneance for BTRFS fs Product: Fedora Version: rawhide Component: Package Review Severity: medium Assignee: nobody@fedoraproject.org Reporter: gczarcinski@gmail.com QA Contact: extras-qa@fedoraproject.org CC: package-review@lists.fedoraproject.org
Spec URL: http://czarc.org/review/btrfsmaintenance.spec SPRM URL: http://czarc.org/review/btrfsmaintenance-0.1.0-2.fc21.src.rpm
Description: The btrfsmaintenance package was created by David Sterba for SUSE/OpenSUSE and is intended to implement periodically running some operations on a BTRFS filesystem as a preventative maintenance measure to prevent filesystem problems before they occur. Specifically, the operations are: 1. btrfs-balance (default weekly) 2. btrfs-scrub (default monthly) 3. /usr/sbin/fstrim (default weekly) 4. btrfs-fi-defrag (default none)
The changes implemented for Fedora include: 1. Port to Fedora. This is mostly fixing the spec file.
2. Add MOUNTPOINT=all feature. The original package uses a mountpoint specified in /etc/sysconfig/btrfsmaintenance. This change adds code to scan /proc/mounts for the unique btrfs volumes mounted and then performs the operation on each one.
3. Use systemd-cat to put all messages and command output into the journal.
It appears that upstream will be incorporating these updates into the master branch.
Note: There are rpmlint errors with the spec file but all of these errors are in the suse parts.
Note: I would also like to have a co-maintainer for this package.