pxar: factor out PxarCreateOptions
containing the CLI parameters that are mostly passed-through from the client to our pxar archive creation wrapper in pxar::create Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
e97025ab02
commit
77486a608e
@ -25,16 +25,18 @@ fn run_test(dir_name: &str) -> Result<(), Error> {
|
||||
dir_name, nix::fcntl::OFlag::O_NOFOLLOW,
|
||||
nix::sys::stat::Mode::empty())?;
|
||||
|
||||
let options = PxarCreateOptions {
|
||||
entries_max: ENCODER_MAX_ENTRIES,
|
||||
..PxarCreateOptions::default()
|
||||
};
|
||||
|
||||
create_archive(
|
||||
dir,
|
||||
writer,
|
||||
Vec::new(),
|
||||
Flags::DEFAULT,
|
||||
None,
|
||||
false,
|
||||
|_| Ok(()),
|
||||
ENCODER_MAX_ENTRIES,
|
||||
None,
|
||||
options,
|
||||
)?;
|
||||
|
||||
Command::new("cmp")
|
||||
|
Reference in New Issue
Block a user