Description: Fix glfs_ftruncate API change
  GlusterFS 6.0 added two optional parameters to glfs_ftruncate.
  Can be patched unconditionally as GlusterFS > 6.0 is available even in
  stable-backports and an upcoming upstream release will contain a check
  and make this patch unnecessary.
Author: Jakob Haufe <sur5r@debian.org>
Bug-Debian: https://bugs.debian.org/933019
Forwarded: not-needed
Last-Update: 2019-11-05

--- bareos-17.2.7.orig/src/stored/backends/gfapi_device.c
+++ bareos-17.2.7/src/stored/backends/gfapi_device.c
@@ -547,7 +547,7 @@ bool gfapi_device::d_truncate(DCR *dcr)
    struct stat st;
 
    if (m_gfd) {
-      if (glfs_ftruncate(m_gfd, 0) != 0) {
+      if (glfs_ftruncate(m_gfd, 0, NULL, NULL) != 0) {
          berrno be;
 
          Mmsg2(errmsg, _("Unable to truncate device %s. ERR=%s\n"), prt_name, be.bstrerror());
