misc-utils: add the pipesz utility
Subsystems (2)
RFC PATCH 1/4 misc-utils: add the pipesz utility
In reply to a message not in the archivepipesz is a utility to examine and adjust the size of pipe buffers.
It uses fctnl F_GETPIPE_SZ and F_SETPIPE_SZ to examine and resize these buffers. This functionality is unique to Linux and was added in version 2.6.35. Minor bugfixes were made in 4.9, but these do not obviate the use of pipesz prior to that release.
--- .gitignore | 1 + configure.ac | 8 + include/pathnames.h | 4 + meson.build | 12 ++ meson_options.txt | 2 + misc-utils/Makemodule.am | 7 + misc-utils/meson.build | 4 + misc-utils/pipesz.c | 347 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 385 insertions(+) create mode 100644 misc-utils/pipesz.c
.gitignore +1 -0
@@ -143,6 +143,7 @@ ylwrap /nsenter /partx /pg +/pipesz /pivot_root /prlimit /raw
configure.ac +8 -0
@@ -1785,6 +1785,14 @@ AC_ARG_ENABLE([whereis], UL_BUILD_INIT([whereis]) AM_CONDITIONAL([BUILD_WHEREIS], [test "x$build_whereis" = xyes]) +AC_ARG_ENABLE([pipesz], + AS_HELP_STRING([--disable-pipesz], [do not build pipesz]), + [], [UL_DEFAULT_ENABLE([pipesz])] +) +UL_BUILD_INIT([pipesz]) +UL_REQUIRES_LINUX([pipesz]) +AM_CONDITIONAL([BUILD_PIPESZ], [test "x$build_pipesz" = xyes]) + UL_BUILD_INIT([getopt], [yes]) AM_CONDITIONAL([BUILD_GETOPT], [test "x$build_getopt" = xyes])
include/pathnames.h +4 -0
@@ -198,6 +198,10 @@#define _PATH_PROC_UCLAMP_MIN _PATH_PROC_KERNEL "/sched_util_clamp_min"#define _PATH_PROC_UCLAMP_MAX _PATH_PROC_KERNEL "/sched_util_clamp_max" +/* sysctl fs paths */ +#define _PATH_PROC_SYS_FS "/proc/sys/fs" +#define _PATH_PROC_PIPE_MAX_SIZE _PATH_PROC_SYS_FS "/pipe-max-size" +/* irqtop paths */ #define _PATH_PROC_INTERRUPTS "/proc/interrupts"#define _PATH_PROC_SOFTIRQS "/proc/softirqs"
meson.build +12 -0
@@ -2678,6 +2678,18 @@ if not is_disabler(exe) bashcompletions += ['hardlink'] endif +opt = not get_option('build-pipesz').disabled() +exe = executable( + 'pipesz', + pipesz_sources, + include_directories : includes, + link_with : [lib_common], + install_dir : usrbin_exec_dir, + install : true) +if opt and not is_disabler(exe) + exes += exe +endif + exe = executable( 'test_cal', cal_sources,
meson_options.txt +2 -0
@@ -150,6 +150,8 @@ option('build-more', type : 'feature', description : 'build more') option('build-pg', type : 'feature', description : 'build pg') +option('build-pipesz', type : 'feature', + description : 'build pipesz') option('build-setterm', type : 'feature', description : 'build setterm') option('build-schedutils', type : 'feature',
misc-utils/Makemodule.am +7 -0
@@ -266,3 +266,10 @@ lsfd_SOURCES = \ lsfd_LDADD = $(LDADD) libsmartcols.la libcommon.la lsfd_CFLAGS = $(AM_CFLAGS) -I$(ul_libsmartcols_incdir) endif + +if BUILD_PIPESZ +bin_PROGRAMS += pipesz +pipesz_SOURCES = misc-utils/pipesz.c +pipesz_LDADD = $(LDADD) libcommon.la +pipesz_CFLAGS = $(AM_CFLAGS) +endif
misc-utils/meson.build +4 -0
@@ -140,3 +140,7 @@ hardlink_sources = files( cal_sources = files( 'cal.c', ) + +pipesz_sources = files( + 'pipesz.c', +)
misc-utils/pipesz.c new file +347 -0
347 lines not on this page · raw message
Signature · 1 line
2.35.1
RFC PATCH 3/4 pipesz: add manpage
In reply to a message not in the archive--- meson.build | 1 + misc-utils/Makemodule.am | 2 + misc-utils/pipesz.1.adoc | 109 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 misc-utils/pipesz.1.adoc
meson.build +1 -0
@@ -2688,6 +2688,7 @@ exe = executable( install : true) if opt and not is_disabler(exe) exes += exe + manadocs += ['misc-utils/pipesz.1.adoc'] endif exe = executable(
misc-utils/Makemodule.am +2 -0
@@ -269,6 +269,8 @@ endif if BUILD_PIPESZ bin_PROGRAMS += pipesz +MANPAGES += misc-utils/pipesz.1 +dist_noinst_DATA += misc-utils/pipesz.1.adoc pipesz_SOURCES = misc-utils/pipesz.c pipesz_LDADD = $(LDADD) libcommon.la pipesz_CFLAGS = $(AM_CFLAGS)
misc-utils/pipesz.1.adoc new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
2.35.1
RFC PATCH 2/4 pipesz: add tests
In reply to a message not in the archive--- tests/commands.sh | 1 + tests/expected/misc/pipesz-exec | 1 + tests/expected/misc/pipesz-get-fd | 1 + tests/expected/misc/pipesz-get-fd-bad.err | 1 + tests/expected/misc/pipesz-get-file | 1 + tests/expected/misc/pipesz-get-file-bad.err | 1 + tests/expected/misc/pipesz-set-fd-bad.err | 1 + tests/expected/misc/pipesz-set-file-bad.err | 1 + tests/ts/misc/pipesz | 73 +++++++++++++++++++++ 9 files changed, 81 insertions(+) create mode 100644 tests/expected/misc/pipesz-exec create mode 100644 tests/expected/misc/pipesz-get-fd create mode 100644 tests/expected/misc/pipesz-get-fd-bad.err create mode 100644 tests/expected/misc/pipesz-get-file create mode 100644 tests/expected/misc/pipesz-get-file-bad.err create mode 100644 tests/expected/misc/pipesz-set-fd-bad.err create mode 100644 tests/expected/misc/pipesz-set-file-bad.err create mode 100755 tests/ts/misc/pipesz
tests/commands.sh +1 -0
@@ -92,6 +92,7 @@ TS_CMD_MOUNT=${TS_CMD_MOUNT:-"${ts_commandsdir}mount"} TS_CMD_MOUNTPOINT=${TS_CMD_MOUNTPOINT:-"${ts_commandsdir}mountpoint"} TS_CMD_NAMEI=${TS_CMD_NAMEI-"${ts_commandsdir}namei"} TS_CMD_PARTX=${TS_CMD_PARTX-"${ts_commandsdir}partx"} +TS_CMD_PIPESZ=${TS_CMD_PIPESZ-"${ts_commandsdir}pipesz"} TS_CMD_RENAME=${TS_CMD_RENAME-"${ts_commandsdir}rename"} TS_CMD_RUNUSER=${TS_CMD_RUNUSER-"${ts_commandsdir}runuser"} TS_CMD_REV=${TS_CMD_REV:-"${ts_commandsdir}rev"}
tests/expected/misc/pipesz-exec new file +1 -0
@@ -0,0 +1 @@ +this_should_be_output_by_cat
tests/expected/misc/pipesz-get-fd new file +1 -0
@@ -0,0 +1 @@ +fd 0 65536 0
tests/expected/misc/pipesz-get-fd-bad.err new file +1 -0
@@ -0,0 +1 @@ +pipesz: cannot get pipe buffer size of fd 42: Bad file descriptor
tests/expected/misc/pipesz-get-file new file +1 -0
@@ -0,0 +1 @@ +/dev/stdin 65536 0
tests/expected/misc/pipesz-get-file-bad.err new file +1 -0
@@ -0,0 +1 @@ +pipesz: cannot get pipe buffer size of /dev/null: Bad file descriptor
tests/expected/misc/pipesz-set-fd-bad.err new file +1 -0
@@ -0,0 +1 @@ +pipesz: cannot set pipe buffer size of fd 42: Bad file descriptor
tests/expected/misc/pipesz-set-file-bad.err new file +1 -0
@@ -0,0 +1 @@ +pipesz: cannot set pipe buffer size of /dev/null: Bad file descriptor
tests/ts/misc/pipesz new file +73 -0
73 lines not on this page · raw message
Signature · 1 line
2.35.1
RFC PATCH 4/4 pipesz: add bash-completion script
In reply to a message not in the archive--- bash-completion/Makemodule.am | 3 + bash-completion/pipesz | 102 ++++++++++++++++++++++++++++++++++ meson.build | 1 + 3 files changed, 106 insertions(+) create mode 100644 bash-completion/pipesz
bash-completion/Makemodule.am +3 -0
@@ -335,5 +335,8 @@ endif if BUILD_HARDLINK dist_bashcompletion_DATA += bash-completion/hardlink endif +if BUILD_PIPESZ +dist_bashcompletion_DATA += bash-completion/pipesz +endif endif # BUILD_BASH_COMPLETION
bash-completion/pipesz new file +102 -0
102 lines not on this page · raw message
meson.build +1 -0
@@ -2689,6 +2689,7 @@ exe = executable( if opt and not is_disabler(exe) exes += exe manadocs += ['misc-utils/pipesz.1.adoc'] + bashcompletions += ['pipesz'] endif exe = executable(
Signature · 1 line
2.35.1
Karel Zak
maintainerQuoted 10 lines · Nathan Sharp
.gitignore | 1 + configure.ac | 8 + include/pathnames.h | 4 + meson.build | 12 ++ meson_options.txt | 2 + misc-utils/Makemodule.am | 7 + misc-utils/meson.build | 4 + misc-utils/pipesz.c | 347 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 385 insertions(+) create mode 100644 misc-utils/pipesz.c
I had time to review it finally (sorry for delay).
Quoted 16 lines
misc-utils/pipesz.c new file +16
-0+static void __attribute__((__noreturn__))usage (void ) +{ +fputs (USAGE_HEADER , stdout); +printf (_ (" %s [options] [--set <size>] [--] [command]\n" ), program_invocation_short_name); +printf (_ (" %s [options] --get\n" ), program_invocation_short_name); + +fputs (USAGE_SEPARATOR , stdout); +/* TRANSLATORS: 'command' refers to a program argument */ +puts (_ ("Set or examine pipe buffer sizes and optionally execute command." )); + +fputs (USAGE_OPTIONS , stdout); +puts (_ (" -g, --get examine pipe buffers" )); +/* TRANSLATORS: '%s' refers to a system file */ +printf (_ (" -s, --set <size> set pipe buffer sizes\n" +" size defaults to %s\n" + ),PIPESZ_DEFAULT_SIZE_FILE );
misc-utils/pipesz.c line 87
Quoted 10 lines
misc-utils/pipesz.c new file +10
-0+ +fputs (USAGE_SEPARATOR , stdout); +puts (_ (" -f, --file <path> act on a file" )); +puts (_ (" -n, --fd <num> act on a file descriptor" )); +puts (_ (" -i, --stdin act on standard input" )); +puts (_ (" -o, --stdout act on standard output" )); +puts (_ (" -e, --stderr act on standard error" )); + +fputs (USAGE_SEPARATOR , stdout); +puts (_ (" -c, --check do not continue after an error" ));
Would be better to be paranoid (as expected by --check) by default and implement --force for cases when user wants something crazy? That's usual way utils are implemented.
...
misc-utils/pipesz.c line 237
Quoted 8 lines
misc-utils/pipesz.c new file +8
-0+/* check for --help or --version */ +while ((c =getopt_long (argc, argv, shortopts, longopts,NULL )) !=-1 ) +switch (c) { +case 'h' : +usage (); +case 'V' : +print_version (EXIT_SUCCESS ); + }
Why we need multiple getopt_long() blocks? I guess --help and --version could be together with other options. This is very unusual.
Quoted 42 lines
misc-utils/pipesz.c new file +42
-0+/* gather normal options */ + optind =1 ; +while ((c =getopt_long (argc, argv, shortopts, longopts,NULL )) !=-1 ) { +err_exclusive_options (c, longopts, excl, excl_st); + +switch (c) { +case 'c' : + opt_check = TRUE; +break ; +case 'e' : + ++n_opt_pipe; +break ; +case 'f' : + ++n_opt_pipe; +break ; +case 'g' : + opt_get = TRUE; +break ; +case 'i' : + ++n_opt_pipe; +break ; +case 'n' : + fd =strtos32_or_err (optarg,_ ("invalid fd argument" )); + ++n_opt_pipe; +break ; +case 'o' : + ++n_opt_pipe; +break ; +case 'q' : + opt_quiet = TRUE; +break ; +case 's' : + sz =strtosize_or_err (optarg,_ ("invalid size argument" )); + opt_size = sz >=INT_MAX ?INT_MAX : (int )sz; +break ; +case 'v' : + opt_verbose = TRUE; +break ; +default : +errtryhelp (EXIT_FAILURE ); + } + }
...
Quoted 12 lines
misc-utils/pipesz.c new file +12
-0+/* go through the arguments again and do the requested operations */ + optind =1 ; +while ((c =getopt_long (argc, argv, shortopts, longopts,NULL )) !=-1 ) +switch (c) { +case 'e' : +do_fd (STDERR_FILENO ); +break ; +case 'f' : +do_file (optarg); +break ; +case 'i' : +do_fd (STDIN_FILENO );
misc-utils/pipesz.c line 338
Quoted 10 lines
misc-utils/pipesz.c new file +10
-0+break ; +case 'n' : +/* optarg was checked before, but it's best to be safe */ + fd =strtos32_or_err (optarg,_ ("invalid fd argument" )); +do_fd (fd); +break ; +case 'o' : +do_fd (STDOUT_FILENO ); +break ; + }
... and another getopt_long() block.
What about to define
enum {
PIPESZ_ON_STDERR = (1 << 1),
PIPESZ_ON_STDIN = (1 << 2),
PIPESZ_ON_STDOUT = (1 << 3),
PIPESZ_ON_FILE = (1 << 4),
PIPESZ_ON_FD = (1 << 5)
};and in the while (getopt_long()) block set operation |= PIPESZ_ON_xxxxx and later in code use it? (also with variables 'filename' and 'fd'.
Then you can keep all arguments parsing on one place, right? :-)
The rest seems good.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Thank you for your review, Karel! I appreciate all of your feedback.
Quoted 1 line
Would be better to be paranoid (as expected by --check) by default and implement --force for cases when user wants something crazy?
The manpage talks a bit about this. pipesz is designed to be opportunistic by default in order to avoid annoying users that are troubleshooting their pipelines.
For example, when I'm working on a script, I'll often need to cut it up into parts and dump intermediate data to the terminal or to a file. So, if I start with a script like "a | pipesz b | c | d" and realize that there's some problem with "b" I might end up running "a | pipesz b" at my terminal or commenting out the "| c | d". If pipesz weren't lenient, it'd spit out an error because stdout is now a tty. So now I've got two annoyances, "b" is broken *and* pipesz is whining. Incidentally, this is how pipesz was originally. I did not like it.
There's another more subtle reason, too. I don't think that failure to resize a pipe is a reason to make scripts suddenly stop working. If your box is low on memory or you're near pipe-user-pages-soft, you'd probably want to ignore the fact you can't get 1 meg for a pipe right now and just have your script run. If you really, really care that you've got your pipes and ttys and files and sockets and resource limits straight, that's what --check is for. I think that forgetting to specify --force is a footgun just waiting to take down an overnight batch job.
If you don't find this argument persuasive, I'll switch the sense of --check/-c to --ignore/-t (like ionice, since -i is taken), as requested. I find --force misleading, but I recognize it is long-standing convention and will do this instead of --ignore/-t if you insist.
Quoted 1 line
Why we need multiple
getopt_long()blocks?
I had a feeling this would come up. I should have talked about this in the cover letter. I had a single argument processing loop originally, but in the end I felt that it was not worth the trade-offs involved.
In my mind there were 5 implementation strategies I could choose:
(1) Require -c/-g/-q/-v to precede other arguments, so we have all the information we need to process the other options immediately. This is not viable for a number of reasons that should become apparent quickly.
(2) Squirrel away -f/-n arguments into a liked list or xrealloc'ing arrays. This adds manual memory management, bookkeeping to keep valgrind happy on exit(), and an OOM failure case. I chose a list, and it ended up being about 1/3 of the total code using "list.h" and "xalloc.h".
(3) Squirrel away -f/-n arguments in fixed-sized arrays. This introduces a very small amount of bookkeeping, but also a bizarre failure mode should someone try to have too much fun with, e.g., xargs. Also, it would end up changing the order of operations unless done in a more complicated way.
(4) Only allow a single -f/-n argument (perhaps in addition to -i/-o/-e). I believe this is what you proposed. This could lead to some annoying repetitiveness in some cases. Additionally, it would complicate documentation if we permitted combining -f/-n with -i/-o/-e. Or lead to even more stuttering if we went for maximum simplicity and took only one of -f/-n/-i/-o/-e.
(5) Scan the argument list multiple times. The downside here is that's its unconventional. Heretical, even!
You caught on to this, but options 1-4 also annoy people like me who respond to invocation errors with "[up arrow] --help" instead of using readline shortcuts or shell history expansion.
Of the options above, excepting 5 of course, I lean heavily towards 4.
Quoted 1 line
The rest seems good.
Thank you! Let me know what changes you'd like to see and I'll whip up a v2!
Best wishes,
- Nathan Sharp
Quoted 1 line · Nathan Sharp
Thank you! Let me know what changes you'd like to see and I'll whip up a v2!
Applied, thanks. Unexpected :-), but you have convinced me that more getopt_long() is better than allocating extra stuff for such simple util like pipesz :-)
You should contribute more often; I like your perfectionism (man pages, meson, bash-completion, ...) :-)
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Re: [PATCH RFC 2/4] pipesz: add tests
In reply to Nathan SharpNathan,
at least 2 of those tests is not BE (big-endian) friendly:
mator@gcc203:~/util-linux.git/tests$ ./run.sh misc/pipesz
-------------------- util-linux regression tests --------------------
For development purpose only.
Don't execute on production system!
kernel: 5.15.0-2-powerpc64
options: --srcdir=/home/mator/util-linux.git/tests/.. \
--builddir=/home/mator/util-linux.git/tests/..
misc: pipesz ...
: set-fd-bad ... OK
: set-fd ... OK
: set-file-bad ... OK
: set-file ... OK
: get-fd-bad ... OK
: get-fd ... FAILED (misc/pipesz-get-fd)
: get-file-bad ... OK
: get-file ... FAILED (misc/pipesz-get-file)
: pipe-max-size ... OK
: exec ... OK
... FAILED (2 from 10 sub-tests)
---------------------------------------------------------------------
1 tests of 1 FAILED
misc/pipesz
---------------------------------------------------------------------
running on a sparc64 (gcc202) and on powerpc64 (gcc203) machines :
gcc202:~/util-linux$ echo -n | ./pipesz --check --get --stdin fd 0 131072 0
gcc203:~/util-linux.git$ echo -n | ./pipesz --check --get --stdin fd 0 1048576 0
So on x86_64 tests expect stdin file to be 64Kb:
gcc202:~/util-linux$ cat tests/expected/misc/pipesz-get-file /dev/stdin 65536 0 but on sparc64 it is 128Kb and on powerpc64 it is 1Mb...
PATCH 1/1 pipesz: use native PAGE_SIZE in tests
--- tests/expected/misc/pipesz-get-fd | 2 +- tests/expected/misc/pipesz-get-file | 2 +- tests/ts/misc/pipesz | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-)
tests/expected/misc/pipesz-get-fd +1 -1
@@ -1 +1 @@ -fd 0 65536 0 +fd 0 DEFAULT_PIPE_SIZE 0
tests/expected/misc/pipesz-get-file +1 -1
@@ -1 +1 @@ -/dev/stdin 65536 0 +/dev/stdin DEFAULT_PIPE_SIZE 0
tests/ts/misc/pipesz +8 -2
@@ -18,6 +18,10 @@ TS_DESC="pipesz" . $TS_TOPDIR/functions.sh ts_init "$*" +set -o pipefail + +DEFAULT_PIPE_SIZE=$(($(getconf PAGE_SIZE) * 16)) + ts_check_test_command "$TS_CMD_PIPESZ" ts_init_subtest "set-fd-bad"
@@ -46,7 +50,7 @@ $TS_CMD_PIPESZ --check --get --fd 42 >> $TS_OUTPUT 2>> $TS_ERRLOG ts_finalize_subtest ts_init_subtest "get-fd" -echo -n | $TS_CMD_PIPESZ --check --get --stdin >> $TS_OUTPUT 2>> $TS_ERRLOG +echo -n | $TS_CMD_PIPESZ --check --get --stdin 2>> $TS_ERRLOG | sed "s/$DEFAULT_PIPE_SIZE/DEFAULT_PIPE_SIZE/g" >> $TS_OUTPUT [[ $? -ne 0 ]] && ts_logerr "expected success" ts_finalize_subtest
@@ -56,7 +60,7 @@ $TS_CMD_PIPESZ --check --get --file "/dev/null" >> $TS_OUTPUT 2>> $TS_ERRLOG ts_finalize_subtest ts_init_subtest "get-file" -echo -n | $TS_CMD_PIPESZ --check --get --file "/dev/stdin" >> $TS_OUTPUT 2>> $TS_ERRLOG +echo -n | $TS_CMD_PIPESZ --check --get --file "/dev/stdin" 2>> $TS_ERRLOG | sed "s/$DEFAULT_PIPE_SIZE/DEFAULT_PIPE_SIZE/g" >> $TS_OUTPUT [[ $? -ne 0 ]] && ts_logerr "expected success" ts_finalize_subtest
@@ -70,4 +74,6 @@ echo this_should_be_output_by_cat | $TS_CMD_PIPESZ --check --stdin cat >> $TS_OU [[ $? -ne 0 ]] && ts_logerr "expected success" ts_finalize_subtest +set +o pipefail + ts_finalize
Signature · 1 line
2.35.1
Re: [PATCH] pipesz: use native PAGE_SIZE in tests
Quoted 8 lines · Nathan Sharp
Reported-by Anatoly Pugachev <[email protected]>Signed-off-by Nathan Sharp <[email protected]>--- tests/expected/misc/pipesz-get-fd | 2 +- tests/expected/misc/pipesz-get-file | 2 +- tests/ts/misc/pipesz | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-)
Thanks. This one fixes the issue.
(tested on both sparc64 and powerpc64)
Re: [PATCH] pipesz: use native PAGE_SIZE in tests
In reply to Nathan Sharptests/ts/misc/pipesz TS_DESC="pipesz" · line 23
Quoted 10 lines · Nathan Sharp
Reported-by Anatoly Pugachev <[email protected]>tests/ts/misc/pipesz +3
-0@@ -18,6 +18,10 @@ TS_DESC="pipesz" . $TS_TOPDIR/functions.sh ts_init "$*" +set -o pipefail + +DEFAULT_PIPE_SIZE=$(($(getconf PAGE_SIZE) * 16))
DEFAULT_PIPE_SIZE=$(($($TS_HELPER_SYSINFO pagesize) * 16))
to be consistent with other tests
Re: [PATCH] pipesz: use native PAGE_SIZE in tests
In reply to Nathan SharpQuoted 4 lines · Nathan Sharp
tests/expected/misc/pipesz-get-fd | 2 +- tests/expected/misc/pipesz-get-file | 2 +- tests/ts/misc/pipesz | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Karel Zak
maintainerRe: [PATCH] pipesz: use native PAGE_SIZE in tests
In reply to Anatoly PugachevQuoted 8 lines · Anatoly Pugachev
Quoted 7 lines · Nathan Sharp
Reported-by Anatoly Pugachev <[email protected]>tests/ts/misc/pipesz +0
-0@@ -18,6 +18,10 @@ TS_DESC="pipesz" . $TS_TOPDIR/functions.sh ts_init "$*"
Quoted 7 lines
tests/ts/misc/pipesz TS_DESC="pipesz" · line 23
Quoted 3 lines
tests/ts/misc/pipesz +3
-0+set -o pipefail + +DEFAULT_PIPE_SIZE=$(($(getconf PAGE_SIZE) * 16))DEFAULT_PIPE_SIZE=$(($($TS_HELPER_SYSINFO pagesize) * 16))
to be consistent with other tests
Fixed.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com