Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174568 - Cron should not run updatedb while cdrecord is active
Summary: Cron should not run updatedb while cdrecord is active
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-14 10:32 UTC by Thomas
Modified: 2007-04-14 10:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2007-04-14 10:32:20 UTC
On some systems (e. g. my notebook ;-) cdrecord needs all bus bandwidth when burning DVDs.  If cron starts updatedb while cdrecord runs, a buffer underrun may happen.

Reproducible: Sometimes




Suggested patch for /etc/cron.daily/slocate:

--- slocate     2006-09-08 10:45:35.000000000 +0200
+++ /etc/cron.daily/slocate     2007-04-14 12:11:34.000000000 +0200
@@ -1,5 +1,11 @@
 #! /bin/sh
 
+# make sure, ubdatedb is not run while cdrecord is active, may result
+# in failing toasts
+test -x /usr/bin/cdrecord && \
+fuser -s /usr/bin/cdrecord && \
+exit 2
+
 if [ -x /usr/bin/updatedb ]
 then
        if [ -f /etc/updatedb.conf ]
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-14 10:36:21 UTC
Joking, right? All current CD/DVD writers have burnfree/burnproof or equivalent buffer-underrun protection.
Comment 2 Thomas 2007-04-14 10:45:16 UTC
Sorry, not joking at all.  All CURRENT CD/DVD writers have burnfree protection, but (a) not all writers have it, and (b) its usage results in decreased capacity of the media.

The problem especially occurs on ill designed hardware, where the DVD writer and the hard disk are attached to the same IDE channel.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-14 10:52:46 UTC
Yeah, we won't do this because it doesn't make sense; live with it. If you have a sucky CD/DVD writer, then change the cronjob yourself.