From: Peter Osterlund <petero2@telia.com>
To: Linus Torvalds <torvalds@osdl.org>, Jens Axboe <axboe@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Can't open CDROM device for writing
Date: 01 Jul 2004 13:34:54 +0200 [thread overview]
Message-ID: <m2eknw3qqp.fsf@best.localdomain> (raw)
Opening a CDROM device for writing no longer works, because
cdrom_open() returns -EROFS even if cdrom_open_write() succeeds. This
patch for 2.6.7-bk13 fixes it.
Signed-off-by: Peter Osterlund <petero2@telia.com>
---
linux-petero/drivers/cdrom/cdrom.c | 1 +
1 files changed, 1 insertion(+)
diff -puN drivers/cdrom/cdrom.c~cdrom-write-fix drivers/cdrom/cdrom.c
--- linux/drivers/cdrom/cdrom.c~cdrom-write-fix 2004-07-01 13:16:27.772595136 +0200
+++ linux-petero/drivers/cdrom/cdrom.c 2004-07-01 13:17:34.380469200 +0200
@@ -901,6 +901,7 @@ int cdrom_open(struct cdrom_device_info
goto err;
if (cdrom_open_write(cdi))
goto err;
+ ret = 0;
}
}
_
--
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340
next reply other threads:[~2004-07-01 11:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-01 11:34 Peter Osterlund [this message]
2004-07-02 13:26 ` Jens Axboe
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=m2eknw3qqp.fsf@best.localdomain \
--to=petero2@telia.com \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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®