Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257475 - sys-apps/slocate: cron job always sends error mails with ionice idle class
Summary: sys-apps/slocate: cron job always sends error mails with ionice idle class
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 10:48 UTC by Jan-Matthias Braun
Modified: 2009-03-16 10:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Sets the IONICE_PRIORITY variable only if IONICE_CLASS!=3. (idle_class.patch,661 bytes, patch)
2009-02-03 10:49 UTC, Jan-Matthias Braun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Matthias Braun 2009-02-03 10:48:04 UTC
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. :-)
Comment 1 Jan-Matthias Braun 2009-02-03 10:49:51 UTC
Created attachment 180792 [details, diff]
Sets the IONICE_PRIORITY variable only if IONICE_CLASS!=3.
Comment 2 SpanKY gentoo-dev 2009-02-07 07:45:05 UTC
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
Comment 3 Martin von Gagern 2009-03-16 10:02:06 UTC
Shouldn't there be a revbump of slocate to get this change installed in the course of a normal world update?