Patch notes on version 3.0
-Patches being Tested:
-12Nov08
+
+Patches Committed:
+20Nov08
patches/testing/1175-unique-inchanger.patch
-ebl Reset InChanger AND Slot when using make_unique_inchanger()
- => Need to test with non barcode reader
+Patches being Tested:
+12Nov08
patches/testing/1182-recycle-flag.patch
ebl Update Recycle flag during a db_media_update_record()
-
patches/testing/fileid64.patch
ebl Update the FileId_t to 64bit, update catalog creation and
upgrade scripts.
+++ /dev/null
-
- This patch should fix the bug #1175 about Slot field
- that is not reset after update slots.
- Should work for 2.4.3 with 2.4.3-update-slots.patch
-
- cd <bacula-source>
- patch -p0 <1175-unique-inchanger.patch
- ./configure <your-options>
- make
- ...
- make install
-
-Index: src/cats/sql_update.c
-===================================================================
---- src/cats/sql_update.c (révision 7981)
-+++ src/cats/sql_update.c (copie de travail)
-@@ -476,19 +476,19 @@
- if (mr->InChanger != 0 && mr->Slot != 0 && mr->StorageId != 0) {
-
- if (mr->MediaId != 0) {
-- Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0 WHERE "
-+ Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0, Slot=0 WHERE "
- "Slot=%d AND StorageId=%s AND MediaId!=%s",
- mr->Slot,
- edit_int64(mr->StorageId, ed1), edit_int64(mr->MediaId, ed2));
-
- } else if (*mr->VolumeName) {
-- Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0 WHERE "
-+ Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0, Slot=0 WHERE "
- "Slot=%d AND StorageId=%s AND VolumeName!='%s'",
- mr->Slot,
- edit_int64(mr->StorageId, ed1), mr->VolumeName);
-
- } else { /* used by ua_label to reset all volume with this slot */
-- Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0 WHERE "
-+ Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0, Slot=0 WHERE "
- "Slot=%d AND StorageId=%s",
- mr->Slot,
- edit_int64(mr->StorageId, ed1), mr->VolumeName);
if (mr->InChanger != 0 && mr->Slot != 0 && mr->StorageId != 0) {
if (mr->MediaId != 0) {
- Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0 WHERE "
+ Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0, Slot=0 WHERE "
"Slot=%d AND StorageId=%s AND MediaId!=%s",
mr->Slot,
edit_int64(mr->StorageId, ed1), edit_int64(mr->MediaId, ed2));
} else if (*mr->VolumeName) {
- Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0 WHERE "
+ Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0, Slot=0 WHERE "
"Slot=%d AND StorageId=%s AND VolumeName!='%s'",
mr->Slot,
edit_int64(mr->StorageId, ed1), mr->VolumeName);
} else { /* used by ua_label to reset all volume with this slot */
- Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0 WHERE "
+ Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0, Slot=0 WHERE "
"Slot=%d AND StorageId=%s",
mr->Slot,
edit_int64(mr->StorageId, ed1), mr->VolumeName);