projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0de3847
)
Don't enable read-write on RAID 0, thanks to Caspar Smit
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 23 Feb 2010 23:13:12 +0000
(15:13 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 23 Feb 2010 23:13:12 +0000
(15:13 -0800)
raid/raid-lib.pl
patch
|
blob
|
history
diff --git
a/raid/raid-lib.pl
b/raid/raid-lib.pl
index
2b103b4
..
947a2d1
100755
(executable)
--- a/
raid/raid-lib.pl
+++ b/
raid/raid-lib.pl
@@
-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;
}