From 4a482a057535ded915656d782bab2f0eed65c1f6 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 20 Nov 2010 17:15:00 +0100 Subject: [PATCH] Ensure that sparse stream is set when delta enabled --- bacula/src/findlib/attribs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/findlib/attribs.c b/bacula/src/findlib/attribs.c index 6bbfb0a785..c1594ec990 100644 --- a/bacula/src/findlib/attribs.c +++ b/bacula/src/findlib/attribs.c @@ -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 && -- 2.39.5