From: Michal Schmidt <xschmi00@stud.feec.vutbr.cz>
To: Bill Davidsen <davidsen@tmr.com>, Nick Sanders <sandersn@btinternet.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Unable to burn DVDs
Date: Tue, 18 Jan 2005 11:56:05 +0100 [thread overview]
Message-ID: <41ECEB45.5040505@stud.feec.vutbr.cz> (raw)
In-Reply-To: <41E557BC.9010405@tmr.com>
[-- Attachment #1: Type: text/plain, Size: 1235 bytes --]
Bill Davidsen wrote:
> Nick Sanders wrote:
>>For me when running growisofs with user permissions on 2.6.10 (ide-cd) it
>>works perfectly 1st time but 2nd time fails with the error below. It works
>>fine when run as root.
>>
>>:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted
>>
>>As an aside audio cd burning with cdrecord works as long as the '-text' option
>>isn't used, if it is the process hangs.
>
>
> I reported a similar thing with cdrecord, writing a first session
> successfully using the -multi flag, but not being able to append to it
> or read the size with the "-msinfo" flag. I was totally blown off and
> told I didn't have permissions on the device, even though I was able to
> write to it.
>
> I believe the true answer is that the SCSI command filter is blocking a
> command needed to perform the operation, probably a command to lock the
> door of the drive. In my case I have permissions to write the CD, just
> not to read the info needed to write additional sessions.
>
Hello,
Bill and Nick, could you try the attached patch that I sent to Jens
Axboe yesterday? (You can see the mail with an explanation on
http://marc.theaimsgroup.com/?l=linux-kernel&m=110599420505734&w=2 )
Michal
[-- Attachment #2: verify_command.patch --]
[-- Type: text/x-patch, Size: 490 bytes --]
--- linux-2.6.11-mm1/drivers/block/scsi_ioctl.c.orig 2005-01-17 20:42:40.000000000 +0100
+++ linux-2.6.11-mm1/drivers/block/scsi_ioctl.c 2005-01-17 20:43:14.000000000 +0100
@@ -197,9 +197,7 @@ static int verify_command(struct file *f
if (type & CMD_WRITE_SAFE) {
if (file->f_mode & FMODE_WRITE)
return 0;
- }
-
- if (!(type & CMD_WARNED)) {
+ } else if (!(type & CMD_WARNED)) {
cmd_type[cmd[0]] = CMD_WARNED;
printk(KERN_WARNING "scsi: unknown opcode 0x%02x\n", cmd[0]);
}
next prev parent reply other threads:[~2005-01-18 10:58 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-10 21:48 Unable to burn DVDs Laurent CARON
2005-01-10 22:29 ` Lennart Sorensen
2005-01-10 22:42 ` Laurent CARON
2005-01-10 23:50 ` Kasper Sandberg
2005-01-11 7:08 ` Jan Engelhardt
2005-01-11 16:11 ` Alan Cox
2005-01-11 18:30 ` Laurent CARON
2005-01-11 18:47 ` Grzegorz Kulewski
2005-01-11 19:00 ` Laurent CARON
2005-01-11 19:10 ` Jan Engelhardt
2005-01-11 20:09 ` Sipos Ferenc
2005-01-11 21:51 ` Nick Sanders
2005-01-12 17:00 ` Bill Davidsen
2005-01-18 10:56 ` Michal Schmidt [this message]
2005-01-18 23:41 ` Bill Davidsen
2005-01-19 9:26 ` Nick Sanders
[not found] ` <abdc35ac0501111439dc965e6@mail.gmail.com>
2005-01-11 22:54 ` Laurent CARON
2005-01-11 20:08 ` Peter Osterlund
2005-01-12 7:25 ` Unable to burn DVDs (possible pktcdvd problem?) Paul
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=41ECEB45.5040505@stud.feec.vutbr.cz \
--to=xschmi00@stud.feec.vutbr.cz \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sandersn@btinternet.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;
as well as URLs for NNTP newsgroup(s).