mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Don't enable read-write on RAID 0, thanks to Caspar Smit
This commit is contained in:
@@ -365,8 +365,10 @@ else {
|
||||
local $out = &backquote_logged("$cmd 2>&1 </dev/null");
|
||||
|
||||
# After creating a RAID set mode to read/write.
|
||||
local $cmd = "mdadm --readwrite $_[0]->{'value'}";
|
||||
local $out = &backquote_logged("$cmd 2>&1 </dev/null");
|
||||
if ($lvl ne '0') {
|
||||
local $cmd = "mdadm --readwrite $_[0]->{'value'}";
|
||||
local $out = &backquote_logged("$cmd 2>&1 </dev/null");
|
||||
}
|
||||
|
||||
return $? ? &text('emdadmcreate', "<pre>$out</pre>") : undef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user