VirtualBox

Changeset 66530 in vbox


Ignore:
Timestamp:
Apr 12, 2017 12:54:44 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114543
Message:

ValidationKit/tests/storage: Fixes for ramdisk creation on Solaris

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py

    r66244 r66530  
    152152        Creates a new storage pool with the given disks and the given RAID level.
    153153        """
    154         sZPoolRaid = None
    155         if sRaidLvl == 'raid5' or sRaidLvl is None:
     154        sZPoolRaid = None;
     155        if len(asDisks) > 1 and (sRaidLvl == 'raid5' or sRaidLvl is None):
    156156            sZPoolRaid = 'raidz';
    157157
     
    160160            fRc = oExec.execBinaryNoStdOut('zpool', ('create', '-f', sPool, sZPoolRaid,) + tuple(asDisks));
    161161        else:
    162             fRc = False;
     162            fRc = oExec.execBinaryNoStdOut('zpool', ('create', '-f', sPool,) + tuple(asDisks));;
    163163
    164164        return fRc;
     
    225225        oDisk = None;
    226226        sRamDiskName = 'ramdisk%u' % (self.idxRamDisk,);
    227         fRc, sOut, _ = oExec.execBinary('ramdiskadm', '-a', sRamDiskName, str(cbRamDisk));
     227        fRc, sOut, _ = oExec.execBinary('ramdiskadm', ('-a', sRamDiskName, str(cbRamDisk)));
    228228        if fRc:
    229229            self.idxRamDisk += 1;
Note: See TracChangeset for help on using the changeset viewer.

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