Re: sr device can be written?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



but It seems that I can not open sr0 with openflags O_RDWR,why?
open("/dev/sr0",O_RDWR);

It says:sr0 is a read only file sytem.
why?

On 8/30/05, Tino Keitel <[email protected]> wrote:
> On Tue, Aug 30, 2005 at 16:11:58 +0800, jeff shia wrote:
> > YOu mean the device file can be written?
> 
> Yes, like an ordinary block device.
> 
> >
> >
> > On 8/30/05, Tino Keitel <[email protected]> wrote:
> > > On Tue, Aug 30, 2005 at 12:53:51 +0800, jeff shia wrote:
> > > > Hello,
> > > >  Sr is the Scsi-cdrom device?so it can be read only?but look at the source=
> > > > =20
> > > > code I notice that
> > > > sr can be written also!Is it right?
> > >
> > > Just imagine a DVD-RAM drive.
> > >
> > > Regards,
> > > Tino
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > > the body of a message to [email protected]
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > > Please read the FAQ at  http://www.tux.org/lkml/
> > >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to [email protected]
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux