- Figure out how to use ssh or stunnel to protect Bacula communications.
For 1.31 release:
-- Increment DB version prior to releasing.
-- Turn off FULL_DEBUG prior to releasing.
For 1.32:
- Document using multiple Pools for daily rotating tapes.
- Check if Incremental is working correctly when it looks for the previous Job
(Phil's problem).
+- Increment DB version prior to releasing.
+- Turn off FULL_DEBUG prior to releasing.
+
}
/*
- * This function returns a list of all the Media record ids.
+ * This function returns a list of all the Media record ids
+ * for a specified PoolId
* The caller must free ids if non-NULL.
*
* Returns 0: on failure
* 1: on success
*/
-int db_get_media_ids(JCR *jcr, B_DB *mdb, int *num_ids, uint32_t *ids[])
+int db_get_media_ids(JCR *jcr, B_DB *mdb, uint32_t PoolId, int *num_ids, uint32_t *ids[])
{
int i = 0;
uint32_t *id;
*num_ids = mdb->control.MediaId;
id = (uint32_t *)malloc(*num_ids * sizeof(uint32_t));
while (fread(&omr, len, 1, mdb->mediafd) > 0) {
- id[i++] = omr.MediaId;
+ if (PoolId == omr.MediaId) {
+ id[i++] = omr.MediaId;
+ }
}
*ids = id;
db_unlock(mdb);