From 69e332326361424ca78306ccf79eef7f8c9e9347 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 21 Sep 2021 14:01:08 +0200 Subject: [PATCH] make-automaps: add new JBOD label M[a-z]\d\d\d --- make-automaps/make-automaps | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/make-automaps/make-automaps b/make-automaps/make-automaps index 2b0bc30..4c23378 100755 --- a/make-automaps/make-automaps +++ b/make-automaps/make-automaps @@ -47,7 +47,7 @@ sub parse_jbod_line { return join(' ',$1,server_vers_opt($2),"$2:/amd/$2/X/$1"); } elsif ($in=~m"^(C\d+)\s+host==([^;]+);type:=link;fs:=/amd/\2/C/\1 host!=\2;type:=nfs;rhost:=\2;fs:=/amd/\2/c/\1;rfs:=/amd/\2/C/\1$") { return join(' ',$1,server_vers_opt($2),"$2:/amd/$2/C/$1"); - } elsif ($in=~m"^(M\d+)\s+host==([^;]+);type:=link;fs:=/amd/\2/M/\1 host!=\2;type:=nfs;rhost:=\2;fs:=/amd/\2/m/\1;rfs:=/amd/\2/M/\1$") { + } elsif ($in=~m"^(M[\da-z]\d{3})\s+host==([^;]+);type:=link;fs:=/amd/\2/M/\1 host!=\2;type:=nfs;rhost:=\2;fs:=/amd/\2/m/\1;rfs:=/amd/\2/M/\1$") { return join(' ',$1,server_vers_opt($2),"$2:/amd/$2/M/$1"); } elsif ($in=~m"^(X\d+)\s+-fs:=/amd/([^/]+)/X/\1 host==\2;type:=link host!=\2;type:=nfs;rhost:=\2") { return join(' ',$1,server_vers_opt($2),"$2:/amd/$2/X/$1"); @@ -201,4 +201,3 @@ create_pkg_map(); close O; -e "/var/run/autofs-running" and system "kill -HUP `cat /var/run/autofs-running`"; -