Re: [PATCH v2 02/13] hw: Replace trivial drive_get_next() by drive_get()

2021-11-19 Thread Alistair Francis
On Thu, Nov 18, 2021 at 2:42 AM Markus Armbruster wrote: > > drive_get_next() is basically a bad idea. It returns the "next" block > backend of a certain interface type. "Next" means bus=0,unit=N, where > subsequent calls count N up from zero, per interface type. > > This lets you define unit nu

[PATCH v2 02/13] hw: Replace trivial drive_get_next() by drive_get()

2021-11-17 Thread Markus Armbruster
drive_get_next() is basically a bad idea. It returns the "next" block backend of a certain interface type. "Next" means bus=0,unit=N, where subsequent calls count N up from zero, per interface type. This lets you define unit numbers implicitly by execution order. If the order changes, or new ca