blockdev-util: Add recursive lookup flag
Originating device lookups currently use separate entry points and callers must decide between the single-step helper and manual looping. Add a recursive flag to block_device_get_originating() and block_get_originating(), and update callers to pass an explicit value.
This commit is contained in:
@@ -678,7 +678,7 @@ static int get_sysext_overlay_block(const char *p, dev_t *ret) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
(void) block_get_originating(*ret, ret);
|
||||
(void) block_get_originating(*ret, ret, /* recursive= */ false);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user