X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/aa5925ead58f8a9ff47a68d4333fafaf51f47683..503ffcc8df9da14d4002f02f02b67face4e7edaf:/src/Vdev.php diff --git a/src/Vdev.php b/src/Vdev.php index bdaab9c..2c5f999 100644 --- a/src/Vdev.php +++ b/src/Vdev.php @@ -45,7 +45,7 @@ class OMVModuleZFSVdev { * @throws OMVModuleZFSException */ - public function __construct($pool, OMVModuleZFSVdevType $type, array $disks) { + public function __construct($pool, $type, array $disks) { switch ($type) { case OMVModuleZFSVdevType::OMVMODULEZFSPLAIN: break; @@ -65,6 +65,8 @@ class OMVModuleZFSVdev { if (count($disks) < 5) throw new OMVModuleZFSException("A Raidz3 must contain at least 5 disks"); break; + default: + throw new OMVModuleZFSException("$type: Unknown zpool type"); } $this->pool = $pool; $this->disks = $disks;