From: Byron Stanoszek <gandalf@winds.org>
To: linux-kernel@vger.kernel.org
Cc: axboe@image.dk
Subject: How to force cdrom driver to redetect media after cdrecord?
Date: Wed, 25 Feb 2004 16:19:17 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.58.0402251611590.6015@winds.org> (raw)
> > I originally thought so, but maybe I was wrong. Jens posted a patch
> > to invalidate kernel buffers on an umount - if the problem persists
> > with that patch, I still believe it is a hardware fault.
>
> Perhaps another program has the device open still? In that case, we
> don't invalidate the toc cache.
>
> --
> Jens Axboe
Jens,
I ran into something similar today. I'd like to use cdrecord to write to a CD
and then immediately turn around and read from it for verification purposes...
...Except that I only get 2048 bytes from a 'cat /dev/scd0' until I take the CD
out and put it back in.
Is there a known way for a userland application to make an ioctl to the cdrom
device in a 2.4/2.6 kernel to tell it the media changed without forcing a tray
open & close?
I intend to execute a program with this ioctl (if there is such a thing) after
the cdrecord and before the 'cat'.
Thanks,
-Byron
--
Byron Stanoszek Ph: (330) 644-3059
Systems Programmer Fax: (330) 644-8110
Commercial Timesharing Inc. Email: byron@comtime.com
next reply other threads:[~2004-02-25 21:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-25 21:19 Byron Stanoszek [this message]
2004-02-26 6:55 ` Jens Axboe
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=Pine.LNX.4.58.0402251611590.6015@winds.org \
--to=gandalf@winds.org \
--cc=axboe@image.dk \
--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
all inboxes | Powered by JetHome®