lkml.org 
[lkml]   [2004]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectHow to force cdrom driver to redetect media after cdrecord?
> > 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.147 / U:0.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site