From 2879b1700fecb269c59761870b4520f9c62f6e49 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 14 Mar 2018 16:18:33 +0100 Subject: [PATCH] Introduce D label prefix for scratch raids Rationale: SW-RAIDs are assembled by serials, Serials are kept in a database, thus they need a uniqe label. Since this applies also for level-0 scratch raids, and a clash with decent SW-RAIDs (M-prefix) is unwanted, they get the D-prefix. --- mxmount | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mxmount b/mxmount index 740bf13..9ea675c 100755 --- a/mxmount +++ b/mxmount @@ -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});