From: Eric Bollengier Date: Tue, 20 Oct 2009 07:31:41 +0000 (+0000) Subject: permits "update slot(s)" and "label barcodes slot(s)" command X-Git-Tag: Release-5.0.0~282^2~11^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=469f36f70869254aec09af6c7a325f85d642ffef;p=bacula%2Fbacula permits "update slot(s)" and "label barcodes slot(s)" command --- diff --git a/bacula/src/dird/ua_label.c b/bacula/src/dird/ua_label.c index 08d022096f..3d59944dd2 100644 --- a/bacula/src/dird/ua_label.c +++ b/bacula/src/dird/ua_label.c @@ -84,6 +84,9 @@ static bool get_user_slot_list(UAContext *ua, char *slot_list, int num_slots) slot_list[i] = 0; } i = find_arg_with_value(ua, "slots"); + if (i == -1) { /* not found */ + i = find_arg_with_value(ua, "slot"); + } if (i > 0) { /* scan slot list in ua->argv[i] */ char *p, *e, *h; diff --git a/bacula/src/dird/ua_update.c b/bacula/src/dird/ua_update.c index a1cb002f4a..d430fda8cf 100644 --- a/bacula/src/dird/ua_update.c +++ b/bacula/src/dird/ua_update.c @@ -64,8 +64,9 @@ int update_cmd(UAContext *ua, const char *cmd) NT_("volume"), /* 1 */ NT_("pool"), /* 2 */ NT_("slots"), /* 3 */ - NT_("jobid"), /* 4 */ - NT_("stats"), /* 5 */ + NT_("slot"), /* 4 */ + NT_("jobid"), /* 5 */ + NT_("stats"), /* 6 */ NULL}; if (!open_client_db(ua)) { @@ -81,12 +82,13 @@ int update_cmd(UAContext *ua, const char *cmd) update_pool(ua); return 1; case 3: + case 4: update_slots(ua); return 1; - case 4: + case 5: update_job(ua); return 1; - case 5: + case 6: update_stats(ua); return 1; default: