VirtualBox

source: vbox/trunk/src/VBox/Storage/testcase/tstVDShareable.vd@ 35789

Last change on this file since 35789 was 35789, checked in by vboxsync, 14 years ago

Storage/tstVDIo: Updates + sample script which is a replacement of tstVDShareable

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1# $Id: tstVDShareable.vd 35789 2011-01-31 15:25:22Z vboxsync $
2#
3# Storage: Testcase for shareable disks.
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 seed=1234567890
20
21# Create disk containers.
22createdisk name=shared1
23createdisk name=shared2
24
25# Create the disk and close it.
26create disk=shared1 mode=base name=tstShared.vdi type=fixed backend=VDI size=20M
27close disk=shared1 mode=all delete=no
28
29# Open the disk with sharing enabled.
30open disk=shared1 name=tstShared.vdi backend=VDI shareable=yes
31open disk=shared2 name=tstShared.vdi backend=VDI shareable=yes
32
33# Write to one disk and verify that the other disk can see the content.
34io disk=shared1 async=yes max-reqs=32 mode=seq blocksize=64k off=0-20M size=20M writes=100
35comparedisks disk1=shared1 disk2=shared2
36
37# Write to the second disk and verify that the first can see the content.
38io disk=shared2 async=yes max-reqs=64 mode=seq blocksize=8k off=0-20M size=20M writes=50
39comparedisks disk1=shared1 disk2=shared2
40
41# Close but don't delete yet.
42close disk=shared1 mode=all delete=no
43close disk=shared2 mode=all delete=no
44
45# Open and delete
46open disk=shared1 name=tstShared.vdi backend=VDI shareable=no
47close disk=shared1 mode=single delete=yes
48
49# Cleanup
50destroydisk name=shared1
51destroydisk name=shared2
52iorngdestroy
53
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