Re: [Bacula-users] 'label barcodes' command question?

2006-04-25 Thread Rudolf Cejka
Kern Sibbald wrote (2006/01/19):
  --- src/dird/ua_label.c.origThu Jan 19 10:05:21 2006
  +++ src/dird/ua_label.c Thu Jan 19 10:07:50 2006
  @@ -305,7 +305,9 @@
  }
 
  if (!relabel  (i=find_arg_keyword(ua, barcode_keyword)) = 0) {
  -  *ua-argk[i] = 0;  /* zap barcode keyword */
  +  i = find_arg(ua, barcode_keyword[i]);
  +  if (i  0)
  + *ua-argk[i] = 0;  /* zap barcode keyword */
 label_barcodes = true;
  }
 
 I have, however, applied your patch, and will most likely release a 1.38.5 ...

Hello, did you really applied the patch above? I'm looking even in 1.38.8
and still could not find it in ua_label.c.

???

-- 
Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 'label barcodes' command question?

2006-04-25 Thread Kern Sibbald
On Tuesday 25 April 2006 16:52, Rudolf Cejka wrote:
 Kern Sibbald wrote (2006/01/19):
   --- src/dird/ua_label.c.orig  Thu Jan 19 10:05:21 2006
   +++ src/dird/ua_label.c   Thu Jan 19 10:07:50 2006
   @@ -305,7 +305,9 @@
   }
  
   if (!relabel  (i=find_arg_keyword(ua, barcode_keyword)) = 0) {
   -  *ua-argk[i] = 0;  /* zap barcode keyword */
   +  i = find_arg(ua, barcode_keyword[i]);
   +  if (i  0)
   + *ua-argk[i] = 0;  /* zap barcode keyword */
  label_barcodes = true;
   }
 
  I have, however, applied your patch, and will most likely release a
  1.38.5 ...

 Hello, did you really applied the patch above? I'm looking even in 1.38.8
 and still could not find it in ua_label.c.

Yes, I did add it, but somehow it got lost. Strange. That rarely happens.

Anyway, I have added it back, and it is now committed, so unlikely to get lost 
again.  Thanks for checking this, and sorry for the confusion on my part.

-- 
Best regards,

Kern

  (
  /\
  V_V


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] label barcodes command question

2006-03-07 Thread Chris Wilson
Hi,

I just added some tapes to my autochanger.  If I do a label barcodes
command, will it re-label the existing tapes too, or only label the new
tapes?  The documentation isn't clear on that topic.

Figured I'd ask before I inadvertently wipe out the existing tapes...

Thanks,

Chris

Chris Wilson
[EMAIL PROTECTED] 

attachment: winmail.dat

Re: [Bacula-users] label barcodes command question

2006-03-07 Thread Gregory Orange

Chris Wilson wrote:

Hi,

I just added some tapes to my autochanger.  If I do a label barcodes
command, will it re-label the existing tapes too, or only label the new
tapes?  The documentation isn't clear on that topic.

Figured I'd ask before I inadvertently wipe out the existing tapes...


It didn't relabel all the tapes for me - in fact it inserted all the 
tapes in turn and gave tape already labelled where relevant, then 
moved on. Quite a helpful and sensible behaviour, as far as I'm concerned.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] label barcodes command question

2006-03-07 Thread Dan Langille
On 8 Mar 2006 at 10:11, Gregory Orange wrote:

 Chris Wilson wrote:
  Hi,
  
  I just added some tapes to my autochanger.  If I do a label barcodes
  command, will it re-label the existing tapes too, or only label the new
  tapes?  The documentation isn't clear on that topic.
  
  Figured I'd ask before I inadvertently wipe out the existing tapes...
 
 It didn't relabel all the tapes for me - in fact it inserted all the
 tapes in turn and gave tape already labelled where relevant, then
 moved on. Quite a helpful and sensible behaviour, as far as I'm
 concerned. 

By design, Bacula will not label a labeled tape.  This is for your 
protection.  You must erase the tape manually.

-- 
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 'label barcodes' command question?

2006-01-19 Thread Kern Sibbald
On Thursday 19 January 2006 10:27, Rudolf Cejka wrote:
 Kern Sibbald wrote (2006/01/18):
