From 2d3535a82513c47d34f3016b87099af1bcff8bc2 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 23 Sep 2004 19:13:21 +0000 Subject: [PATCH] 23Sep04 - More doc. - Pass EndFile and EndBlock to SD. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1609 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/catreq.c | 5 +++-- bacula/src/stored/askdir.c | 8 +++++--- bacula/src/version.h | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/bacula/src/dird/catreq.c b/bacula/src/dird/catreq.c index 1cc8369a99..cae33b8ea9 100644 --- a/bacula/src/dird/catreq.c +++ b/bacula/src/dird/catreq.c @@ -59,7 +59,7 @@ static char OK_media[] = "1000 OK VolName=%s VolJobs=%u VolFiles=%u" " VolBlocks=%u VolBytes=%s VolMounts=%u VolErrors=%u VolWrites=%u" " MaxVolBytes=%s VolCapacityBytes=%s VolStatus=%s Slot=%d" " MaxVolJobs=%u MaxVolFiles=%u InChanger=%d VolReadTime=%s" - " VolWriteTime=%s\n"; + " VolWriteTime=%s EndFile=%u EndBlock=%u\n"; static char OK_create[] = "1000 OK CreateJobMedia\n"; @@ -80,7 +80,8 @@ static int send_volume_info_to_storage_daemon(JCR *jcr, BSOCK *sd, MEDIA_DBR *mr mr->VolStatus, mr->Slot, mr->MaxVolJobs, mr->MaxVolFiles, mr->InChanger, edit_uint64(mr->VolReadTime, ed4), - edit_uint64(mr->VolWriteTime, ed5)); + edit_uint64(mr->VolWriteTime, ed5), + mr->EndFile, mr->EndBlock); unbash_spaces(mr->VolumeName); Dmsg2(200, "Vol Info for %s: %s", jcr->Job, sd->msg); return stat; diff --git a/bacula/src/stored/askdir.c b/bacula/src/stored/askdir.c index 9efc7b098f..0ac0833d8c 100644 --- a/bacula/src/stored/askdir.c +++ b/bacula/src/stored/askdir.c @@ -48,7 +48,7 @@ static char OK_media[] = "1000 OK VolName=%127s VolJobs=%u VolFiles=%u" " VolBlocks=%u VolBytes=%" lld " VolMounts=%u VolErrors=%u VolWrites=%u" " MaxVolBytes=%" lld " VolCapacityBytes=%" lld " VolStatus=%20s" " Slot=%d MaxVolJobs=%u MaxVolFiles=%u InChanger=%d" - " VolReadTime=%" lld " VolWriteTime=%" lld; + " VolReadTime=%" lld " VolWriteTime=%" lld " EndFile=%u EndBlock=%u"; static char OK_create[] = "1000 OK CreateJobMedia\n"; @@ -96,12 +96,14 @@ static bool do_get_volume_info(DCR *dcr) &vol.VolCatWrites, &vol.VolCatMaxBytes, &vol.VolCatCapacityBytes, vol.VolCatStatus, &vol.Slot, &vol.VolCatMaxJobs, &vol.VolCatMaxFiles, - &InChanger, &vol.VolReadTime, &vol.VolWriteTime); - if (n != 17) { + &InChanger, &vol.VolReadTime, &vol.VolWriteTime, + &vol.EndFile, &vol.EndBlock); + if (n != 19) { Dmsg2(100, "Bad response from Dir fields=%d: %s\n", n, dir->msg); Mmsg(jcr->errmsg, _("Error getting Volume info: %s\n"), dir->msg); return false; } + Dmsg2(000, "EndFile=%u EndBlock=%u\n", vol.EndFile, vol.EndBlock); vol.InChanger = InChanger; /* bool in structure */ unbash_spaces(vol.VolCatName); bstrncpy(dcr->VolumeName, vol.VolCatName, sizeof(dcr->VolumeName)); diff --git a/bacula/src/version.h b/bacula/src/version.h index 87aef8c1f8..b7d96d8836 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -1,8 +1,8 @@ /* */ #undef VERSION #define VERSION "1.35.5" -#define BDATE "22 September 2004" -#define LSMDATE "22Sep04" +#define BDATE "23 September 2004" +#define LSMDATE "23Sep04" /* Debug flags */ #undef DEBUG -- 2.39.5