mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: jeff shia <tshxiayu@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sr device can be written?
Date: Wed, 31 Aug 2005 20:47:41 -0700	[thread overview]
Message-ID: <20050831204741.397c7845.rdunlap@xenotime.net> (raw)
In-Reply-To: <7cd5d4b405083004072c30dffd@mail.gmail.com>

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

      reply	other threads:[~2005-09-01  3:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30  4:53 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 message]

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=20050831204741.397c7845.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tshxiayu@gmail.com \
    /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®