Add a new feature flag UBLK_F_NO_AUTO_PART_SCAN to allow users to suppress automatic partition scanning when starting a ublk device. This is useful for some cases in which user don't want to scan partitions. Users still can manually trigger partition scanning later when appropriate using standard tools (e.g., partprobe, blockdev --rereadpt).
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -367,6 +367,9 @@ · 366 unmodified lines | ||
| 367 | 367 | */ |
| 368 | 368 | #define UBLK_F_SAFE_STOP_DEV (1ULL << 17) |
| 369 | 369 | |
| 370 | +/* Disable automatic partition scanning when device is started */ | |
| 371 | +#define UBLK_F_NO_AUTO_PART_SCAN (1ULL << 18) | |
| 372 | + | |
| 370 | 373 | /* device state */ |
| 371 | 374 | #define UBLK_S_DEV_DEAD 0 |
| 372 | 375 | #define UBLK_S_DEV_LIVE 1 |