Skip to content

Commit

Permalink
Merge pull request #45 from mariux64/mxraid-fixups
Browse files Browse the repository at this point in the history
Mxraid fixups
  • Loading branch information
thomas authored May 14, 2018
2 parents ba43420 + 550576b commit e3496c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mxraid/mxraid_assemble
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if ($opts{l}) {
print "\n";
}
if ($VERBOSE >= 2) {
print "Disks not part of a SW-RAID:\n";
print "Disks not part of a configured SW-RAID:\n";
for my $rec (@{$hd->non_raid_disks()}) {
printf " %5s %-16s '%s'\n", @$rec;
}
Expand Down Expand Up @@ -297,8 +297,8 @@ sub create_mdadm_configs {
if ($do_assemble) {
my @args = ('mdadm', '-A', '/dev/md'.$dev_no, '-c', $conf_fn);
push @args, split m/\s+/, $MDADM_ASSEMBLE_OPTIONS if $MDADM_ASSEMBLE_OPTIONS;
warn printf "# NOTE: $rlabel, running '%s'\n", join(' ', @args) if $VERBOSE >= 2;
system (@args) == 0 or warn "# Error system @args failed: $?" if $VERBOSE >= 1;
warn sprintf "# NOTE: $rlabel, running '%s'\n", join(' ', @args) if $VERBOSE >= 2;
system (@args) == 0 or warn "# Error system @args failed: $?"; # serious, always warn
} else {
printf "mdadm -A /dev/md%d -c %s\n", $dev_no, $conf_fn;
}
Expand Down

0 comments on commit e3496c9

Please sign in to comment.