[pve-devel] [PATCH installer 3/3] cleanup even-ness check for ZFS RAID10
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Nov 4 12:39:08 CET 2016
---
proxinstall | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/proxinstall b/proxinstall
index c3614d8..b08a5d3 100755
--- a/proxinstall
+++ b/proxinstall
@@ -2484,9 +2484,8 @@ sub get_zfs_raid_setup {
push @$bootdevlist, $hd;
}
} elsif ($filesys eq 'zfs (RAID10)') {
- my $half = int($diskcount/2);
die "zfs (RAID10) needs at least 4 device\n" if $diskcount < 4;
- die "zfs (RAID10) needs an even number of devices\n" if $half*2 != $diskcount;
+ die "zfs (RAID10) needs an even number of devices\n" if $diskcount & 1;
push @$bootdevlist, @$devlist[0], @$devlist[1];
--
2.1.4
More information about the pve-devel
mailing list