Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smart: Clarify ID_ATA_SMART_ACCESS udev property values #1064

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/plugins/smart/smart-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,25 @@
* libblockdev generally tends to avoid any udev interaction, leaving the burden
* to callers.
*
* Valid values for this property include `auto`, `linux-ide`, `sat16`, `sat12`,
* `sunplus`, `jmicron`.
* Valid values for this property include:
* - `'sat16'`: 16 Byte SCSI ATA SAT Passthru
* - `'sat12'`: 12 Byte SCSI ATA SAT Passthru
* - `'linux-ide'`: Native Linux IDE
* - `'sunplus'`: SunPlus USB/ATA bridges
* - `'jmicron'`: JMicron USB/ATA bridges
* - `'none'`: No access method, avoid any I/O and ignore the device
* - `'auto'`: Autodetection based on parent subsystem (default)
*
* A common example to override QEMU ATA device type, which often requires legacy
* IDE protocol:
* |[
* KERNEL=="sd*", ENV{ID_VENDOR}=="ATA", ENV{ID_MODEL}=="QEMU_HARDDISK", ENV{ID_ATA}=="1", ENV{ID_ATA_SMART_ACCESS}="linux-ide"
* ]|
*
* An example of blacklisting a USB device, in case of errors caused by reading SMART data:
* |[
* ATTRS{idVendor}=="152d", ATTRS{idProduct}=="2329", ENV{ID_ATA_SMART_ACCESS}="none"
* ]|
*/

/**
Expand Down