VirtualBox

source: vbox/trunk/src/VBox/Storage/testcase/tstVDIo.vd@ 40257

Last change on this file since 40257 was 38563, checked in by vboxsync, 13 years ago

Storage: Add an almost working QCOW backend, can handle version 1 images. Support for QCOW2 is incomplete

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 KB
Line 
1# $Id: tstVDIo.vd 38563 2011-08-29 19:33:42Z vboxsync $
2#
3# Storage: Simple I/O testing for most backends.
4#
5
6#
7# Copyright (C) 2011 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18# Init I/O RNG for generating random data for writes
19iorngcreate size=10M mode=manual seed=1234567890
20
21# VMDK disk
22print msg=Testing_VMDK
23createdisk name=test verify=yes
24create disk=test mode=base name=tstShared.vmdk type=dynamic backend=VMDK size=200M
25io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
26io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
27create disk=test mode=diff name=tstShared2.vmdk type=dynamic backend=VMDK size=200M
28io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
29create disk=test mode=diff name=tstShared3.vmdk type=dynamic backend=VMDK size=200M
30io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
31close disk=test mode=single delete=yes
32close disk=test mode=single delete=yes
33close disk=test mode=single delete=yes
34destroydisk name=test
35
36# VDI disk
37print msg=Testing_VDI
38createdisk name=test verify=yes
39create disk=test mode=base name=tstShared.vdi type=dynamic backend=VDI size=200M
40io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
41io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
42create disk=test mode=diff name=tstShared2.vdi type=dynamic backend=VDI size=200M
43io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
44create disk=test mode=diff name=tstShared3.vdi type=dynamic backend=VDI size=200M
45io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
46close disk=test mode=single delete=yes
47close disk=test mode=single delete=yes
48close disk=test mode=single delete=yes
49destroydisk name=test
50
51# VHD disk
52print msg=Testing_VHD
53createdisk name=test verify=yes
54create disk=test mode=base name=tstShared.vhd type=dynamic backend=VHD size=200M
55io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
56io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
57create disk=test mode=diff name=tstShared2.vhd type=dynamic backend=VHD size=200M
58io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
59create disk=test mode=diff name=tstShared3.vhd type=dynamic backend=VHD size=200M
60io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
61close disk=test mode=single delete=yes
62close disk=test mode=single delete=yes
63close disk=test mode=single delete=yes
64destroydisk name=test
65
66# Parallels disk
67print msg=Testing_Parallels
68createdisk name=test verify=yes
69create disk=test mode=base name=tstShared.hdd type=dynamic backend=Parallels size=200M
70io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
71io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
72create disk=test mode=diff name=tstShared2.hdd type=dynamic backend=Parallels size=200M
73io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
74create disk=test mode=diff name=tstShared3.hdd type=dynamic backend=Parallels size=200M
75io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
76close disk=test mode=single delete=yes
77close disk=test mode=single delete=yes
78close disk=test mode=single delete=yes
79destroydisk name=test
80
81# QED disk
82print msg=Testing_QED
83createdisk name=test verify=yes
84create disk=test mode=base name=tstShared.qed type=dynamic backend=QED size=200M
85io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
86io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
87io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
88io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
89close disk=test mode=single delete=no
90open disk=test name=tstShared.qed backend=QED async=yes
91io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
92destroydisk name=test
93
94# QCOW disk
95print msg=Testing_QCOW
96createdisk name=test verify=yes
97create disk=test mode=base name=tstShared.qed type=dynamic backend=QCOW size=200M
98io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=100
99io disk=test async=yes max-reqs=32 mode=seq blocksize=64k off=0-200M size=200M writes=0
100io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=50
101io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
102close disk=test mode=single delete=no
103open disk=test name=tstShared.qed backend=QCOW async=yes
104io disk=test async=yes max-reqs=32 mode=rnd blocksize=64k off=0-200M size=200M writes=0
105destroydisk name=test
106
107iorngdestroy
108
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette