From: David Zeuthen Date: Mon, 28 Jul 2008 16:23:32 +0000 Subject: Re: cd-tray immediately closed after it has been opened Message-Id: <1217262212.12534.3.camel@x61.fubar.dk> List-Id: References: <488CCA58.7030409@plauener.de> In-Reply-To: <488CCA58.7030409@plauener.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 2008-07-28 at 10:48 +0200, Christian Krause wrote: > fixes the problem, too. But it looks like that this is discouraged: > > http://gitweb.freedesktop.org/?p=hal.git;a=commit;h-ab6d1b27a160895e99f3a7111a78aff68baff3 I remember something funky about that; so we probably need to special case vol_id to do something similar, e.g. first check for media and if there is media make vol_id open it without O_NONBLOCK. And probably only do the media check for optical drives. David