/* $Id$ */
/**
* Storage: Simple I/O testing for most backends.
*/
/*
* Copyright (C) 2011-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
{
create(
"test",
"base",
"tst.disk",
"dynamic",
strBackend,
200M,
false /* fIgnoreFlush */);
io(
"test",
true,
32,
"seq",
64K,
0,
200M,
200M,
100,
"none");
io(
"test",
false,
1,
"seq",
64K,
0,
200M,
200M,
100,
"none");
io(
"test",
true,
32,
"seq",
64K,
0,
200M,
200M,
0,
"none");
io(
"test",
false,
1,
"seq",
64K,
0,
200M,
200M,
0,
"none");
create(
"test",
"diff",
"tst2.disk",
"dynamic",
strBackend,
200M,
false /* fIgnoreFlush */);
io(
"test",
true,
32,
"rnd",
64K,
0,
200M,
200M,
50,
"none");
io(
"test",
false,
1,
"rnd",
64K,
0,
200M,
200M,
50,
"none");
create(
"test",
"diff",
"tst3.disk",
"dynamic",
strBackend,
200M,
false /* fIgnoreFlush */);
io(
"test",
true,
32,
"rnd",
64K,
0,
200M,
200M,
50,
"none");
io(
"test",
false,
1,
"rnd",
64K,
0,
200M,
200M,
50,
"none");
close(
"test",
"single",
true /* fDelete */);
close(
"test",
"single",
true /* fDelete */);
close(
"test",
"single",
true /* fDelete */);
}
{
io(
"test",
false,
1,
"seq",
512,
3584,
4096,
512,
100,
"none");
io(
"test",
false,
1,
"seq",
512,
3584,
4096,
512,
0,
"none");
}
{
/* Init I/O RNG for generating random data for writes */
tstIo(
"Testing VDI",
"VDI");
tstIo(
"Testing VMDK",
"VMDK");
tstIo(
"Testing VHD",
"VHD");
tstIo(
"Testing Parallels",
"Parallels");
tstIo(
"Testing QED",
"QED");
tstIo(
"Testing QCOW",
"QCOW");
}