public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: linux-kernel list <linux-kernel@vger.kernel.org>
Subject: Query removable drives (CD-ROMs, flopies etc) for media presence
Date: 20 Jan 2002 13:07:12 +0300	[thread overview]
Message-ID: <1011521234.2526.7.camel@localhost.localdomain> (raw)

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



             reply	other threads:[~2002-01-20 10:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-20 10:07 Borsenkow Andrej [this message]
2002-01-21 18:56 ` Query removable drives (CD-ROMs, flopies etc) for media presence Kevin P. Fleming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1011521234.2526.7.camel@localhost.localdomain \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox