Re: [PATCH] block: add GENHD_FL_UNPARTITIONABLE
From: Bruno PrÃmont
Date: Sun Aug 14 2011 - 04:41:46 EST
On Sat, 13 August 2011 Tejun Heo <tj@xxxxxxxxxx> wrote:
> There are cases where suppressing partition scan is useful - e.g. for
> lo devices and pseudo SATA devices which advertise to be a disk but
> get upset on partition scan (some port multiplier control devices show
> such behavior).
> This patch adds GENHD_FL_UNPARTITIONABLE which suppresses partition
> scan regardless of the number of possible partitions.
Hm, would be nice if this could be set automatically for multipathed
devices where active path is being controlled out-of-band (e.g. RDAC)
and the inactive path rejects all IO.
Big question is how to let the kernel know early enough as userspace
does not know about the device before kernel tries to probe partitions.
Probably it would have to be triggered on the scsi-host side.
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/