Kern's ToDo List
- 11 January 2003
+ 12 January 2003
Documentation to do: (a little bit at a time)
- Document running a test version.
- test and fix < code and | code.
For 1.29 release:
+- Write Unix emulator for Windows.
- Why is catreq.c:111 Find vol called twice for a job?
-- Why is FirstWritten = -1 after label?
- Add include list to end of chain in findlib
- Fix cancel in find_one -- need jcr.
- Write SetJobStatus() function so cancel status not lost.
Dmsg1(100, "find_recycled_volume2 %d\n", ok);
if (!ok) {
/* See if we can create a new Volume */
- mr.LabelDate = 0;
ok = newVolume(jcr, &mr);
}
}
if (db_get_pool_record(jcr->db, &pr) && pr.LabelFormat[0] &&
pr.LabelFormat[0] != '*') {
if (pr.MaxVols == 0 || pr.NumVols < pr.MaxVols) {
- mr->PoolId = jcr->PoolId;
+ set_pool_dbr_defaults_in_media_dbr(mr, &pr);
+ mr->LabelDate = 0;
strcpy(mr->MediaType, jcr->store->media_type);
strcpy(name, pr.LabelFormat);
strcat(name, "%04d");
sprintf(mr->VolumeName, name, ++pr.NumVols);
- strcpy(mr->VolStatus, "Append");
- mr->Recycle = pr.Recycle;
- mr->VolRetention = pr.VolRetention;
if (db_create_media_record(jcr->db, mr) &&
db_update_pool_record(jcr->db, &pr) == 1) {
Dmsg1(90, "Created new Volume=%s\n", mr->VolumeName);
/* ua_cmd.c */
extern int create_pool(B_DB *db, POOL *pool);
+extern void set_pool_dbr_defaults_in_media_dbr(MEDIA_DBR *mr, POOL_DBR *pr);
* into the Media DB record just before creating a media (Volume)
* record.
*/
-static void set_pool_dbr_defaults_in_media_dbr(MEDIA_DBR *mr, POOL_DBR *pr)
+void set_pool_dbr_defaults_in_media_dbr(MEDIA_DBR *mr, POOL_DBR *pr)
{
mr->PoolId = pr->PoolId;
strcpy(mr->VolStatus, "Append");