From: Sergey Poznyakoff Date: Wed, 31 Oct 2007 12:56:46 +0000 (+0000) Subject: (sys_exec_info_script,sys_exec_checkpoint_script): pass the current blocking factor... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=8e3a2a520d68e31bf93a90f20bd0f19d83ae5cc6;hp=745832a280f635b26d67e2cb8d8882ac0432e5a0;p=chaz%2Ftar (sys_exec_info_script,sys_exec_checkpoint_script): pass the current blocking factor in TAR_BLOCKING_FACTOR environment variable. --- diff --git a/src/system.c b/src/system.c index 4183156..fb5a8fa 100644 --- a/src/system.c +++ b/src/system.c @@ -825,6 +825,8 @@ sys_exec_info_script (const char **archive_name, int volume_number) setenv ("TAR_VERSION", PACKAGE_VERSION, 1); setenv ("TAR_ARCHIVE", *archive_name, 1); setenv ("TAR_VOLUME", STRINGIFY_BIGINT (volume_number, uintbuf), 1); + setenv ("TAR_BLOCKING_FACTOR", + STRINGIFY_BIGINT (blocking_factor, uintbuf), 1); setenv ("TAR_SUBCOMMAND", subcommand_string (subcommand_option), 1); setenv ("TAR_FORMAT", archive_format_string (current_format == DEFAULT_FORMAT ? @@ -874,6 +876,8 @@ sys_exec_checkpoint_script (const char *script_name, setenv ("TAR_VERSION", PACKAGE_VERSION, 1); setenv ("TAR_ARCHIVE", archive_name, 1); setenv ("TAR_CHECKPOINT", STRINGIFY_BIGINT (checkpoint_number, uintbuf), 1); + setenv ("TAR_BLOCKING_FACTOR", + STRINGIFY_BIGINT (blocking_factor, uintbuf), 1); setenv ("TAR_SUBCOMMAND", subcommand_string (subcommand_option), 1); setenv ("TAR_FORMAT", archive_format_string (current_format == DEFAULT_FORMAT ?