dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
dnl Written by Paul Eggert <eggert@twinsun.com>.
+dnl
+dnl Modified by Kern Sibbald to turn on the large file
+dnl flags on all machines. Otherwise functions such as
+dnl fseek are not large file capable.
+dnl
dnl Internal subroutine of AC_SYS_LARGEFILE.
dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
ac_cv_sys_file_offset_bits,
[Number of bits in a file offset, on hosts where this is settable.],
- [case "$host_os" in
- # HP-UX 10.20 and later
- hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
- ac_cv_sys_file_offset_bits=64 ;;
- esac])
+ [ac_cv_sys_file_offset_bits=64])
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
ac_cv_sys_largefile_source,
[Define to make fseeko etc. visible, on some hosts.],
- [case "$host_os" in
- # HP-UX 10.20 and later
- hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
- ac_cv_sys_largefile_source=1 ;;
- esac])
+ [ac_cv_sys_largefile_source=1])
AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
ac_cv_sys_large_files,
[Define for large files, on AIX-style hosts.],
- [case "$host_os" in
- # AIX 4.2 and later
- aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
- ac_cv_sys_large_files=1 ;;
- esac])
+ [ac_cv_sys_large_files=1])
fi
])
dnl ==========================================================
])
],
[
- AC_CHECK_HEADERS(curses.h)
+ AC_CHECK_HEADERS(curses.h)
AC_CHECK_HEADER(term.h,
[ AC_CHECK_LIB(curses, tgetent,
[ CONS_LIBS="-lcurses"
support_readline=no
AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
])
- ],
+ ],
[ echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
[#if HAVE_CURSES_H
#include <curses.h>
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_sys_file_offset_bits=no
- case "$host_os" in
- # HP-UX 10.20 and later
- hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
- ac_cv_sys_file_offset_bits=64 ;;
- esac
+ ac_cv_sys_file_offset_bits=64
for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
case "$ac_flag" in
-D_FILE_OFFSET_BITS)
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_sys_largefile_source=no
- case "$host_os" in
- # HP-UX 10.20 and later
- hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
- ac_cv_sys_largefile_source=1 ;;
- esac
+ ac_cv_sys_largefile_source=1
for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
case "$ac_flag" in
-D_LARGEFILE_SOURCE)
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_sys_large_files=no
- case "$host_os" in
- # AIX 4.2 and later
- aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
- ac_cv_sys_large_files=1 ;;
- esac
+ ac_cv_sys_large_files=1
for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
case "$ac_flag" in
-D_LARGE_FILES)
Maybe for 1.35:
+- Despool attributes simultaneously with data in a separate
+ thread, rejoined at end of data spooling.
- Implement Files/Bytes,... stats for restore job.
- Implement Total Bytes Written, ... for restore job.
- Check dates entered by user for correctness (month/day/... ranges)
scripts to add them.
- Modify postgresql update script to remove bigint FilenameId
reference.
+- Kill daemons at levels in the teens rather than late.
+
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your
computers.
#
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon for the Gentoo release
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon for the Gentoo release.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon for the Gentoo release.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 20 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 20 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 92 99
+# chkconfig: 2345 92 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 91 99
+# chkconfig: 2345 91 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 90 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 92 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 91 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 20 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# bacula This shell script takes care of starting and stopping
# the bacula Director daemon
#
-# chkconfig: 2345 90 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# Required-Start: $local_fs $network @DB_NAME@
# Required-Stop: $local_fs $network @DB_NAME@
# Default-Start: 3 5
-# Default-Stop: 0 1 2 6
+# Default-Stop: 0 1 2 6
# Short-Description: bacula director
# Description: Bacula network backup system director daemon
### END INIT INFO
# bacula This shell script takes care of starting and stopping
# the bacula File daemon.
#
-# chkconfig: 2345 90 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# Required-Start: $local_fs $network @DB_NAME@
# Required-Stop: $local_fs $network @DB_NAME@
# Default-Start: 3 5
-# Default-Stop: 0 1 2 6
+# Default-Stop: 0 1 2 6
# Short-Description: bacula file daemon
# Description: Bacula network backup system file daemon
### END INIT INFO
# bacula This shell script takes care of starting and stopping
# the bacula Storage daemon.
#
-# chkconfig: 2345 90 99
+# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
# Required-Start: $local_fs $network @DB_NAME@
# Required-Stop: $local_fs $network @DB_NAME@
# Default-Start: 3 5
-# Default-Stop: 0 1 2 6
+# Default-Stop: 0 1 2 6
# Short-Description: bacula storage daemon
# Description: Bacula network backup system storage daemon
### END INIT INFO
#define _THREAD_SAFE 1
#define _POSIX_PTHREAD_SEMANTICS 1
+
/* System includes */
#if HAVE_STDINT_H
#include <stdint.h>
DROP TABLE IF EXISTS Counters;
DROP TABLE IF EXISTS BaseFiles;
DROP TABLE IF EXISTS UnsavedFiles;
+DROP TABLE IF EXISTS CDImages;
END-OF-DATA
then
echo "Deletion of Bacula MySQL tables succeeded."
drop table filename;
drop table counters;
drop table version;
+drop table CDImages;
END-OF-DATA
then
echo "Deletion of Bacula PostgreSQL tables succeeded."
/* Hang reading the socket to the SD, and every time we get
* a heartbeat or we get a wait timeout (1 minute), we
* check to see if we need to send a heartbeat to the
- * Directory.
+ * Director.
*/
for ( ; !is_bnet_stop(sd); ) {
n = bnet_wait_data_intr(sd, WAIT_INTERVAL);
}
if (n == 1) { /* input waiting */
bnet_recv(sd); /* read it -- probably heartbeat from sd */
- Dmsg1(100, "Got %d from SD\n", sd->msglen);
+ if (sd->msglen <= 0) {
+ Dmsg1(100, "Got BNET_SIG %d from SD\n", sd->msglen);
+ } else {
+ Dmsg2(100, "Got %d bytes from SD. MSG=%s\n", sd->msglen, sd->msg);
+ }
}
}
bnet_close(sd);
int row;
for (int i=0; i < num_selected; i++) {
- row = (int)g_list_nth_data(restore->list->selection, i);
+ row = (int)(long int)g_list_nth_data(restore->list->selection, i);
mark_row(row, true);
}
}
int row;
for (int i=0; i < num_selected; i++) {
- row = (int)g_list_nth_data(restore->list->selection, i);
+ row = (int)(long int)g_list_nth_data(restore->list->selection, i);
mark_row(row, false);
}
}
len = strlen(file);
if (len > 0 && file[len-1] == '/') {
/* Change to new directory */
- pm_strcpy(&restore->path, restore->fname);
+ pm_strcpy(restore->path, restore->fname);
if (*file == '*') {
- Mmsg(&restore->fname, "%s%s", restore->path, file+1);
+ Mmsg(restore->fname, "%s%s", restore->path, file+1);
} else {
- Mmsg(&restore->fname, "%s%s", restore->path, file);
+ Mmsg(restore->fname, "%s%s", restore->path, file);
}
FillDirectory(restore->fname, restore);
}
ASSERT(bsock != NULL);
bsock->msg[0] = 0;
+ bsock->msglen = 0;
if (bsock->errors || bsock->terminated) {
return BNET_HARDEOF;
}
}
stream = (int32_t)str_to_int64(p);
- Dmsg2(490, "<filed: Header FilInx=%d stream=%d\n", file_index, stream);
+ Dmsg2(890, "<filed: Header FilInx=%d stream=%d\n", file_index, stream);
if (!(file_index > 0 && (file_index == last_file_index ||
file_index == last_file_index + 1))) {
rec.data_len = ds->msglen;
rec.data = ds->msg; /* use message buffer */
- Dmsg4(450, "before writ_rec FI=%d SessId=%d Strm=%s len=%d\n",
+ Dmsg4(850, "before writ_rec FI=%d SessId=%d Strm=%s len=%d\n",
rec.FileIndex, rec.VolSessionId, stream_to_ascii(rec.Stream,rec.FileIndex),
rec.data_len);
while (!write_record_to_block(dcr->block, &rec)) {
- Dmsg2(650, "!write_record_to_block data_len=%d rem=%d\n", rec.data_len,
+ Dmsg2(850, "!write_record_to_block data_len=%d rem=%d\n", rec.data_len,
rec.remainder);
if (!write_block_to_device(dcr)) {
Dmsg2(90, "Got write_block_to_dev error on device %s. %s\n",
break;
}
jcr->JobBytes += rec.data_len; /* increment bytes this job */
- Dmsg4(350, "write_record FI=%s SessId=%d Strm=%s len=%d\n",
+ Dmsg4(850, "write_record FI=%s SessId=%d Strm=%s len=%d\n",
FI_to_ascii(rec.FileIndex), rec.VolSessionId,
stream_to_ascii(rec.Stream, rec.FileIndex), rec.data_len);
if (are_attributes_spooled(jcr)) {
jcr->dir_bsock->spool = true;
}
- Dmsg0(350, "Send attributes.\n");
+ Dmsg0(850, "Send attributes to dir.\n");
if (!dir_update_file_attributes(dcr, &rec)) {
jcr->dir_bsock->spool = false;
Jmsg(jcr, M_FATAL, 0, _("Error updating file attributes. ERR=%s\n"),
ASSERT(block->binbuf == (uint32_t) (block->bufp - block->buf));
ASSERT(block->buf_len >= block->binbuf);
- Dmsg6(490, "write_record_to_block() FI=%s SessId=%d Strm=%s len=%d\n\
+ Dmsg6(890, "write_record_to_block() FI=%s SessId=%d Strm=%s len=%d\n\
rem=%d remainder=%d\n",
FI_to_ascii(rec->FileIndex), rec->VolSessionId,
stream_to_ascii(rec->Stream, rec->FileIndex), rec->data_len,
/* */
#undef VERSION
#define VERSION "1.35.9"
-#define BDATE "18 October 2004"
-#define LSMDATE "18Oct04"
+#define BDATE "19 October 2004"
+#define LSMDATE "19Oct04"
/* Debug flags */
#undef DEBUG