aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2024-05-02 15:00:32 +0200
committerJens Axboe <[email protected]>2024-05-03 08:59:59 -0600
commit140ce28dd3bee8e53acc27f123ae474d69ef66f0 (patch)
treebadd9cf1f719edebd6757cadf433821b0e93889a /rust/helpers/helpers.c
parentd0487577e6e0b640d71375a6ec2f9e8a2d3555f2 (diff)
block: add a disk_has_partscan helper
Add a helper to check if partition scanning is enabled instead of open coding the check in a few places. This now always checks for the hidden flag even if all but one of the callers are never reachable for hidden gendisks. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions