[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 2/9] ahci-test: Create smaller test ISO images
From: |
John Snow |
Subject: |
[Qemu-devel] [PULL v2 2/9] ahci-test: Create smaller test ISO images |
Date: |
Mon, 14 Nov 2016 11:25:39 -0500 |
These can simply be the size of the number of sectors we're reading,
plus one for a buffer. We don't need them to be any larger.
Signed-off-by: John Snow <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
Message-id: address@hidden
Signed-off-by: John Snow <address@hidden>
---
tests/ahci-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/ahci-test.c b/tests/ahci-test.c
index 70bcafa..a271cad 100644
--- a/tests/ahci-test.c
+++ b/tests/ahci-test.c
@@ -1494,9 +1494,10 @@ static void ahci_test_cdrom(int nsectors, bool dma)
.atapi_dma = dma,
.post_cb = ahci_cb_cmp_buff,
};
+ uint64_t iso_size = ATAPI_SECTOR_SIZE * (nsectors + 1);
/* Prepare ISO and fill 'tx' buffer */
- fd = prepare_iso(1024 * 1024, &tx, &iso);
+ fd = prepare_iso(iso_size, &tx, &iso);
opts.opaque = tx;
/* Standard startup wonkery, but use ide-cd and our special iso file */
--
2.7.4
- [Qemu-devel] [PULL v2 0/9] Ide patches, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 6/9] libqos/ahci: Support expected errors, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 2/9] ahci-test: Create smaller test ISO images,
John Snow <=
- [Qemu-devel] [PULL v2 4/9] block-backend: Always notify on blk_eject, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 7/9] libqos/ahci: Add ATAPI tray macros, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 1/9] atapi: classify read_cd as conditionally returning data, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 5/9] libqtest: add qmp_eventwait_ref, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 3/9] ahci-test: test atapi read_cd with bcl, nb_sectors = 0, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 8/9] libqos/ahci: Add get_sense and test_ready, John Snow, 2016/11/14
- [Qemu-devel] [PULL v2 9/9] ahci-test: add QMP tray test for ATAPI, John Snow, 2016/11/14
- Re: [Qemu-devel] [PULL v2 0/9] Ide patches, no-reply, 2016/11/14
- Re: [Qemu-devel] [PULL v2 0/9] Ide patches, Stefan Hajnoczi, 2016/11/14