From 4331383355dc1f6c554ef6e7b9575e0631ec956f Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Fri, 17 Jul 2020 22:23:07 +0200 Subject: [PATCH] marsadm: join-resource also push links --- userspace/marsadm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/userspace/marsadm b/userspace/marsadm index b518f891..12396c86 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -3622,11 +3622,14 @@ sub create_res { } else { lprint "using existing device '$dev'\n"; set_link($dev, $file); + _push_link($primary, $dev, $file) if $primary; } if ($appear) { lprint "resource '$res' will appear as local device '/dev/mars/$appear'\n"; - set_link($appear, "$resdir/device-$host"); + my $device_path = "$resdir/device-$host"; + set_link($appear, $device_path); + _push_link($primary, $appear, $device_path) if $primary; } mkdir("$resdir/userspace") unless -d "$resdir/userspace";