stat = plugin_bclose(bfd);
bfd->fid = -1;
bfd->cmd_plugin = false;
+ return stat;
}
#if defined(HAVE_POSIX_FADVISE) && defined(POSIX_FADV_DONTNEED)
ssize_t stat;
if (bfd->cmd_plugin && plugin_bwrite) {
- return plugin_bwrite(bfd, buf, count);
+ stat = plugin_bwrite(bfd, buf, count);
+
+ } else {
+ stat = write(bfd->fid, buf, count);
+ bfd->berrno = errno;
}
- stat = write(bfd->fid, buf, count);
- bfd->berrno = errno;
+
bfd->block++;
if (stat > 0) {
bfd->total_bytes += stat;
--- /dev/null
+#!/bin/sh
+cp -f scripts/plugin-test-bacula-dir.conf ${conf}/bacula-dir.conf
+cp -f scripts/test-bacula-sd.conf ${conf}/bacula-sd.conf
+cp -f scripts/test-bacula-fd.conf ${conf}/bacula-fd.conf
+cp -f scripts/test-console.conf ${conf}/bconsole.conf
+cp -f scripts/test-console.conf ${conf}/bat.conf
+
+scripts/set_tape_options