Re: [PATCH 11/14] block: remove GENHD_FL_EXT_DEVT

Christoph Hellwig
2022-05-26T09:08:09Z

On Thu, May 26, 2022 at 11:06:47AM +0800, Ming Lei wrote:
> BTW, SUPPRESS_PART_SCAN looks more like one flag, instead of 'state'.

It is kinda inbetween, but I favour the state. ->flags is suppoed to be
set statically at initialization time, and the GENHD_FL_NO_PART usage
by loop is the only thing that violates it. And once a device declares
support for partitions supresing the scans is basically a policy and thus
a state anyway.