]> git.sur5r.net Git - bacula/bacula/commitdiff
Ensure that sparse stream is set when delta enabled
authorKern Sibbald <kern@sibbald.com>
Sat, 20 Nov 2010 16:15:00 +0000 (17:15 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 25 Nov 2010 13:59:28 +0000 (14:59 +0100)
bacula/src/findlib/attribs.c

index 6bbfb0a7852271e5e379242dd66dcf2c995b6d20..c1594ec99082840f32e0443ddb4cb6dae238eeff 100644 (file)
@@ -91,6 +91,9 @@ int select_data_stream(FF_PKT *ff_pkt)
    } else {
       stream = STREAM_FILE_DATA;
    }
+   if (ff_pkt->flags & FO_DELTA) {
+      stream = STREAM_SPARSE_DATA;
+   }
 
    /** Encryption is only supported for file data */
    if (stream != STREAM_FILE_DATA && stream != STREAM_WIN32_DATA &&