tstVDDiscard.vd revision 1839eb6c2f3526b276ac2dcf3deae74f6ef8af44
/* $Id$ */
/**
* Storage: Testcase for discarding data in a disk.
*/
/*
* Copyright (C) 2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* 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.
*/
void main()
{
/* Init I/O RNG for generating random data for writes. */
print("Testing VDI");
/* Create disk containers, read verification is on. */
/* Create the disk. */
/* Fill the disk with random data */
/* Read the data to verify it once. */
print("Discard whole block");
print("Split Discard");
/* Cleanup */
destroydisk("disk");
/* Destroy RNG and pattern */
iorngdestroy();
}