1 | # $Id: tstVDResize.vd 44227 2013-01-02 12:15:42Z vboxsync $
|
---|
2 | #
|
---|
3 | # Storage: Resize testing for VDI.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2013 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.alldomusa.eu.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
|
---|
19 | iorngcreate size=10M mode=manual seed=1234567890
|
---|
20 |
|
---|
21 | # VDI disk
|
---|
22 | print msg=Testing_VDI
|
---|
23 | createdisk name=test verify=yes
|
---|
24 | create disk=test mode=base name=tst.vdi type=dynamic backend=VDI size=1T
|
---|
25 | io disk=test async=no mode=seq blocksize=64k off=255g-257g size=2g writes=100
|
---|
26 | resize disk=test size=1331200M
|
---|
27 | io disk=test async=no mode=seq blocksize=64k off=255g-257g size=2g writes=0
|
---|
28 | destroydisk name=test
|
---|
29 |
|
---|
30 | iorngdestroy
|
---|
31 |
|
---|