disk_has_partscan(9)
π NAME π
disk_has_partscan β returns %true if partition scanning is enabled on a disk, bestie. That's the whole vibe. β¨
This is the Kernel API Manual page for disk_has_partscan(9), and yes, we're getting into it. π«Ά
π SYNOPSIS π
bool disk_has_partscan (struct gendisk *disk );
πΈ ARGUMENTS πΈ
diskβ the disk you're checking, obviously. That's the argument. Go off. π
π¦ DESCRIPTION π¦
Returns true if partitions scanning is enabled for disk, or false if partition scanning is disabled β either permanently or temporarily. No cap, that's the whole check. π₯
So if you're wondering "is partition scanning on for this disk?" this is the function giving you the answer. If it's off, it might be off forever, or just off for now. Either way: false. π
π SEE ALSO π
Go peek at the Kernel file ./include/linux/blkdev.h, plus these iconic references:
genhd capability flags(9)disk_openers(9)bio_needs_zone_write_plugging(9)disk_zone_capacity(9)blk_alloc_disk(9)queue_limits_start_update(9)queue_limits_cancel_update(9)bio_end_io_acct(9)
That's the page, bestie. Sourced from ./include/linux, dated October 2026, and filed under disk_has_partscan(9) β periodt. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms