On Thu, 2016-06-09 at 17:56 +0100, Dimitri John Ledkov wrote: > Given btrfs is linux specific, how about a systemd unit & timer unit > to do the scrub? Well it's not systemd specific... so while I like you're idea, for the sake of diversity it would IMHO be still nice to support sysvinit as well.
> btrfs-scrub.service Perhaps one could make additional "services" (of course again disabled by default. E.g. one that does balancing[0]. Then there could be a top level btrfs-maintenanance service, which pulls in all the others (e.g. balance and scrub). Also it would be nice, if one could control easily exclude/include-only filesystems (e.g. perhaps people have not so much interest in doing a scrub on their OS-filesystem, as that can be easily recovered in case of losses). Last but not least, even with systemd, I think it would be nice to have an easily accessible log that contains just any possible errors found during scrub. Cheers, Chris.
smime.p7s
Description: S/MIME cryptographic signature