From: <sezeroz@ttnet.net.tr>
To: <linux-kernel@vger.kernel.org>
Cc: <marcelo.tosatti@cyclades.com>
Subject: 2.4.28-rc1, more lost patches [6/10]
Date: Wed, 27 Oct 2004 12:40:36 +0300 [thread overview]
Message-ID: <20041027094036.KAGS6935.fep01.ttnet.net.tr@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 118 bytes --]
[6/10] cdrom: If the device is opened O_EXCL but there are
other openers, return busy. From ac/redhat. (by Arjan??)
[-- Attachment #2: cdrom-O_EXCL.patch --]
[-- Type: application/octet-stream, Size: 590 bytes --]
from -ac / redhat
location of code moved upwards a bit
diff -urN 28rc1/drivers/cdrom/cdrom.c 28rc1_aac/drivers/cdrom/cdrom.c
--- 28rc1/drivers/cdrom/cdrom.c 2003-11-28 20:26:20.000000000 +0200
+++ 28rc1_aac/drivers/cdrom/cdrom.c 2004-10-24 00:58:09.000000000 +0300
@@ -465,6 +465,10 @@
if ((cdi = cdrom_find_device(dev)) == NULL)
return -ENODEV;
+ /* If the device is opened O_EXCL but there are other openers, return busy */
+ if ( (fp->f_flags & O_EXCL) && (cdi->use_count>0) )
+ return -EBUSY;
+
if ((fp->f_mode & FMODE_WRITE) && !CDROM_CAN(CDC_DVD_RAM))
return -EROFS;
next reply other threads:[~2004-10-27 9:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 9:40 sezeroz [this message]
2004-10-27 10:09 ` 2.4.28-rc1, more lost patches [6/10] Arjan van de Ven
2004-10-27 12:47 ` O.Sezer
2004-10-27 13:01 ` Arjan van de Ven
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=20041027094036.KAGS6935.fep01.ttnet.net.tr@localhost \
--to=sezeroz@ttnet.net.tr \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.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