If running with idle class for the io scheduler, an iopriority parameter is forced by the slocate cron job script. But a priority is ignored, if in idle class. Thus ionice prints an error that gets mailed. Reproducible: Always Steps to Reproduce: 1. Set IONICE_CLASS="3" in /etc/updatedb.conf 2. Wait for cron.daily to be run. 3. Check mails. :-)
Created attachment 180792 [details, diff] Sets the IONICE_PRIORITY variable only if IONICE_CLASS!=3.
ive changed it so people can disable different pieces of ionice by setting the variable to "" ... this way we dont have to maintain logic in slocate as to what args work with what http://sources.gentoo.org/sys-apps/slocate/files/slocate-3.1-cron2.patch?r1=1.1&r2=1.2
Shouldn't there be a revbump of slocate to get this change installed in the course of a normal world update?