Skip to content

Commit

Permalink
mxmirror: Add new labels
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Feb 8, 2022
1 parent 2e40e7e commit e7184a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mxmirror/mxmirror
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ sub convert_to_sourcepath {

my ($jbod, $path, $host, $hostpath, $partition);

if(($jbod, $path) = $string =~ /^([XCMD][\da-f]\d\d\d)(.*?)$/) {
if(($jbod, $path) = $string =~ /^([XCMD][\dA-Z]\d\d\d)(.*?)$/) {
unless(defined $jbodmap->{$jbod}) {
printf STDERR "**ERROR: unknown jbod: $string\n";
return undef
Expand Down Expand Up @@ -393,7 +393,7 @@ sub convert_to_destinationpath {

my ($jbod, $path, $host, $hostpath, $partition);

if(($jbod, $path) = $string =~ /^([XCMD][\da-f]\d\d\d)(.*?)$/) {
if(($jbod, $path) = $string =~ /^([XCMD][\dA-Z]\d\d\d)(.*?)$/) {
unless(defined $jbodmap->{$jbod}) {
printf STDERR "**ERROR: unknown jbod: $string\n";
return undef;
Expand Down Expand Up @@ -518,7 +518,7 @@ sub read_jbodmap {
my $map = {};
foreach(<F>) {
next unless (m(/amd/(.*?)/[XCMD]/([XCMD][\da-f]\d\d\d)));
next unless (m(/amd/(.*?)/[XCMD]/([XCMD][\dA-Z]\d\d\d)));
$map->{$2} = $1;
}
Expand Down

0 comments on commit e7184a2

Please sign in to comment.