be updated when reading a tape (during migration, it could have
been incorrectly set to the write StorageId).
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6663
91ce42f0-d328-0410-95d8-
f526ca767f89
mr.VolWriteTime = sdmr.VolWriteTime;
mr.VolParts = sdmr.VolParts;
bstrncpy(mr.VolStatus, sdmr.VolStatus, sizeof(mr.VolStatus));
- if (jcr->wstore && jcr->wstore->StorageId) {
+ /*
+ * Update to point to the last device used to write the Volume.
+ * However, do so only if we are writing the tape, i.e.
+ * the number of VolBlocks has increased.
+ */
+ if (jcr->wstore && jcr->wstore->StorageId && mr.VolBlocks != sdmr.VolBlocks) {
mr.StorageId = jcr->wstore->StorageId;
}
Technical notes on version 2.2
General:
+22Mar08
+kes Fix bug pointed out by Peter Much that causes the StorageId to
+ be updated when reading a tape (during migration, it could have
+ been incorrectly set to the write StorageId).
21Mar08
kes Implement autostart scripts for Debian
20Mar08