Greetings..

Attached is a patch to fix the following minor bug.

The get_autochanger_loaded_slot function incorrectly treated a result of "0" 
from the "loaded" command sent to the autochanger script as an unknown 
condition, and called dev->clear_slot() instead of dev->set_slot(0).  This 
caused a "status storage" on initial bacula-sd startup to be incorrect if the 
bacula-sd was started with tapes loaded in drives.

The attached patch fixes the behavior, and only calls clear_slot() if the 
result is negative, which is undefined according to the autochanger script API.

This patch is generated against the head of Branch-5.0.  The problem exhibits 
itself in Release-5.0.3, as well as Branch-5.1.

Let me know if there's any other info I should provide..

Thanks!

Joe

Attachment: 0001-fix-get_autochanger_loaded_slot-to-handle-unloaded-c.patch
Description: 0001-fix-get_autochanger_loaded_slot-to-handle-unloaded-c.patch

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to