Re: sr device can be written?

From: Randy.Dunlap (rdunlap_at_xenotime.net)
Date: 09/01/05

  • Next message: Robert Love: "[patch] updated hdaps driver."
    Date:	Wed, 31 Aug 2005 20:47:41 -0700
    To: jeff shia <tshxiayu@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
    -
    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/
    

  • Next message: Robert Love: "[patch] updated hdaps driver."

    Relevant Pages


    Loading