]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix issue between FO_PORTABLE and FO_PORTABLE_DATA
authorEric Bollengier <eric@baculasystems.com>
Mon, 29 Oct 2018 15:42:29 +0000 (16:42 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 10 Nov 2018 09:46:06 +0000 (10:46 +0100)
bacula/src/filed/fd_plugins.c
bacula/src/fileopts.h

index b171d760e4b464d66da48dc8d3f2fa61ba857b43..eeec495d97615b34d8d7c7e5520635ea2d5550f2 100644 (file)
@@ -377,10 +377,10 @@ static void update_ff_pkt(FF_PKT *ff_pkt, struct save_pkt *sp)
    } else {
       ff_pkt->flags &= ~FO_SPARSE;
    }
-   if (sp->flags & FO_PORTABLE_DATA) {
-      ff_pkt->flags |= FO_PORTABLE_DATA;
+   if (sp->flags & FO_PORTABLE) {
+      ff_pkt->flags |= FO_PORTABLE;
    } else {
-      ff_pkt->flags &= ~FO_PORTABLE_DATA;
+      ff_pkt->flags &= ~FO_PORTABLE;
    }
    ff_pkt->flags |= FO_PLUGIN;       /* data from plugin */
    Dsm_check(999);
@@ -448,7 +448,6 @@ bRC plugin_option_handle_file(JCR *jcr, FF_PKT *ff_pkt, struct save_pkt *sp)
          jcr->plugin_ctx = &plugin_ctx_list[i];
 
          update_ff_pkt(ff_pkt, sp);
-
       /* reset plugin in JCR if not used this time */
       } else {
          jcr->plugin_ctx = NULL;
index 76fbd9eddf8c2405c838393f2dee24f57379c693..88ca58797914055888e90b28f5b613c516322720 100644 (file)
@@ -31,7 +31,7 @@
  * Options saved int "options" of the include/exclude lists.
  * They are directly jammed ito  "flag" of ff packet
  */
-#define FO_PORTABLE_DATA (1<<0)       /* Data is portable */
+#define FO_PORTABLE_DATA (1<<0)       /* Data is portable (Not used) */
 #define FO_MD5           (1<<1)       /* Do MD5 checksum */
 #define FO_COMPRESS      (1<<2)       /* Do compression */
 #define FO_NO_RECURSION  (1<<3)       /* no recursion in directories */