Re: [Q] claimed block devices

From: Dave Kleikamp
Date: Thu Jul 22 2004 - 10:20:41 EST


On Thu, 2004-07-22 at 04:51, christophe.varoqui@xxxxxxx 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
--
David Kleikamp
IBM Linux Technology Center

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/