diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-06-12 23:03:17 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-06-12 23:04:02 +0200 |
commit | 4ccc9dfd8e38348d527d3704b87a680ba43756cd (patch) | |
tree | 2d72166c60df258cebe6160b5943624dceb8855d /SOURCES/parallel_xz.sh | |
parent | d39b424f868921cd22fbfac392912a911c72bcf2 (diff) | |
download | kernel-fsync-4ccc9dfd8e38348d527d3704b87a680ba43756cd.tar.gz kernel-fsync-4ccc9dfd8e38348d527d3704b87a680ba43756cd.zip |
kernel 6.9.4
Diffstat (limited to 'SOURCES/parallel_xz.sh')
-rwxr-xr-x | SOURCES/parallel_xz.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/SOURCES/parallel_xz.sh b/SOURCES/parallel_xz.sh deleted file mode 100755 index f1b6cdd..0000000 --- a/SOURCES/parallel_xz.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# Reads filenames on stdin, xz-compresses each in place. -# Not optimal for "compress relatively few, large files" scenario! - -# How many xz's to run in parallel: -procgroup="" -while test "$#" != 0; do - # Get it from -jNUM - N="${1#-j}" - if test "$N" = "$1"; then - # Not -j<something> - warn and ignore - echo "parallel_xz: warning: unrecognized argument: '$1'" - else - procgroup="$N" - fi - shift -done - -# If told to use only one cpu: -test "$procgroup" || exec xargs -r xz -test "$procgroup" = 1 && exec xargs -r xz - -# xz has some startup cost. If files are really small, -# this cost might be significant. To combat this, -# process several files (in sequence) by each xz process via -n 16: -exec xargs -r -n 16 -P "$procgroup" xz |