install: all
@if test -f ${DESTDIR}${sbindir}/console; then \
echo " "; \
- echo "Warning!!! ${DESTDIR}${sbindir}console found."; \
+ echo "Warning!!! ${DESTDIR}${sbindir}/console found."; \
echo " console has been renamed bconsole, so console"; \
echo " is no longer used, and you might want to delete it."; \
echo " "; \
/*****************************************************************
* Routines for handling volumes
*/
-VOL_LIST *new_restore_volume()
+static VOL_LIST *new_restore_volume()
{
VOL_LIST *vol;
vol = (VOL_LIST *)malloc(sizeof(VOL_LIST));
* returns: 1 if volume added
* 0 if volume already in list
*/
-int add_restore_volume(JCR *jcr, VOL_LIST *vol)
+static bool add_restore_volume(JCR *jcr, VOL_LIST *vol)
{
VOL_LIST *next = jcr->VolList;
if (!next) { /* list empty ? */
jcr->VolList = vol; /* yes, add volume */
} else {
+ /* Loop through all but last */
for ( ; next->next; next=next->next) {
if (strcmp(vol->VolumeName, next->VolumeName) == 0) {
+ /* Save smallest start file */
if (vol->start_file < next->start_file) {
next->start_file = vol->start_file;
}
- return 0; /* already in list */
+ return false; /* already in list */
}
}
+ /* Check last volume in list */
if (strcmp(vol->VolumeName, next->VolumeName) == 0) {
if (vol->start_file < next->start_file) {
next->start_file = vol->start_file;
}
- return 0; /* already in list */
+ return false; /* already in list */
}
next->next = vol; /* add volume */
}
- return 1;
+ return true;
}
void free_restore_volume_list(JCR *jcr)
BSR *parse_bsr(JCR *jcr, char *lf);
void dump_bsr(BSR *bsr, bool recurse);
void free_bsr(BSR *bsr);
-VOL_LIST *new_restore_volume();
-int add_restore_volume(JCR *jcr, VOL_LIST *vol);
void free_restore_volume_list(JCR *jcr);
void create_restore_volume_list(JCR *jcr);
#undef VERSION
#define VERSION "2.5.15"
-#define BDATE "14 October 2008"
-#define LSMDATE "14Oct08"
+#define BDATE "17 October 2008"
+#define LSMDATE "17Oct08"
#define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
#define BYEAR "2008" /* year for copyright messages in progs */
remove reader/writer in FOPTS????
General:
+17Oct08
+kes Minor cleanup of create_restore_volume_list() code.
+kes Fix typo in console Makefile.in
16Oct08
ebl Fix #1110 about RunScript that can't execute a script with
Unicode caracters in the path.