summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-09-10 12:26:02 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-10 15:04:30 +0200
commit34e56246b12a285658c7654be94446b82306cc29 (patch)
tree5b9e2cbc0f9e84cbfa9d16494c53ac4ae0079333 /src/udev
parentMerge pull request #34294 from poettering/uki-with-many-core (diff)
downloadsystemd-34e56246b12a285658c7654be94446b82306cc29.tar.xz
systemd-34e56246b12a285658c7654be94446b82306cc29.zip
udev/ata_id: export read look-ahead values
Indicates whether the ATA read look-ahead feature is supported and enabled. Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/ata_id/ata_id.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c
index 6baf139044..c3388e640c 100644
--- a/src/udev/ata_id/ata_id.c
+++ b/src/udev/ata_id/ata_id.c
@@ -507,6 +507,10 @@ static int run(int argc, char *argv[]) {
printf("ID_ATA_WRITE_CACHE=1\n");
printf("ID_ATA_WRITE_CACHE_ENABLED=%d\n", (id.cfs_enable_1 & (1<<5)) ? 1 : 0);
}
+ if (id.command_set_1 & (1<<6)) {
+ printf("ID_ATA_READ_LOOKAHEAD=1\n");
+ printf("ID_ATA_READ_LOOKAHEAD_ENABLED=%d\n", (id.cfs_enable_1 & (1<<6)) ? 1 : 0);
+ }
if (id.command_set_1 & (1<<10)) {
printf("ID_ATA_FEATURE_SET_HPA=1\n");
printf("ID_ATA_FEATURE_SET_HPA_ENABLED=%d\n", (id.cfs_enable_1 & (1<<10)) ? 1 : 0);