public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sr device can be written?
@ 2005-08-30  4:53 jeff shia
  2005-08-30  8:08 ` Tino Keitel
  0 siblings, 1 reply; 6+ messages in thread
From: jeff shia @ 2005-08-30  4:53 UTC (permalink / raw)
  To: linux-kernel

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?

Jeff

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

* Re: sr device can be written?
  2005-08-30  4:53 sr device can be written? jeff shia
@ 2005-08-30  8:08 ` Tino Keitel
  2005-08-30  8:11   ` jeff shia
  0 siblings, 1 reply; 6+ messages in thread
From: Tino Keitel @ 2005-08-30  8:08 UTC (permalink / raw)
  To: linux-kernel

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

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

* Re: sr device can be written?
  2005-08-30  8:08 ` Tino Keitel
@ 2005-08-30  8:11   ` jeff shia
  2005-08-30  9:53     ` Tino Keitel
  0 siblings, 1 reply; 6+ messages in thread
From: jeff shia @ 2005-08-30  8:11 UTC (permalink / raw)
  To: linux-kernel

YOu mean the device file can be written?


On 8/30/05, Tino Keitel <tino.keitel@gmx.de> 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 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/
>

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

* Re: sr device can be written?
  2005-08-30  8:11   ` jeff shia
@ 2005-08-30  9:53     ` Tino Keitel
  2005-08-30 11:07       ` jeff shia
  0 siblings, 1 reply; 6+ messages in thread
From: Tino Keitel @ 2005-08-30  9:53 UTC (permalink / raw)
  To: linux-kernel

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 <tino.keitel@gmx.de> 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 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/
> >
> -
> 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/
> 

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

* Re: sr device can be written?
  2005-08-30  9:53     ` Tino Keitel
@ 2005-08-30 11:07       ` jeff shia
  2005-09-01  3:47         ` Randy.Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: jeff shia @ 2005-08-30 11:07 UTC (permalink / raw)
  To: linux-kernel

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 <tino.keitel@gmx.de> 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 <tino.keitel@gmx.de> 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 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/
> > >
> > -
> > 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/
> >
> -
> 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/
>

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

* Re: sr device can be written?
  2005-08-30 11:07       ` jeff shia
@ 2005-09-01  3:47         ` Randy.Dunlap
  0 siblings, 0 replies; 6+ messages in thread
From: Randy.Dunlap @ 2005-09-01  3:47 UTC (permalink / raw)
  To: jeff shia; +Cc: linux-kernel

On Tue, 30 Aug 2005 19:07:55 +0800 jeff shia wrote:

> 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?

What media did you have in the drive?

For me, with a CD-ROM, I get the same that you reported,
but with a DVD+RW disc, it opens successfully.


> On 8/30/05, Tino Keitel <tino.keitel@gmx.de> 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 <tino.keitel@gmx.de> 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
> > > > -

---
~Randy

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

end of thread, other threads:[~2005-09-01  3:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-30  4:53 sr device can be written? jeff shia
2005-08-30  8:08 ` Tino Keitel
2005-08-30  8:11   ` jeff shia
2005-08-30  9:53     ` Tino Keitel
2005-08-30 11:07       ` jeff shia
2005-09-01  3:47         ` Randy.Dunlap

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