]> git.datanom.net - omvzfs.git/blobdiff - test.php
Modified icons.
[omvzfs.git] / test.php
index 88efc50c1c55385a57593467878ae666757e06e9..7647e6801fdbbcaab8eb23a53cef7a50bf2f0acb 100644 (file)
--- a/test.php
+++ b/test.php
@@ -1,6 +1,11 @@
 <?php
        require 'OMVModuleZPool.php';
 
-       $c = new OMVModuleZPool(array('type' => 1, 'vdevs' => 2), true);
-       $c->createPool(array('/dev/sda', '/dev/sdb', '/dev/sdc', '/dev/sdd'));
+       $c = new OMVModuleZPool(array('type' => 1, 'vdevs' => 2), array(), true);
+       $c->addPool(array('/dev/sda', '/dev/sdb', '/dev/sdc', '/dev/sdd'), 'test',
+                                  array('log' => array('disks' => ['/dev/sde', '/dev/sdf'], 'mirror' => true),
+                                        'cache' => ['/dev/sdg'],
+                                        'spare' => ['/dev/sdh', '/dev/sdi'])
+       );
+       //var_dump($c);
 ?>
This page took 0.031128 seconds and 5 git commands to generate.