Skip to content

Commit 6ef719f

Browse files
committed
fix: for zfs pools, for number of slots > 8 select 'raidz2' as defualt
1 parent 074aa30 commit 6ef719f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

emhttp/plugins/dynamix/DeviceInfo.page

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ function selectDiskFsProfileZFS(slots,init,subpool) {
367367
} else {
368368
if (slots == 1) $('#diskFsProfile').val('');
369369
if (slots == 2) $('#diskFsProfile').val('mirror');
370-
if (slots >= 3) $('#diskFsProfile').val('raidz1');
370+
if (slots >= 3 && slots <= 8) $('#diskFsProfile').val('raidz1');
371+
if (slots >= 9) $('#diskFsProfile').val('raidz2');
371372
}
372373
selectDiskFsWidthZFS(slots,init);
373374
$('#diskFsProfile').on('change', function() {

0 commit comments

Comments
 (0)