-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: add a partscan sysfs attribute for disks
commit a4217c6 upstream. Userspace had been unknowingly relying on a non-stable interface of kernel internals to determine if partition scanning is enabled for a given disk. Provide a stable interface for this purpose instead. Cc: [email protected] # 6.3+ Depends-on: 140ce28 ("block: add a disk_has_partscan helper") Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/linux-block/ZhQJf8mzq_wipkBH@gardel-login/ Link: https://lore.kernel.org/r/[email protected] [axboe: add links and commit message from Keith] Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information
1 parent
2ac28d5
commit 4fff0e1
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,16 @@ Description: | |
devices that support receiving integrity metadata. | ||
|
||
|
||
What: /sys/block/<disk>/partscan | ||
Date: May 2024 | ||
Contact: Christoph Hellwig <[email protected]> | ||
Description: | ||
The /sys/block/<disk>/partscan files reports if partition | ||
scanning is enabled for the disk. It returns "1" if partition | ||
scanning is enabled, or "0" if not. The value type is a 32-bit | ||
unsigned integer, but only "0" and "1" are valid values. | ||
|
||
|
||
What: /sys/block/<disk>/<partition>/alignment_offset | ||
Date: April 2009 | ||
Contact: Martin K. Petersen <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters