diff options
author | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2020-07-29 10:10:23 +0200 |
---|---|---|
committer | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2020-08-12 09:17:32 +0200 |
commit | 46488b627ac8f13a3cbf83cfbfa011e82314b279 (patch) | |
tree | ca86f6aea0a4344818d8c1d381aaad7bf5058886 /hw/9pfs/virtio-9p-device.c | |
parent | d0ed6a69d399ae193959225cdeaa9382746c91cc (diff) | |
download | qemu-46488b627ac8f13a3cbf83cfbfa011e82314b279.zip qemu-46488b627ac8f13a3cbf83cfbfa011e82314b279.tar.gz qemu-46488b627ac8f13a3cbf83cfbfa011e82314b279.tar.bz2 |
tests/virtio-9p: added split readdir tests
The previous, already existing 'basic' readdir test simply used a
'count' parameter big enough to retrieve all directory entries with a
single Treaddir request.
In the 3 new 'split' readdir tests added by this patch, directory
entries are retrieved, split over several Treaddir requests by picking
small 'count' parameters which force the server to truncate the
response. So the test client sends as many Treaddir requests as
necessary to get all directory entries.
The following 3 new tests are added (executed in this sequence):
1. Split readdir test with count=512
2. Split readdir test with count=256
3. Split readdir test with count=128
This test case sequence is chosen because the smaller the 'count' value,
the higher the chance of errors in case of implementation bugs on server
side.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <569b2e05ab1d0223b14a12dfbdf3ad5e8b3ac131.1596012787.git.qemu_oss@crudebyte.com>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Diffstat (limited to 'hw/9pfs/virtio-9p-device.c')
0 files changed, 0 insertions, 0 deletions