public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Query removable drives (CD-ROMs, flopies etc) for media presence
@ 2002-01-20 10:07 Borsenkow Andrej
  2002-01-21 18:56 ` Kevin P. Fleming
  0 siblings, 1 reply; 2+ messages in thread
From: Borsenkow Andrej @ 2002-01-20 10:07 UTC (permalink / raw)
  To: linux-kernel list

Is there reliable way to query drives for media presence? I have tried
query_disk_change but it returns 1 if called without media inserted (it
correctly works if media is present when it is called). I need it for
CD-ROMs (IDE or SCSI) and possibly for other drives with removable media
like floppy, Zip, Jaz.

So far I tried with two IDE CD-ROMs and floppy and all show the same -
query_disk_change always 1 when no media is present.

The reason is I'd like to avoid media access when it is known no media
is present. The kernel is 2.4.17.

TIA

-andrej



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-21 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-20 10:07 Query removable drives (CD-ROMs, flopies etc) for media presence Borsenkow Andrej
2002-01-21 18:56 ` Kevin P. Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox