[PATCH v4] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices

2022-07-03 Thread Paul Barbieri
ding a FAT file. The new test uses ReadBlocks() to read the same "disk" block and compare it to the data read from the file system API. Signed-Off-by: Paul Barbieri Cc: Heinrich Schuchardt Cc: AKASHI Takahiro --- Changes for v3: - Added requested comment in test code Changes f

[PATCH v3] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices

2022-06-30 Thread Paul Barbieri
ding a FAT file. The new test uses ReadBlocks() to read the same "disk" block and compare it to the data read from the file system API. Signed-Off-by: Paul Barbieri Cc: Heinrich Schuchardt Cc: AKASHI Takahiro --- Changes for v3: - Added requested comment in test code lib/efi_l

[PATCH v2] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices

2022-06-30 Thread Paul Barbieri
e system test, I would see the read_blocks() routine print in the middle of the efi_disk_rw_blocks() routine. If I put the test after the file system test, I don't see read_blocks() get called. I assume this is because dev_read() is able to get the block from the cache. Signed-Off-by: Paul B

[PATCH] EFI: Fix ReadBlocks API reading incorrect sector for, UCLASS_PARTITION devices

2022-06-29 Thread Paul Barbieri
From 7a7dd7f16352fc916279cca05a3fa617f8bbef64 Mon Sep 17 00:00:00 2001 From: Paul Barbieri Date: Tue, 28 Jun 2022 20:24:33 -0400 Subject: [PATCH] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices The requested partition disk sector incorrectly has the partition