From 5c44990a0bae1daeda60395b387c92728d304b9a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 10 Sep 2015 11:44:29 +0200 Subject: [PATCH] Fix automount feature after a label command After a successful label command, if the automount flag is "on" the director tries to mount the newly created volume. The protocol was broken for a couple of time. The "slot" parameter was missing in the Storage command. * label ... Requesting to mount FileStorage ... 3909 Error scanning mount command: mount FileStorage drive=-1 Do not forget to mount the drive!!! --- bacula/src/dird/ua_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/dird/ua_label.c b/bacula/src/dird/ua_label.c index 4ed16cc321..e5cc16cb75 100644 --- a/bacula/src/dird/ua_label.c +++ b/bacula/src/dird/ua_label.c @@ -475,7 +475,7 @@ checkName: bstrncpy(dev_name, store.store->dev_name(), sizeof(dev_name)); ua->info_msg(_("Requesting to mount %s ...\n"), dev_name); bash_spaces(dev_name); - sd->fsend("mount %s drive=%d", dev_name, drive); + sd->fsend("mount %s drive=%d slot=%d", dev_name, drive, mr.Slot); unbash_spaces(dev_name); while (sd->recv() >= 0) { ua->send_msg("%s", sd->msg); -- 2.39.5