From 34e56246b12a285658c7654be94446b82306cc29 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Tue, 10 Sep 2024 12:26:02 +0200 Subject: [PATCH] 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 --- src/udev/ata_id/ata_id.c | 4 ++++ 1 file changed, 4 insertions(+) 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);