Re: [PATCH 1/5] block: refactor rescan_partitions

Hannes Reinecke
2019-11-07T09:39:56Z

On 11/6/19 4:14 PM, Christoph Hellwig wrote:
> Split out a helper that adds one single partition, and another one
> calling that dealing with the parsed_partitions state. This makes
> it much more obvious how we clean up all state and start again when
> using the rescan label.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> block/partition-generic.c | 176 +++++++++++++++++++++-----------------
> 1 file changed, 96 insertions(+), 80 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 247165 (AG München), GF: Felix Imendörffer