<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: hotplug events for media changes?</title>
	<atom:link href="http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/</link>
	<description>Sven's occasional log</description>
	<lastBuildDate>Mon, 23 Aug 2010 22:28:38 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: textshell</title>
		<link>http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/comment-page-1/#comment-210</link>
		<dc:creator>textshell</dc:creator>
		<pubDate>Fri, 05 Jan 2007 23:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/#comment-210</guid>
		<description>I think there is some ioctl based way to get that, i did play around with some time ago... It&#039;s not polling, the call blocks until an event is delivered (or maybe a signal to the process or such stuff). I found it in some programm out there, never seen any kind of proper documentation... 
see http://people.redhat.com/davidz/cd_poll.c for sample code  (it says poll in the comment, but it&#039;s event based )</description>
		<content:encoded><![CDATA[<p>I think there is some ioctl based way to get that, i did play around with some time ago&#8230; It&#8217;s not polling, the call blocks until an event is delivered (or maybe a signal to the process or such stuff). I found it in some programm out there, never seen any kind of proper documentation&#8230;<br />
see <a href="http://people.redhat.com/davidz/cd_poll.c" rel="nofollow">http://people.redhat.com/davidz/cd_poll.c</a> for sample code  (it says poll in the comment, but it&#8217;s event based )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sven</title>
		<link>http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/comment-page-1/#comment-208</link>
		<dc:creator>sven</dc:creator>
		<pubDate>Fri, 05 Jan 2007 01:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/#comment-208</guid>
		<description>Kevin: That&#039;s basically what I see as the problem: The kernel knows, but it won&#039;t tell. 
Glennie: inotifywait sounds like a good plan. I will try that. And since hdX/size should change any time the kernel detects a media change, this might work.... I&#039;ll see.</description>
		<content:encoded><![CDATA[<p>Kevin: That&#8217;s basically what I see as the problem: The kernel knows, but it won&#8217;t tell.<br />
Glennie: inotifywait sounds like a good plan. I will try that. And since hdX/size should change any time the kernel detects a media change, this might work&#8230;. I&#8217;ll see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glennie</title>
		<link>http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/comment-page-1/#comment-207</link>
		<dc:creator>Glennie</dc:creator>
		<pubDate>Thu, 04 Jan 2007 22:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/#comment-207</guid>
		<description>Use inotify to detect if a CD is inserted.
Try inotifywait /sys/bloc/hdX/size. This works on SID and should be better than polling the drive...</description>
		<content:encoded><![CDATA[<p>Use inotify to detect if a CD is inserted.<br />
Try inotifywait /sys/bloc/hdX/size. This works on SID and should be better than polling the drive&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Mark</title>
		<link>http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/comment-page-1/#comment-206</link>
		<dc:creator>Kevin Mark</dc:creator>
		<pubDate>Thu, 04 Jan 2007 19:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/#comment-206</guid>
		<description>This brings to mind the adage: if a tree falls in the forest and no one hears it, does it make a sound?
The kernel knows, but it wont make a &#039;sound&#039;, so hotplug can&#039;t know.
Is this a know bug? is it fixable?</description>
		<content:encoded><![CDATA[<p>This brings to mind the adage: if a tree falls in the forest and no one hears it, does it make a sound?<br />
The kernel knows, but it wont make a &#8217;sound&#8217;, so hotplug can&#8217;t know.<br />
Is this a know bug? is it fixable?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sven</title>
		<link>http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/comment-page-1/#comment-205</link>
		<dc:creator>sven</dc:creator>
		<pubDate>Thu, 04 Jan 2007 15:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/#comment-205</guid>
		<description>Yes, KDE knows about the media change through hald, which in turn seems to use hald-addon-cdrom (or a similar name), which polls the CD drive.  I&#039;m not sure though how the polling is done.</description>
		<content:encoded><![CDATA[<p>Yes, KDE knows about the media change through hald, which in turn seems to use hald-addon-cdrom (or a similar name), which polls the CD drive.  I&#8217;m not sure though how the polling is done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/comment-page-1/#comment-204</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 04 Jan 2007 15:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.incase.de/index.php/2007/01/04/hotplug-events-for-media-changes/#comment-204</guid>
		<description>I remember religiously uninstalling/deleting/nuking/going-in-with-a-scalpel-and-scraping-the-hard-disk-to-make-sure whatever utility used to do that &quot;poll the CD evey second to check what&#039;s in it, and log to syslog if it errors out because there&#039;s nothing there.&quot;  Was it autofs, automount?  Seems like I haven&#039;t had to do that in a few years, but my Etch KDE still knows that a CD was inserted.  So it is still polling the drive, and just leaving syslog alone?  A step in the right direction!</description>
		<content:encoded><![CDATA[<p>I remember religiously uninstalling/deleting/nuking/going-in-with-a-scalpel-and-scraping-the-hard-disk-to-make-sure whatever utility used to do that &#8220;poll the CD evey second to check what&#8217;s in it, and log to syslog if it errors out because there&#8217;s nothing there.&#8221;  Was it autofs, automount?  Seems like I haven&#8217;t had to do that in a few years, but my Etch KDE still knows that a CD was inserted.  So it is still polling the drive, and just leaving syslog alone?  A step in the right direction!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
