From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Eduard Bloch <edi@gmx.de>
Cc: linux-kernel@vger.kernel.org,
debburn-devel@lists.alioth.debian.org, Jens Axboe <axboe@suse.de>
Subject: Re: broken device locking, sg vs. sg_io on block devices
Date: Wed, 11 Apr 2007 12:31:02 +0100 [thread overview]
Message-ID: <20070411123102.7dc238d7@the-village.bc.nu> (raw)
In-Reply-To: <20070411101245.GA32592@rotes76.wohnheim.uni-kl.de>
> > Can we do following without having side effects:
> >
> > open("/dev/sr0",O_EXCL|O_RDWR); /* no matter what it returns */
> > fcntl(..., F_SETLK); /* no matter what it returns */
> > ioctl(f, SCSI_IOCTL_GET_IDLUN, &x);
> > ioctl(f, SCSI_IOCTL_GET_BUS_NUMBER, &jo);
> >
> > Can you guarantee us that bit?
open() has side effects. The CD layer allows you to open with O_NDELAY if
you want to avoid them.
> [1] and when we get real critical questions then everything we get is
> radio silence? Very kindly. NOT.
Given the attitude that was shown before be glad I'm even bothering to
reply to this.
next prev parent reply other threads:[~2007-04-11 11:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200703261811.21448.gerald@itzgrund.net>
2007-03-30 11:17 ` Eduard Bloch
2007-03-30 13:43 ` Christoph Hellwig
2007-03-30 14:21 ` Eduard Bloch
2007-03-30 18:10 ` Alan Cox
2007-03-31 17:07 ` Eduard Bloch
2007-03-31 22:20 ` Alan Cox
2007-03-31 22:40 ` Eduard Bloch
2007-04-01 0:14 ` Alan Cox
2007-04-01 2:34 ` Oleg Verych
2007-04-07 11:21 ` Eduard Bloch
2007-04-11 10:12 ` Eduard Bloch
2007-04-11 11:31 ` Alan Cox [this message]
2007-04-11 12:19 ` Eduard Bloch
2007-03-30 19:09 ` Jan Engelhardt
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=20070411123102.7dc238d7@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=axboe@suse.de \
--cc=debburn-devel@lists.alioth.debian.org \
--cc=edi@gmx.de \
--cc=linux-kernel@vger.kernel.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®