Re: [PATCH] nbd: Respect max_part for all partition scans

2020-12-17 Thread Jens Axboe
On 12/17/20 1:58 AM, Josh Triplett wrote: > The creation path of the NBD device respects max_part and only scans for > partitions if max_part is not 0. However, some other code paths ignore > max_part, and unconditionally scan for partitions. Add a check for > max_part on each partition scan. Appl

Re: [PATCH] nbd: Respect max_part for all partition scans

2020-12-17 Thread Josef Bacik
On 12/17/20 3:58 AM, Josh Triplett wrote: The creation path of the NBD device respects max_part and only scans for partitions if max_part is not 0. However, some other code paths ignore max_part, and unconditionally scan for partitions. Add a check for max_part on each partition scan. Signed-off

[PATCH] nbd: Respect max_part for all partition scans

2020-12-17 Thread Josh Triplett
The creation path of the NBD device respects max_part and only scans for partitions if max_part is not 0. However, some other code paths ignore max_part, and unconditionally scan for partitions. Add a check for max_part on each partition scan. Signed-off-by: Josh Triplett --- Caught this when re