I have tested both Bacula-1.38.3 and Bacula-1.38.4 now too:
Unfortunately they are broken as Bacula-1.38.2 too - the first
argument is discarded. As a workaround, you can use
label ANYTHING slots=NNN storage=SSS pool=PPP barcodes
for now - ANYTHING is simply discarded and all other arguments are
taken into an account.
  
   One very important question - will you report that at bugs.bacula.org
   or should I do so?

 Let's wait on word from Kern ;o)

  I am unable to reproduce this on version 1.38.4, so if someone submits it
  to the bugs database, be sure to include proof that there is a bug. 
  You might

 It seems, that you have tried barcode instead of our barcodes.
 When barcode is used, zeroth label is zapped, which seems to be
 further ignored. However when barcodes is used, first argument is
 zapped, because i = find_arg_keywords() returns an index of found
 keyword and not an index of found argument as in find_arg(). As
 one of possible solutions, here is my version of somewhat defensive
 patch (*ua-argk[find_arg(ua, barcode_keyword[i])] = 0; can be safely
 used too):

 --- src/dird/ua_label.c.orig  Thu Jan 19 10:05:21 2006
 +++ src/dird/ua_label.c   Thu Jan 19 10:07:50 2006
 @@ -305,7 +305,9 @@
 }

 if (!relabel  (i=find_arg_keyword(ua, barcode_keyword)) = 0) {
 -  *ua-argk[i] = 0;  /* zap barcode keyword */
 +  i = find_arg(ua, barcode_keyword[i]);
 +  if (i  0)
 + *ua-argk[i] = 0;  /* zap barcode keyword */
label_barcodes = true;
 }

 Should I fill a bug report, or is this sufficient? ;o)

It is always better to file a bug report because it permits users to get 
notification of bugs and bug fixes in a more systematic way, and it provides 
better tracking of the project's bugs.  

I have, however, applied your patch, and will most likely release a 1.38.5 ...



 Regards.

-- 
Best regards,

Kern

  (
  /\
  V_V


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 'label barcodes' command question?

2006-01-18 Thread Rudolf Cejka
Evan Kaufman wrote (2006/01/17):
 Is the long syntax of the 'label barcodes' console command fully
 functional?

Hello, interesting - I had exactly the same problem as you yesterday too :o)
It seems, that label [storage=xxx] [pool=yyy] [slots=1-10] barcodes is
broken in Bacula-1.38.2, but in Bacula-1.36.3 it was functional.

 In other words, can I specify the slots i want labeled,
 in which storage resource,  in which pool, all from a one-line
 command?

I wanted to test Bacula-1.38.3 and/or Bacula-1.38.4, however
I haven't sufficient time yet.

-- 
Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 'label barcodes' command question?

2006-01-18 Thread Arno Lehmann

Hello,

On 1/18/2006 10:42 AM, Rudolf Cejka wrote:

Rudolf Cejka wrote (2006/01/18):


I wanted to test Bacula-1.38.3 and/or Bacula-1.38.4, however
I haven't sufficient time yet.



I have tested both Bacula-1.38.3 and Bacula-1.38.4 now too: Unfortunately
they are broken as Bacula-1.38.2 too - the first argument is discarded.
As a workaround, you can use

label ANYTHING slots=NNN storage=SSS pool=PPP barcodes 


for now - ANYTHING is simply discarded and all other arguments are
taken into an account.


One very important question - will you report that at bugs.bacula.org or 
should I do so?


Arno

--
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 'label barcodes' command question?

2006-01-18 Thread Rudolf Cejka
Kern Sibbald wrote (2006/01/18):
 I am unable to reproduce this on version 1.38.4, so if someone submits it to 
 the bugs database, be sure to include proof that there is a bug.  You might 
 want to include output with the Director's debug level set to 400.

Ok, when my bacula server is idle, I'll debug it and hopefully send
some patch.

-- 
Rudolf Cejka cejkar at fit.vutbr.cz http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] 'label barcodes' command question?

2006-01-17 Thread Evan Kaufman
Is the long syntax of the 'label barcodes' console command fully
functional?  In other words, can I specify the slots i want labeled,
in which storage resource,  in which pool, all from a one-line
command?
From what i could understand from the manual, it should be something
similar to this:

label [storage=xxx] [pool=yyy] [slots=1-10] barcodes

however, bacula seems picky about the order the arguments go in, and
in the above order, it doesnt seem to see the storage argument.  and
if i try rearranging them:

label [pool=yyy] [slots=1-10] [storage=xxx] barcodes

then bacula doesnt see one of the other arguments (in the above
example, it doesnt see pool).  i ask about this because i'm trying to
call this command from an automated script.

is this command broken or not yet implemented, is that why I can't get
it to work?  because i thought i saw someone using this in the mailing
list archives...I appreciate any help...

--
Life is good when the most you have to worry
about is whether or not you're wearing pants.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users