Messages in this thread | | | Date | Sun, 14 Aug 2011 10:41:02 +0200 | From | Bruno Prémont <> | Subject | Re: [PATCH] block: add GENHD_FL_UNPARTITIONABLE |
| |
On Sat, 13 August 2011 Tejun Heo <tj@kernel.org> 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.
Bruno
| |