ide-cs drive detection for media check is broken
David Zeuthen
david at fubar.dk
Mon Oct 25 07:39:45 PDT 2004
On Mon, 2004-10-25 at 10:34 -0400, David Zeuthen wrote:
> Actually all IDE drives should have media check disabled per default
> except for optical drives. One way to check for this without opening the
> device (which causes the infinite loop) is to check
> if /proc/ide/hd?/media says cdrom. You have a patch handy?
>
We should also check the /sys/block/hd?/removable file. If it's 0 then
we can probe for filesystems (like on fixed disks), otherwise we
shouldn't except if it's a CDROM.
Cheers,
David
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list