From: Tomas Bzatek Date: Tue, 10 Sep 2024 10:26:02 +0000 (+0200) Subject: udev/ata_id: export read look-ahead values X-Git-Tag: v257-rc1~500 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34e56246b12a285658c7654be94446b82306cc29;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c index 6baf1390449..c3388e640cb 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);