src/client/: pass dummy flags for xattrs and fcaps to pxar encoder/decoder.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-05-22 17:50:42 +02:00 committed by Dietmar Maurer
parent 54b14ad741
commit 4add706092
2 changed files with 6 additions and 2 deletions

View File

@ -43,7 +43,9 @@ impl PxarBackupStream {
let child = thread::spawn(move|| { let child = thread::spawn(move|| {
let mut writer = unsafe { std::fs::File::from_raw_fd(tx) }; let mut writer = unsafe { std::fs::File::from_raw_fd(tx) };
if let Err(err) = pxar::Encoder::encode(path, &mut dir, &mut writer, all_file_systems, verbose) { let no_xattrs = false;
let no_fcaps = false;
if let Err(err) = pxar::Encoder::encode(path, &mut dir, &mut writer, all_file_systems, verbose, no_xattrs, no_fcaps) {
eprintln!("pxar encode failed - {}", err); eprintln!("pxar encode failed - {}", err);
} }
}); });

View File

@ -31,7 +31,9 @@ impl PxarDecodeWriter {
let child = thread::spawn(move|| { let child = thread::spawn(move|| {
let mut reader = unsafe { std::fs::File::from_raw_fd(rx) }; let mut reader = unsafe { std::fs::File::from_raw_fd(rx) };
let mut decoder = pxar::SequentialDecoder::new(&mut reader); let no_xattrs = false;
let no_fcaps = false;
let mut decoder = pxar::SequentialDecoder::new(&mut reader, no_xattrs, no_fcaps);
if let Err(err) = decoder.restore(&base, & |path| { if let Err(err) = decoder.restore(&base, & |path| {
if verbose { if verbose {