mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: christophe.varoqui@free.fr
To: Dave Kleikamp <shaggy@austin.ibm.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [Q] claimed block devices
Date: Thu, 22 Jul 2004 17:54:45 +0200	[thread overview]
Message-ID: <1090511685.40ffe345f252b@imp6-q.free.fr> (raw)
In-Reply-To: <1090499383.17489.39.camel@shaggy.austin.ibm.com>

Selon Dave Kleikamp <shaggy@austin.ibm.com>:

> On Thu, 2004-07-22 at 04:51, christophe.varoqui@free.fr wrote:
> > Hello,
> >
> > does somebody know how a userspace C-proggy can detect if a block device is
> > claimed  ? Creating a device map over such devices will fail, so better not
> to
> > try.
>
> I believe trying to open the device with O_EXCL will fail if the device
> is claimed.
>
> Shaggy
> --

if I read fs/block_dev.c correctly, O_EXCL will always fail on block device.
I would also like to use the lock owner information ... which seems even more
tricky.

regards,
cvaroqui
--

  reply	other threads:[~2004-07-22 15:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-22  9:51 christophe.varoqui
2004-07-22 12:29 ` Dave Kleikamp
2004-07-22 15:54   ` christophe.varoqui [this message]
2004-07-22 16:13     ` Dave Kleikamp

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=1090511685.40ffe345f252b@imp6-q.free.fr \
    --to=christophe.varoqui@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shaggy@austin.ibm.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

all inboxes | Powered by JetHome®