Skip to content

Commit

Permalink
Merge pull request #7 from mariux64/add-sw-raid-for-scratch
Browse files Browse the repository at this point in the history
Introduce D label prefix for scratch raids
  • Loading branch information
donald authored Mar 14, 2018
2 parents 28c7f01 + 2879b17 commit 55cb763
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mxmount
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ sub parse_data {
if (!$data[3]) {
$D->{noexport} = 1;
}
} elsif($D->{label} =~ /^D/) { # D: scratch software raid (mdadm)
$D->{mountpoint} = 'D/' . $D->{label};
$D->{label} = lc($D->{label});
} elsif($D->{label} =~ /^M/) { # M: decent software raid (mdadm)
$D->{mountpoint} = 'M/' . $D->{label};
$D->{label} = lc($D->{label});
Expand Down

0 comments on commit 55cb763

Please sign in to comment.