30 Commits
Author SHA1 Message Date
Andrew Wood 546074853e Datestamp update. 2025-10-18 19:35:10 +01:00
Andrew Wood 7deef78ea5 Set the release date. 2025-10-18 19:32:44 +01:00
Andrew Wood a38e05e749 Datestamp update. 2025-10-18 17:09:30 +01:00
Andrew Wood 493634e26c Cover more of the features in the description. 2025-10-17 23:49:08 +01:00
Andrew Wood f96a43e366 Line number updates. 2025-10-17 23:22:33 +01:00
Andrew Wood b434c858a2 Version and datestamp bump. 2025-10-17 23:21:52 +01:00
Andrew Wood 30e30f0196 Note and acknowledge the change (#81). 2025-10-17 23:09:38 +01:00
Andrew Wood 1a70cc228a Correction to the description and removal of the TODO marker; and use the transfer interval as the time to wait after closure (#81). 2025-10-17 22:50:33 +01:00
Andrew Wood 17ca4fc9c9 Keep displaying --watchfd fds for a short time after they are closed, and don't clear the display at the end but just move the cursor past it (#81). 2025-10-17 20:40:14 +01:00
Andrew Wood 0aac6d6aac Add comments and "pid_last_seen", "fd_last_seen" structure members for proposed new logic that will hold fd info on-screen a short time after closure, to retain the progress display when a watched process exits (#81). 2025-10-17 19:09:46 +01:00
Andrew Wood 61021eab6b Remove the TODO markers for #81 as this work will be done in a separate branch. 2025-10-17 17:52:33 +01:00
Andrew Wood e59452d765 Add a note describing the apparent lack of output file growth during transfer of null bytes with --sparse (#45). 2025-10-16 21:13:43 +01:00
Andrew Wood d2647ac55c Line number updates, and remove incorrect fuzzy entries. 2025-10-15 23:46:04 +01:00
Andrew Wood c2c58762f0 Datestamp update. 2025-10-15 23:28:24 +01:00
Andrew Wood 0a55710cfc Acknowledge the suggestions for --sparse (#45). 2025-10-15 23:28:18 +01:00
Andrew Wood 660d3da704 Note the new --sparse option (#45). 2025-10-15 23:27:53 +01:00
Andrew Wood 972f8b7df8 Re-order no_splice and sparse_output relative to other flags to more closely match the order they appear in the manual. 2025-10-15 23:23:16 +01:00
Andrew Wood a40bdfb55f Merge branch 'issue45_sparse' (#45). 2025-10-15 23:17:05 +01:00
Andrew Wood 3c9ab822fe Call lseek() at the start if output is appending, so that future lseek()s are relative to the right position, fixing the issue with incorrect truncation size (#45). 2025-10-15 23:08:33 +01:00
Andrew Wood fb5ce33518 Add debugging messages about truncation and seeking (#45). 2025-10-15 22:43:56 +01:00
Andrew Wood 5c15337662 Only call ftruncate() once, when the output file descriptor is closed at the end, instead of after every lseek() - this corrects the file growth on XFS but has the side effect that writing to stdout in >> (append) mode truncates the file to the wrong size (#45). 2025-10-15 22:32:21 +01:00
Andrew Wood 71f929e29c Add a TODO indicating the problems so far and what to try next (#45). 2025-10-15 17:49:38 +01:00
Andrew Wood c21ad6fdf1 For sparse output, instead of fstat(), ftruncate(), then lseek(), do lseek() then ftruncate(), like dd does (#45). 2025-10-14 23:38:15 +01:00
Andrew Wood f0895177e7 Remove comment lines from the lab-hosts config when reading it. 2025-10-14 22:11:40 +01:00
Andrew Wood 72686655cf Move the pv__transfer_write_completed label, jumped to on a sparse write, outside of the compound statement; and so, move all of the variables within that compound statement to the start of the function. The GCC on RHEL derivatives like AlmaLinux 9, Rocky 8, CentOS 7/6/5 throws an error if the label is at the end of that block rather than just outside it (#45). 2025-10-14 22:03:41 +01:00
Andrew Wood 2efe598855 Add a test for --sparse (#45). 2025-10-14 21:46:16 +01:00
Andrew Wood 54913fddbe First working draft of --sparse transfers, tests still needed (#45). 2025-10-13 22:13:54 +01:00
Andrew Wood 023cf22a59 Add --sparse / -O to the manual, to --help, and to option processing (#45). 2025-10-13 21:26:24 +01:00
Andrew Wood 164d7f7738 Add the extra --watchfd syntax to the help for that option. 2025-10-13 17:58:37 +01:00
Andrew Wood 6b8acd9e01 Add sparse_output option and control flags, and an output_not_seekable transfer flag, to structures for "sparse output" mode in future (#45). 2025-10-12 18:12:43 +01:00
28 changed files with 880 additions and 523 deletions
+1
View File
@@ -95,6 +95,7 @@ tests/Modifiers_-_--line-mode.test \
tests/Modifiers_-_--size_from_file_size.test \
tests/Modifiers_-_--size.test \
tests/Modifiers_-_--sync.test \
tests/Sparse_-_Basic.test \
tests/Terminal_-_Detect_width.test \
tests/Transfer_-_--rate-limit.test \
tests/Transfer_-_--remote.test \
+11 -5
View File
@@ -1,10 +1,16 @@
# Introduction
This is the README for **pv** ("Pipe Viewer"), a terminal-based tool for
monitoring the progress of data through a pipeline. It can be inserted into
any normal pipeline between two processes to give a visual indication of how
quickly data is passing through, how long it has taken, how near to
completion it is, and an estimate of how long it will be until completion.
**pv** ("Pipe Viewer") is a terminal-based tool for monitoring the progress
of data through a pipeline and modifying its flow.
It can be inserted into any normal pipeline between two processes to give a
visual indication of how quickly data is passing through, how long it has
taken, how near to completion it is, and an estimate of how long it will be
until completion. Data flow rate, error handling strategy, buffer size, and
cache interaction can all be adjusted.
In "**\--watchfd**" mode, **pv** will inspect another process and show its
progress through the files it has open.
# Documentation
+1 -1
View File
@@ -4,7 +4,7 @@ dnl Copyright 2002-2008, 2010, 2012-2015, 2017, 2021, 2023-2025 Andrew Wood
dnl
dnl License GPLv3+: GNU GPL version 3 or later; see `docs/COPYING'.
AC_INIT([pv], [1.9.42], [https://codeberg.org/ivarch/pv/issues], [pv], [https://ivarch.com/p/pv])
AC_INIT([pv], [1.9.44], [https://codeberg.org/ivarch/pv/issues], [pv], [https://ivarch.com/p/pv])
AC_CONFIG_SRCDIR([src/include/config.h.in])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([src/include/config.h])
+2
View File
@@ -108,6 +108,8 @@ is acknowledged and greatly appreciated:
* [Alexander Petrossian](https://github.com/neopaf) - suggested using Unicode output for a more granular progress bar, and provided the codepoints to use ([#15](https://codeberg.org/ivarch/pv/issues/15))
* [jmealo](https://codeberg.org/jmealo) - suggested JSON progress output ([#127](https://codeberg.org/ivarch/pv/issues/127))
* [ipaqmaster](https://codeberg.org/ipaqmaster) - investigated 100%-CPU utilisation bug when piping to a command that has exited ([#164](https://codeberg.org/ivarch/pv/issues/164))
* Andriy Galetski, and also [thinrope](https://codeberg.org/thinrope) - suggested the "**--sparse**" option ([#45](https://codeberg.org/ivarch/pv/issues/45))
* [KimHansen](https://codeberg.org/KimHansen) - suggested that "**--watchfd**" should keep its display when the process ends ([#81](https://codeberg.org/ivarch/pv/issues/81))
Translations provided through [Codeberg Weblate](https://translate.codeberg.org/projects/pv/):
+5
View File
@@ -1,3 +1,8 @@
### 1.9.44 - 18 October 2025
* *feature:* new **--sparse** option to write sparse output ([#45](https://codeberg.org/ivarch/pv/issues/45))
* *fix:* don't clear the **--watchfd** display when the watched process ends ([#81](https://codeberg.org/ivarch/pv/issues/81))
### 1.9.42 - 11 October 2025
* *feature:* permit multiple arguments to **--watchfd** ([#12](https://codeberg.org/ivarch/pv/issues/12))
+24 -6
View File
@@ -1,7 +1,7 @@
.TH PV 1 2025-10-11 pv-1.9.42 "User Commands"
.TH PV 1 2025-10-18 pv-1.9.44 "User Commands"
.\"
.SH NAME
pv \- monitor the progress of data through a pipe
pv \- monitor and manage the progress of data through a pipe
.\"
.SH SYNOPSIS
.B pv
@@ -16,11 +16,15 @@ pv \- monitor the progress of data through a pipe
Show the progress of data through a pipeline by giving information such as
time elapsed, percentage completed (with progress bar), current throughput
rate, total data transferred, and ETA.
The data flow rate, error handling strategy, buffer size, and cache
interaction can all be adjusted.
.PP
Each \fIFILE\fR is copied to standard output.
With no \fIFILE\fR, or when \fIFILE\fR is \*(lq-\*(rq, standard input is
read.
This is the same behaviour as \fBcat\fR(1).
.PP
In \*(lq\fB\-\-watchfd\fR\*(rq mode, inspect another process and show its
progress through the files it has open.
.\"
.SH OPTIONS
.\"
@@ -273,9 +277,9 @@ from or to a pipe than regular \fBread\fR(2) and \fBwrite\fR(2), but means
that the transfer buffer may not be used.
This prevents \*(lq\fB\-\-buffer\-percent\fR\*(rq and
\*(lq\fB\-\-last\-written\fR\*(rq from working, cannot work with
\*(lq\fB\-\-discard\fR\*(rq, and makes \*(lq\fB\-\-buffer\-size\fR\*(rq
redundant, so using any of those options automatically switches on
\*(lq\fB\-\-no\-splice\fR\*(rq.
\*(lq\fB\-\-sparse\fR\*(rq or \*(lq\fB\-\-discard\fR\*(rq, and makes
\*(lq\fB\-\-buffer\-size\fR\*(rq redundant, so using any of those options
automatically switches on \*(lq\fB\-\-no\-splice\fR\*(rq.
Switching on this option results in a small loss of transfer efficiency.
It has no effect on systems where \fBsplice\fR(2) is unavailable.
.TP
@@ -325,6 +329,13 @@ failures with an error of \*(lqInvalid argument\*(rq, especially if reading
and writing files across a variety of filesystems in a single \fBpv\fR call.
Use this option with caution.
.TP
.B \-O, \-\-sparse
When writing null bytes, try to seek, producing a sparse output file.
Implies \*(lq\fB\-\-no\-splice\fR\*(rq.
On filesystems without sparse file support, or when the output is not
seekable, this option will have no effect other than to turn on
\*(lq\fB\-\-no\-splice\fR\*(rq.
.TP
.B \-X, \-\-discard
Instead of transferring input data to standard output, discard it.
This is equivalent to redirecting standard output to \fI/dev/null\fR,
@@ -793,6 +804,13 @@ Numbers passed to \*(lq\fB\-\-last\-written\fR\*(rq,
\*(lq\fB\-\-width\fR\*(rq, \*(lq\fB\-\-height\fR\*(rq,
\*(lq\fB\-\-average\-rate\-window\fR\*(rq, and \*(lq\fB\-\-remote\fR\*(rq
must be integers with no suffix.
.PP
When \*(lq\fB\-\-sparse\fR\*(rq is in effect and output is being written to
a file, that file may look like it has stopped growing if inspected with
\fBls\fR(1) while null bytes are being written, even though \fBpv\fR still
reports progress.
This is because of the way sparse output is achieved, and the file will be
the correct size when the transfer ends.
.\"
.SH REPORTING BUGS
Please report bugs or feature requests via the issue tracker linked from the
+26 -9
View File
@@ -1,6 +1,6 @@
# NAME
pv - monitor the progress of data through a pipe
pv - monitor and manage the progress of data through a pipe
# SYNOPSIS
@@ -15,11 +15,15 @@ pv - monitor the progress of data through a pipe
Show the progress of data through a pipeline by giving information such
as time elapsed, percentage completed (with progress bar), current
throughput rate, total data transferred, and ETA.
throughput rate, total data transferred, and ETA. The data flow rate,
error handling strategy, buffer size, and cache interaction can all be
adjusted.
Each *FILE* is copied to standard output. With no *FILE*, or when *FILE*
is "-", standard input is read. This is the same behaviour as
**cat**(1).
is "-", standard input is read.
In "**\--watchfd**" mode, inspect another process and show its progress
through the files it has open.
# OPTIONS
@@ -281,11 +285,11 @@ are explicitly switched on will be shown.
data from or to a pipe than regular **read**(2) and **write**(2),
but means that the transfer buffer may not be used. This prevents
"**\--buffer-percent**" and "**\--last-written**" from working,
cannot work with "**\--discard**", and makes "**\--buffer-size**"
redundant, so using any of those options automatically switches on
"**\--no-splice**". Switching on this option results in a small loss
of transfer efficiency. It has no effect on systems where
**splice**(2) is unavailable.
cannot work with "**\--sparse**" or "**\--discard**", and makes
"**\--buffer-size**" redundant, so using any of those options
automatically switches on "**\--no-splice**". Switching on this
option results in a small loss of transfer efficiency. It has no
effect on systems where **splice**(2) is unavailable.
**-E, \--skip-errors**
@@ -336,6 +340,13 @@ are explicitly switched on will be shown.
especially if reading and writing files across a variety of
filesystems in a single **pv** call. Use this option with caution.
**-O, \--sparse**
: When writing null bytes, try to seek, producing a sparse output
file. Implies "**\--no-splice**". On filesystems without sparse file
support, or when the output is not seekable, this option will have
no effect other than to turn on "**\--no-splice**".
**-X, \--discard**
: Instead of transferring input data to standard output, discard it.
@@ -753,6 +764,12 @@ Numbers passed to "**\--last-written**", "**\--width**",
"**\--height**", "**\--average-rate-window**", and "**\--remote**" must
be integers with no suffix.
When "**\--sparse**" is in effect and output is being written to a file,
that file may look like it has stopped growing if inspected with
**ls**(1) while null bytes are being written, even though **pv** still
reports progress. This is because of the way sparse output is achieved,
and the file will be the correct size when the transfer ends.
# REPORTING BUGS
Please report bugs or feature requests via the issue tracker linked from
+1 -1
View File
@@ -140,7 +140,7 @@ if test "$1" = "--testRunner"; then
exit 1
fi
labHosts="$(cat ~/.config/lab-hosts 2>/dev/null)"
labHosts="$(grep -v '^#' ~/.config/lab-hosts 2>/dev/null)"
workDir=$(mktemp -d) || exit 1
trap 'rm -rf "${workDir}"' EXIT
+55 -52
View File
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: 2024-10-13 20:43+0000\n"
"Last-Translator: mmatous <mmatous@users.noreply.translate.codeberg.org>\n"
"Language-Team: Czech <https://translate.codeberg.org/projects/pv/pv/cs/>\n"
@@ -168,8 +168,8 @@ msgstr "vypisuj výstup i pokud standardní chybový výstup není terminál"
msgid "use cursor positioning escape sequences"
msgstr "pozicuj kurzor pomocí řídících znaků"
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr "SOUBOR"
@@ -218,61 +218,65 @@ msgid "use direct I/O to bypass cache"
msgstr "použij přímý V/V k obejítí cache"
#: src/main/help.c:355
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "discard input instead of writing to output"
msgstr "zahoď vstup namísto zápisu na výstup"
#: src/main/help.c:358
#: src/main/help.c:361
msgid "write all input to FILE before writing to output"
msgstr "zapiš veškerý vstup do SOUBORu před výpisem na výstup"
#: src/main/help.c:360
msgid "PID[:FD]"
msgstr "PID[:DS]"
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:361
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr "sleduj soubor DS otevřený procesem PID"
#: src/main/help.c:364
#: src/main/help.c:367
msgid "PID"
msgstr "PID"
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr "aktualizuj nastavení procesu PID"
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr "ulož id procesu do SOUBORu"
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr "ukaž pomoc a skonči"
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr "ukaž informace o verzi a skonči"
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr "zapiš ladící záznamy do SOUBORu"
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr "Použití: %s [VOLBY] [SOUBOR]..."
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
"Spoj SOUBOR(y) nebo standardní vstup na standardního výstup, s monitoringem."
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr ""
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr "Prosím, hlašte veškeré chyby na: %s"
@@ -289,11 +293,11 @@ msgstr "selhala alokace stavu"
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr "očekáváno ID procesu nebo dvojice PID:DS"
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr "neplatné ID procesu"
@@ -321,45 +325,45 @@ msgstr "selhalo otevření blokového zařízení"
msgid "failed to determine size of block device"
msgstr "selhalo zjištění velikosti blokového zařízení"
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr "selhala alokace struktury pro volby"
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr "selhala alokace struktury pro argv"
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr ""
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr "očekáván celočíselný argument"
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr "očekáván číselný argument"
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr "Zkuste `%s --help' pro více informací."
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr "Zkuste `%s --h' pro více informací."
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
@@ -367,19 +371,19 @@ msgstr ""
"při sledování deskriptorů souborů nelze použít řádkový mód nebo volby pro "
"modifikaci přenosu"
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr "při sledování deskriptorů souborů nelze pozicování kurzoru použít"
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr "při sledování deskriptorů souborů nelze použít vzdálené ovládání"
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr "při sledování deskriptorů souborů nelze použít přenos souborů"
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr "není dostupné na systémech bez /proc/self/fdinfo"
@@ -431,7 +435,7 @@ msgstr "yzafpnum kMGTPEZY"
msgid "yzafpnum KMGTPEZY"
msgstr "yzafpnum KMGTPEZY"
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr "selhala alokace vyrovnávací paměti"
@@ -502,7 +506,7 @@ msgstr "rychlost min/avg/max/std"
msgid "rate not measured"
msgstr "rychlost neměřena"
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -510,7 +514,7 @@ msgstr "rychlost neměřena"
msgid "pid"
msgstr "pid"
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -520,21 +524,17 @@ msgstr "ds"
msgid "history structure allocation failed"
msgstr "selhala alokace struktury historie"
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr "selhala alokace seznamu souborů"
#: src/pv/state.c:731
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr "selhala alokace seznamu souborů"
msgstr ""
#: src/pv/state.c:739
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr "selhala alokace seznamu souborů"
msgstr ""
#: src/pv/transfer.c:490
msgid "read failed"
@@ -556,30 +556,33 @@ msgstr "selhal skok za chybu"
msgid "skipped past read error"
msgstr "chyba přeskočena"
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr "vyrovnávací paměť není alokována"
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr "selhalo nastavení intervalového časovače"
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr "selhalo vynulování intervalového časovače"
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr "selhala alokace vyrovnávací paměti pro pozici v řádcích"
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr "zápis selhal"
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr "selhalo volání select"
#: src/pv/watchpid.c:129 src/pv/watchpid.c:203
msgid "not a regular file or block device"
msgstr "není obyčejný soubor nebo blokové zařízení"
#~ msgid "PID[:FD]"
#~ msgstr "PID[:DS]"
+55 -52
View File
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: 2025-01-14 20:39+0000\n"
"Last-Translator: Benny <benny@users.noreply.translate.codeberg.org>\n"
"Language-Team: German <https://translate.codeberg.org/projects/pv/pv/de/>\n"
@@ -185,8 +185,8 @@ msgstr ""
msgid "use cursor positioning escape sequences"
msgstr "benutze Escape-Sequenzen zur Cursor-Positionierung"
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr "DATEI"
@@ -235,62 +235,66 @@ msgid "use direct I/O to bypass cache"
msgstr "verwende direkte E/A, um den Cache zu umgehen"
#: src/main/help.c:355
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "discard input instead of writing to output"
msgstr "verwirf die Eingabe anstatt in die Ausgabe zu schreiben"
#: src/main/help.c:358
#: src/main/help.c:361
msgid "write all input to FILE before writing to output"
msgstr "Ausgabe nach FILE schrieben bevor sie ausgegeben wird"
#: src/main/help.c:360
msgid "PID[:FD]"
msgstr "PID[:FD]"
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:361
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr "die vom Prozess PID geöffnete Datei FD beobachten"
#: src/main/help.c:364
#: src/main/help.c:367
msgid "PID"
msgstr "PID"
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr "Einstellungen der Prozess-PID updaten"
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr "Prozess-ID in DATEI speichern"
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr "zeige diese Hilfe und beende"
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr "zeige Versionsinformationen und beende"
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr "schreibe Debug-Protokolle in DATEI"
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr "Aufruf: %s [OPTION] [DATEI]..."
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
"Verbindet DATEI(en) oder den Standard-Eingabe-Kanal mit dem Standard-Ausgabe-"
"Kanal und misst den Datenstrom."
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr "unterstützte Formate:"
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr "Bitte senden Sie Fehlerberichte an %s"
@@ -307,11 +311,11 @@ msgstr "Speicherzuweisung für `state' fehlgeschlagen"
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr "Prozess-ID oder PID:FD-Paar erwartet"
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr "ungültige Prozess-ID"
@@ -339,45 +343,45 @@ msgstr "konnte Blockgerät nicht öffnen"
msgid "failed to determine size of block device"
msgstr "konnte Größe des Blockgeräts nicht ermitteln"
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr "Speicherzuweisung für `option' fehlgeschlagen"
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr "Speicherzuweisung für `argv' der Option fehlgeschlagen"
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr "numerischen Wert nicht verstanden"
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr "Ganzzahliges Argument erwartet"
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr "numerisches Argument erwartet"
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr "`%s --help' zeigt weitere Informationen an."
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr "`%s -h' zeigt weitere Informationen an."
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
@@ -385,24 +389,24 @@ msgstr ""
"Beim Beobachten von Dateideskriptoren können keine Optionen für den "
"Zeilenmodus oder den Übertragungsmodifikator verwendet werden"
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr ""
"Beim Beobachten von Dateideskriptoren kann Cursor-Positionierung nicht "
"verwendet werden"
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr ""
"Beim Beobachten von Dateideskriptoren kann die Fernbedienung nicht verwenden "
"werden"
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr ""
"Beim Beobachten von Dateideskriptoren können Dateien nicht übertragen werden"
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr "Nicht verfügbar auf Systemen ohne /proc/self/fdinfo"
@@ -454,7 +458,7 @@ msgstr "yzafpnµm kMGTPEZY"
msgid "yzafpnum KMGTPEZY"
msgstr "yzafpnµm KMGTPEZY"
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr "Speicherzuweisung für den Puffer fehlgeschlagen"
@@ -525,7 +529,7 @@ msgstr "Rate min/mittel/max/abweichung"
msgid "rate not measured"
msgstr "Übertragungsrate nicht gemessen"
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -533,7 +537,7 @@ msgstr "Übertragungsrate nicht gemessen"
msgid "pid"
msgstr "pid"
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -543,21 +547,17 @@ msgstr "fd"
msgid "history structure allocation failed"
msgstr "Speicherzuweisung für `history' fehlgeschlagen"
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr "Speicherzuweisung für die Dateiliste fehlgeschlagen"
#: src/pv/state.c:731
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr "Speicherzuweisung für die Dateiliste fehlgeschlagen"
msgstr ""
#: src/pv/state.c:739
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr "Speicherzuweisung für die Dateiliste fehlgeschlagen"
msgstr ""
#: src/pv/transfer.c:490
msgid "read failed"
@@ -579,30 +579,33 @@ msgstr "konnte den Fehler nicht überwinden"
msgid "skipped past read error"
msgstr "über den Lesefehler hinaus verschoben"
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr "Speicherzuweisung für den Transferpuffer fehlgeschlagen"
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr "konnte Intervall-Timer nicht setzen"
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr "konnte Intervall-Timer nicht löschen"
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr "Zuweisung des Zeilenpuffers fehlgeschlagen"
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr "write-Aufruf fehlgeschlagen"
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr "select-Aufruf fehlgeschlagen"
#: src/pv/watchpid.c:129 src/pv/watchpid.c:203
msgid "not a regular file or block device"
msgstr "ist weder eine normale Datei noch ein Blockgerät"
#~ msgid "PID[:FD]"
#~ msgstr "PID[:FD]"
+51 -47
View File
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -163,8 +163,8 @@ msgstr ""
msgid "use cursor positioning escape sequences"
msgstr ""
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr ""
@@ -213,60 +213,64 @@ msgid "use direct I/O to bypass cache"
msgstr ""
#: src/main/help.c:355
msgid "discard input instead of writing to output"
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "write all input to FILE before writing to output"
msgstr ""
#: src/main/help.c:360
msgid "PID[:FD]"
msgid "discard input instead of writing to output"
msgstr ""
#: src/main/help.c:361
msgid "watch file FD opened by process PID"
msgid "write all input to FILE before writing to output"
msgstr ""
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr ""
#: src/main/help.c:367
msgid "PID"
msgstr ""
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr ""
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr ""
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr ""
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr ""
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr ""
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr ""
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr ""
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr ""
@@ -283,11 +287,11 @@ msgstr ""
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr ""
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr ""
@@ -315,63 +319,63 @@ msgstr ""
msgid "failed to determine size of block device"
msgstr ""
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr ""
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr ""
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr ""
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr ""
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr ""
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr ""
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr ""
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
msgstr ""
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr ""
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr ""
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr ""
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr ""
@@ -423,7 +427,7 @@ msgstr ""
msgid "yzafpnum KMGTPEZY"
msgstr ""
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr ""
@@ -494,7 +498,7 @@ msgstr ""
msgid "rate not measured"
msgstr ""
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -502,7 +506,7 @@ msgstr ""
msgid "pid"
msgstr ""
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -512,15 +516,15 @@ msgstr ""
msgid "history structure allocation failed"
msgstr ""
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr ""
#: src/pv/state.c:731
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr ""
#: src/pv/state.c:739
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr ""
@@ -544,27 +548,27 @@ msgstr ""
msgid "skipped past read error"
msgstr ""
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr ""
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr ""
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr ""
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr ""
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr ""
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr ""
+51 -47
View File
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pv 1.9.34\n"
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -168,8 +168,8 @@ msgstr ""
msgid "use cursor positioning escape sequences"
msgstr ""
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr ""
@@ -218,60 +218,64 @@ msgid "use direct I/O to bypass cache"
msgstr ""
#: src/main/help.c:355
msgid "discard input instead of writing to output"
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "write all input to FILE before writing to output"
msgstr ""
#: src/main/help.c:360
msgid "PID[:FD]"
msgid "discard input instead of writing to output"
msgstr ""
#: src/main/help.c:361
msgid "watch file FD opened by process PID"
msgid "write all input to FILE before writing to output"
msgstr ""
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr ""
#: src/main/help.c:367
msgid "PID"
msgstr ""
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr ""
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr ""
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr ""
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr ""
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr ""
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr ""
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr ""
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr ""
@@ -288,11 +292,11 @@ msgstr ""
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr ""
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr ""
@@ -320,63 +324,63 @@ msgstr ""
msgid "failed to determine size of block device"
msgstr ""
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr ""
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr ""
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr ""
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr ""
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr ""
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr ""
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr ""
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
msgstr ""
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr ""
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr ""
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr ""
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr ""
@@ -428,7 +432,7 @@ msgstr ""
msgid "yzafpnum KMGTPEZY"
msgstr ""
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr ""
@@ -499,7 +503,7 @@ msgstr ""
msgid "rate not measured"
msgstr ""
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -507,7 +511,7 @@ msgstr ""
msgid "pid"
msgstr ""
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -517,15 +521,15 @@ msgstr ""
msgid "history structure allocation failed"
msgstr ""
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr ""
#: src/pv/state.c:731
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr ""
#: src/pv/state.c:739
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr ""
@@ -549,27 +553,27 @@ msgstr ""
msgid "skipped past read error"
msgstr ""
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr ""
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr ""
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr ""
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr ""
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr ""
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr ""
+55 -52
View File
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: 2025-05-31 08:58+0000\n"
"Last-Translator: milimarg <milimarg@noreply.codeberg.org>\n"
"Language-Team: French <https://translate.codeberg.org/projects/pv/pv/fr/>\n"
@@ -186,8 +186,8 @@ msgstr ""
msgid "use cursor positioning escape sequences"
msgstr "utiliser les séquences d'échappements de positionnement de curseur"
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr "FICHIER"
@@ -236,62 +236,66 @@ msgid "use direct I/O to bypass cache"
msgstr "utiliser les E/S directes pour contourner le cache"
#: src/main/help.c:355
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "discard input instead of writing to output"
msgstr "rejeter l'entrée au lieu de l'écrire vers la sortie"
#: src/main/help.c:358
#: src/main/help.c:361
msgid "write all input to FILE before writing to output"
msgstr "écrire toute l'entrée vers FICHIER avant de l'écrire vers la sortie"
#: src/main/help.c:360
msgid "PID[:FD]"
msgstr "PID[:FD]"
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:361
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr "surveiller le fichier FD ouvert par le processus PID"
#: src/main/help.c:364
#: src/main/help.c:367
msgid "PID"
msgstr "PID"
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr "mettre à jour la configuration du processus PID"
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr "enregistrer l'ID de processus dans FICHIER"
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr "afficher cette aide puis quitter"
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr "afficher la version puis quitter"
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr "écrire les journaux de déboggage vers FICHIER"
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr "Utilisation : %s [OPTIONS] [FICHIER]..."
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
"Concaténer FICHIER(s), ou l'entrée standard, sur la sortie standard avec "
"monitorage."
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr "Séquences de formatage supportées :"
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr "SVP rapporter tous bogues à %s"
@@ -308,11 +312,11 @@ msgstr "échec de l'allocation de mémoire de condition"
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr "ID de processus ou paire pid:fd attendue"
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr "ID de processus non valide"
@@ -340,45 +344,45 @@ msgstr "échec de l'ouverture du périphérique de bloc"
msgid "failed to determine size of block device"
msgstr "échec de l'évaluation de la taille du périphérique de bloc"
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr "l'allocation pour la structure d'une option a échoué"
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr "l'allocation pour la structure de l'option argv a échoué"
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr "valeur numérique non comprise"
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr "Valeur entière attendue"
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr "Valeur numérique attendue"
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr "Essayez `%s --help' pour plus d'informations."
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr "Essayez `%s -h' pour plus d'informations."
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
@@ -386,25 +390,25 @@ msgstr ""
"impossible d'utiliser le mode ligne ou les options de modificateur de "
"transfert lors de la visualisation des descripteurs de fichiers"
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr ""
"impossible d'utiliser le positionnement du curseur lors de la visualisation "
"des descripteurs de fichier"
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr ""
"impossible d'utiliser la télécommande lors de la visualisation des "
"descripteurs de fichiers"
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr ""
"impossible de transférer des fichiers lorsque vous regardez des descripteurs "
"de fichiers"
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr "non disponible sur les systèmes sans /proc/self/fdinfo"
@@ -458,7 +462,7 @@ msgstr "yzafpnum kMGTPEZY"
msgid "yzafpnum KMGTPEZY"
msgstr "yzafpnum KMGTPEZY"
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr "échec de l'allocation de mémoire tampon"
@@ -529,7 +533,7 @@ msgstr "taux min/moy/max/écart-type"
msgid "rate not measured"
msgstr "taux non mesuré"
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -537,7 +541,7 @@ msgstr "taux non mesuré"
msgid "pid"
msgstr "pid"
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -547,21 +551,17 @@ msgstr "fd"
msgid "history structure allocation failed"
msgstr "l'allocation de la structure de l'historique a échoué"
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr "échec de l'allocation de la liste de fichiers"
#: src/pv/state.c:731
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr "échec de l'allocation de la liste de fichiers"
msgstr ""
#: src/pv/state.c:739
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr "échec de l'allocation de la liste de fichiers"
msgstr ""
#: src/pv/transfer.c:490
msgid "read failed"
@@ -583,27 +583,27 @@ msgstr "n'a pas réussi à dépasser l'erreur"
msgid "skipped past read error"
msgstr "erreur de lecture dépassée"
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr "aucun tampon de transfert alloué"
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr "La définition de l'intervalle du minuteur a échoué"
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr "La réinitialisation des intervalles du minuteur a échoué"
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr "L'allocation de la position de la ligne de la mémoire tampon a échoué"
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr "l'écriture a échoué"
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr "l'appel de sélection a échoué"
@@ -611,5 +611,8 @@ msgstr "l'appel de sélection a échoué"
msgid "not a regular file or block device"
msgstr "pas un fichier ordinaire ou un périphérique de bloc"
#~ msgid "PID[:FD]"
#~ msgstr "PID[:FD]"
#~ msgid "failed to set alarm signal handler"
#~ msgstr "échec de la définition du gestionnaire de signal d'alarme"
+53 -46
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: 2025-10-02 13:23+0000\n"
"Last-Translator: Coral Pink <coralpink@noreply.codeberg.org>\n"
"Language-Team: Polish <https://translate.codeberg.org/projects/pv/pv/pl/>\n"
@@ -178,8 +178,8 @@ msgstr "pokaż wyjście nawet standardowe wyjście błędu nie jest terminalem"
msgid "use cursor positioning escape sequences"
msgstr "używaj znaków ucieczki do pozycjonowania kursora"
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr "PLIK"
@@ -229,63 +229,67 @@ msgstr ""
"użyj bezpośredniego wejścia/wyjścia celem pominięcia pamięci podręcznej"
#: src/main/help.c:355
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "discard input instead of writing to output"
msgstr "zignoruj dane wejściowe zamiast wyświetlić je na wyjściu standardowym"
#: src/main/help.c:358
#: src/main/help.c:361
msgid "write all input to FILE before writing to output"
msgstr ""
"zapisz wszystkie dane wejściowe do PLIK przed wyświetleniem ich na wyjściu"
#: src/main/help.c:360
msgid "PID[:FD]"
msgstr "PID[:FD]"
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:361
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr "obserwuj plik FD otworzony przez proces PID"
#: src/main/help.c:364
#: src/main/help.c:367
msgid "PID"
msgstr "PID"
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr "zaktualizuj ustawienia procesu PID"
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr "zapisz ID procesu do PLIK"
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr "wyświetl te informacje z pomocą i wyjdź"
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr "wyświetl informacje o wersji i wyjdź"
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr "zapisz logi debugujące do PLIK"
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr "Sposób użycia: %s [OPCJA] [PLIK]..."
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
"Łączenie PLIK(ów) lub wejścia standardowego, do wyjścia standardowego z "
"monitoringiem."
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr "Wspierane sekwencje formatowania:"
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr "Proszę przesyłać zgłoszenia błędów do %s"
@@ -302,11 +306,11 @@ msgstr "alokacja stanu programu nie powiodła się"
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr "oczekiwany proces ID lub para PID:FD"
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr "niepoprawne ID procesu"
@@ -334,45 +338,45 @@ msgstr "nie udało się otworzyć urządzenia blokowego"
msgid "failed to determine size of block device"
msgstr "nie udało się ustalić rozmiaru urządzenia blokowego"
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr "nie udało się zaalokować struktur opcji"
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr "nie udało się zaalokować struktur opcji argv"
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr "wartość liczbowa niezrozumiana"
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr "oczekiwany argument typu liczby całkowitej"
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr "oczekiwany argument liczbowy"
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr "Spróbuj `%s --help' by uzyskać więcej informacji."
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr "Spróbuj `%s -h' by uzyskać więcej informacji."
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
@@ -380,23 +384,23 @@ msgstr ""
"nie można użyć trybu zliczania linii lub opcji modyfikujących przesył "
"łącznie z opcją obserwowania deskryptorów plików"
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr ""
"nie można użyć pozycjonowania kursora łącznie z opcją obserwowania "
"deskryptorów plików"
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr ""
"nie można użyć opcji zaktualizowania ustawień procesu łącznie z opcją "
"obserwowania deskryptorów plików"
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr "nie można przesyłać plików z opcją obserwowania deskryptorów plików"
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr "niedostępne na systemach bez /proc/self/fdinfo"
@@ -449,7 +453,7 @@ msgstr "yzafpnum kMGTPEZY"
msgid "yzafpnum KMGTPEZY"
msgstr "yzafpnum KMGTPEZY"
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr "nie udało się zaalokować bufora"
@@ -521,7 +525,7 @@ msgstr "prędkość min/śr/max/odch"
msgid "rate not measured"
msgstr "prędkość niezmierzona"
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -529,7 +533,7 @@ msgstr "prędkość niezmierzona"
msgid "pid"
msgstr "pid"
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -539,15 +543,15 @@ msgstr "fd"
msgid "history structure allocation failed"
msgstr "nie udało się zaalokować struktury historii"
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr "nie udało się zaalokować listy plików"
#: src/pv/state.c:731
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr "nie udało się zaalokować listy procesów"
#: src/pv/state.c:739
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr "nie udało się zaalokować listy deskryptorów plików"
@@ -571,31 +575,34 @@ msgstr "nie udało się przewinąć za błąd"
msgid "skipped past read error"
msgstr "pominięto błąd odczytu"
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr "brak zaalokowanego bufora transferu"
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr "nie udało się ustawić interwału czasowego"
# "Przewidywany czas ukończenia" for ETA is too long
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr "nie udało się wyczyścić interwału czasowego"
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr "alokacja buforu pozycji linii nie powiodła się"
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr "błąd zapisu"
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr "nie udało się wywołać funkcji select"
#: src/pv/watchpid.c:129 src/pv/watchpid.c:203
msgid "not a regular file or block device"
msgstr "plik nie jest plikiem regularnym lub urządzeniem blokowym"
#~ msgid "PID[:FD]"
#~ msgstr "PID[:FD]"
+53 -53
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -171,8 +171,8 @@ msgstr "gera dados mesmo que a saída de erro seja redirecionada"
msgid "use cursor positioning escape sequences"
msgstr "utiliza caracteres de escape para posicionar o cursor"
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr ""
@@ -221,62 +221,66 @@ msgid "use direct I/O to bypass cache"
msgstr ""
#: src/main/help.c:355
msgid "discard input instead of writing to output"
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "write all input to FILE before writing to output"
msgstr ""
#: src/main/help.c:360
msgid "PID[:FD]"
msgid "discard input instead of writing to output"
msgstr ""
#: src/main/help.c:361
msgid "write all input to FILE before writing to output"
msgstr ""
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr "assistir arquivo FD aberto pelo processo PID"
#: src/main/help.c:364
#: src/main/help.c:367
msgid "PID"
msgstr ""
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr "atualizar as configurações do processo PID"
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr "salvar ID do processo em FILE"
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr "exibe esta tela de ajuda e termina"
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr "exibe a versão e termina"
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr ""
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr "Uso: %s [OPÇÕES] [ARQUIVOS]..."
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
"Concatena ARQUIVO(s) ou a entrada padrão e grava na saída padrão, com "
"monitoramento."
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr ""
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr "Por favor, reporte quaisquer defeitos para %s"
@@ -293,11 +297,11 @@ msgstr "alocação de memória de status falhou"
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr "ID do processo ou par pid:fd esperado"
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr "ID de processo inválido"
@@ -325,45 +329,45 @@ msgstr ""
msgid "failed to determine size of block device"
msgstr ""
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr "erro na alocação da estrutura de opções"
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr "erro na alocação da estrutura de opções argv"
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr ""
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr "argumento inteiro esperado"
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr "argumento numérico esperado"
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr "Tente `%s --help' para maiores informações."
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr "Tente `%s -h' para maiores informações."
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
@@ -371,21 +375,21 @@ msgstr ""
"não pode usar o modo de linha ou opções de modificador de transferência ao "
"assistir os descritores de arquivo"
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr ""
"não pode usar o posicionamento do cursor ao observar os descritores de "
"arquivo"
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr "não pode usar o controle remoto ao assistir os descritores de arquivo"
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr "não pode transferir arquivos ao assistir descritores de arquivo"
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr "não disponível em sistemas sem /proc/self/fdinfo"
@@ -437,7 +441,7 @@ msgstr ""
msgid "yzafpnum KMGTPEZY"
msgstr ""
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr "erro alocando o buffer"
@@ -508,7 +512,7 @@ msgstr ""
msgid "rate not measured"
msgstr ""
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -516,7 +520,7 @@ msgstr ""
msgid "pid"
msgstr ""
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -526,21 +530,17 @@ msgstr ""
msgid "history structure allocation failed"
msgstr ""
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr ""
#: src/pv/state.c:731
#, fuzzy
#| msgid "state allocation failed"
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr "alocação de memória de status falhou"
msgstr ""
#: src/pv/state.c:739
#, fuzzy
#| msgid "state allocation failed"
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr "alocação de memória de status falhou"
msgstr ""
#: src/pv/transfer.c:490
msgid "read failed"
@@ -562,27 +562,27 @@ msgstr "não pode ir além do erro"
msgid "skipped past read error"
msgstr "ignorado erro de leitura"
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr ""
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr ""
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr ""
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr ""
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr "erro de gravação"
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr "erro na chamada da função select"
+55 -52
View File
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: 2025-01-15 19:08+0000\n"
"Last-Translator: 0ko <0ko@users.noreply.translate.codeberg.org>\n"
"Language-Team: Russian <https://translate.codeberg.org/projects/pv/pv/ru/>\n"
@@ -170,8 +170,8 @@ msgid "use cursor positioning escape sequences"
msgstr ""
"использовать символьные последовательности для позиционирования курсора"
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr "ФАЙЛ"
@@ -220,60 +220,64 @@ msgid "use direct I/O to bypass cache"
msgstr "использовать прямой ввод/вывод для обхода кеша"
#: src/main/help.c:355
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "discard input instead of writing to output"
msgstr "отбрасывать ввод вместо записи в вывод"
#: src/main/help.c:358
#: src/main/help.c:361
msgid "write all input to FILE before writing to output"
msgstr "записывать весь ввод в ФАЙЛ прежде, чем отправлять на вывод"
#: src/main/help.c:360
msgid "PID[:FD]"
msgstr "ИДпр[:FD]"
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:361
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr "следить за FD файла, открытого процессом ИДпр"
#: src/main/help.c:364
#: src/main/help.c:367
msgid "PID"
msgstr "ИДпр"
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr "обновить настройки ИДпр процесса"
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr "сохранить ИД процесса в ФАЙЛ"
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr "показать справку и завершить работу"
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr "показать версию программы и завершить работу"
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr "вести запись отладочного журнала в ФАЙЛ"
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr "Использование: %s [ОПЦИИ] [ФАЙЛ]..."
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr "Поддерживаемые последовательности:"
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr "Сообщайте о проблемах на: %s"
@@ -290,11 +294,11 @@ msgstr ""
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr "ожидался ИД процесса или пара ИДпр:ДФ"
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr "неправильный ИД процесса"
@@ -322,63 +326,63 @@ msgstr "не удалось открыть блочное устройство"
msgid "failed to determine size of block device"
msgstr "не удалось определить размер блочного устройства"
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr "не удалось выделить память для структуры опций"
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr "не удалось выделить память для структуры опций argv"
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr "число не распознано"
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr "ожидалось целое число"
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr "ожидалось число"
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr "Выполните `%s --help' для получения подробностей."
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr "Выполните `%s -h' для получения подробностей."
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
msgstr ""
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr ""
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr "удалённое управление невозможно при отслеживании дескрипторов файлов"
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr "передача файлов невозможна при отслеживании дескрипторов файлов"
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr "невозможно на системах без /proc/self/fdinfo"
@@ -432,7 +436,7 @@ msgstr ""
msgid "yzafpnum KMGTPEZY"
msgstr ""
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr "не удалось выделить память для буфера"
@@ -503,7 +507,7 @@ msgstr "скор. мин/сред/макс/дев"
msgid "rate not measured"
msgstr "скорость не изменяется"
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -511,7 +515,7 @@ msgstr "скорость не изменяется"
msgid "pid"
msgstr "ИДпр"
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -521,21 +525,17 @@ msgstr "дф"
msgid "history structure allocation failed"
msgstr "не удалось выделить память для структуры истории"
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr "не удалось выделить память для списка файлов"
#: src/pv/state.c:731
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr "не удалось выделить память для списка файлов"
msgstr ""
#: src/pv/state.c:739
#, fuzzy
#| msgid "file list allocation failed"
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr "не удалось выделить память для списка файлов"
msgstr ""
#: src/pv/transfer.c:490
msgid "read failed"
@@ -557,30 +557,33 @@ msgstr ""
msgid "skipped past read error"
msgstr ""
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr "не выделена память для буфера передачи"
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr "не удалось задать измеритель временного промежутка"
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr "не удалось очистить измеритель временного промежутка"
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr ""
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr "запись не удалась"
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr "запрос выборки не удался"
#: src/pv/watchpid.c:129 src/pv/watchpid.c:203
msgid "not a regular file or block device"
msgstr "не является обычным файлом или блочным устройством"
#~ msgid "PID[:FD]"
#~ msgstr "ИДпр[:FD]"
+53 -46
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pv 1.8.14\n"
"Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n"
"POT-Creation-Date: 2025-10-11 16:00+0100\n"
"POT-Creation-Date: 2025-10-18 19:34+0100\n"
"PO-Revision-Date: 2025-10-05 20:09+0000\n"
"Last-Translator: Oğuz Ersen <ersen@noreply.codeberg.org>\n"
"Language-Team: Turkish <https://translate.codeberg.org/projects/pv/pv/tr/>\n"
@@ -169,8 +169,8 @@ msgstr "standart hata bir terminal olmasa bile çıktı yazdır"
msgid "use cursor positioning escape sequences"
msgstr "imleç konumlandırma kaçış dizilerini kullan"
#: src/main/help.c:327 src/main/help.c:357 src/main/help.c:369
#: src/main/help.c:379
#: src/main/help.c:327 src/main/help.c:360 src/main/help.c:372
#: src/main/help.c:382
msgid "FILE"
msgstr "DOSYA"
@@ -219,61 +219,65 @@ msgid "use direct I/O to bypass cache"
msgstr "Önbelleği atlamak için doğrudan I/O kullan"
#: src/main/help.c:355
msgid "try to seek instead of writing null bytes"
msgstr ""
#: src/main/help.c:358
msgid "discard input instead of writing to output"
msgstr "Girdiyi çıktıya yazmak yerine yok say"
#: src/main/help.c:358
#: src/main/help.c:361
msgid "write all input to FILE before writing to output"
msgstr "çıktıya yazmadan önce tüm girdiyi DOSYA'ya yaz"
#: src/main/help.c:360
msgid "PID[:FD]"
msgstr "PID[:FD]"
#: src/main/help.c:363
msgid "PID[:FD]|=NAME|@LISTFILE"
msgstr ""
#: src/main/help.c:361
#: src/main/help.c:364
msgid "watch file FD opened by process PID"
msgstr "FD izleme dosyası PID işlemi tarafından açıldı"
#: src/main/help.c:364
#: src/main/help.c:367
msgid "PID"
msgstr "PID"
#: src/main/help.c:365
#: src/main/help.c:368
msgid "update settings of process PID"
msgstr "süreç PID ayarlarını güncelle"
#: src/main/help.c:370
#: src/main/help.c:373
msgid "save process ID in FILE"
msgstr "FILE'da işlem kimliğini (ID) kaydet"
#: src/main/help.c:373
#: src/main/help.c:376
msgid "show this help and exit"
msgstr "bu yardımı göster ve çık"
#: src/main/help.c:376
#: src/main/help.c:379
msgid "show version information and exit"
msgstr "sürüm bilgilerini göster ve çık"
#: src/main/help.c:380
#: src/main/help.c:383
msgid "write debug logs to FILE"
msgstr "Hata ayıklama kayıtlarını DOSYA'ya yaz"
#: src/main/help.c:406
#: src/main/help.c:409
#, c-format
msgid "Usage: %s [OPTION] [FILE]..."
msgstr "Kullanım şekli: %s [AYAR] [DOSYA]..."
#: src/main/help.c:417
#: src/main/help.c:420
msgid ""
"Concatenate FILE(s), or standard input, to standard output, with monitoring."
msgstr ""
"İzleme ile DOSYA(lar)ı veya standart girdiyi standart çıktı ile birleştirin."
#: src/main/help.c:555
#: src/main/help.c:558
msgid "Supported format sequences:"
msgstr "Desteklenen biçim dizileri:"
#: src/main/help.c:569
#: src/main/help.c:572
#, c-format
msgid "Please report any bugs to: %s"
msgstr "Lütfen hataları şu adrese bildirin: %s"
@@ -290,11 +294,11 @@ msgstr "durum tahsisi başarısız oldu"
msgid "list files may not contain @ lines"
msgstr ""
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:802
#: src/main/options.c:391 src/main/options.c:393 src/main/options.c:804
msgid "process ID or pid:fd pair expected"
msgstr "süreç kimliği (ID) veya pid:fd çifti bekleniyor"
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:809
#: src/main/options.c:403 src/main/options.c:405 src/main/options.c:811
msgid "invalid process ID"
msgstr "geçersiz süreç kimliği (ID)"
@@ -322,45 +326,45 @@ msgstr "blok aygıtı açılamadı"
msgid "failed to determine size of block device"
msgstr "blok aygıtının boyutu belirlenemedi"
#: src/main/options.c:649
#: src/main/options.c:651
msgid "option structure allocation failed"
msgstr "seçenek yapısı tahsisi başarısız oldu"
#: src/main/options.c:668
#: src/main/options.c:670
msgid "option structure argv allocation failed"
msgstr "seçenek yapısı argv tahsisi başarısız oldu"
#: src/main/options.c:720
#: src/main/options.c:722
msgid "numeric value not understood"
msgstr "sayısal değer anlaşılmadı"
#: src/main/options.c:738
#: src/main/options.c:740
msgid "integer argument expected"
msgstr "tamsayı bağımsız değişkeni bekleniyor"
#: src/main/options.c:750
#: src/main/options.c:752
msgid "numeric argument expected"
msgstr "sayısal bağımsız değişken bekleniyor"
#: src/main/options.c:762
#: src/main/options.c:764
msgid "missing filename"
msgstr ""
#: src/main/options.c:790
#: src/main/options.c:792
msgid "missing process name"
msgstr ""
#: src/main/options.c:1042
#: src/main/options.c:1048
#, c-format
msgid "Try `%s --help' for more information."
msgstr "Daha fazla bilgi için `%s --help' seçeneğini deneyin."
#: src/main/options.c:1044
#: src/main/options.c:1050
#, c-format
msgid "Try `%s -h' for more information."
msgstr "Daha fazla bilgi için `%s -h' seçeneğini deneyin."
#: src/main/options.c:1075
#: src/main/options.c:1081
msgid ""
"cannot use line mode or transfer modifier options when watching file "
"descriptors"
@@ -368,19 +372,19 @@ msgstr ""
"dosya tanımlayıcılarını izlerken satır modu veya aktarım değiştirici "
"seçeneklerini kullanamaz"
#: src/main/options.c:1084
#: src/main/options.c:1090
msgid "cannot use cursor positioning when watching file descriptors"
msgstr "dosya tanımlayıcılarını izlerken imleç konumlandırmayı kullanamaz"
#: src/main/options.c:1093
#: src/main/options.c:1099
msgid "cannot use remote control when watching file descriptors"
msgstr "dosya tanımlayıcılarını izlerken uzaktan kumandayı kullanamaz"
#: src/main/options.c:1102
#: src/main/options.c:1108
msgid "cannot transfer files when watching file descriptors"
msgstr "dosya tanımlayıcıları izlenirken dosya aktarılamıyor"
#: src/main/options.c:1127
#: src/main/options.c:1133
msgid "not available on systems without /proc/self/fdinfo"
msgstr "/proc/self/fdinfo olmayan sistemlerde kullanılamaz"
@@ -433,7 +437,7 @@ msgstr "yzafpnum kMGTPEZY"
msgid "yzafpnum KMGTPEZY"
msgstr "yzafpnum KMGTPEZY"
#: src/pv/display.c:1053 src/pv/loop.c:747 src/pv/transfer.c:1083
#: src/pv/display.c:1053 src/pv/loop.c:754 src/pv/transfer.c:1135
msgid "buffer allocation failed"
msgstr "arabellek tahsisi başarısız oldu"
@@ -504,7 +508,7 @@ msgstr "oran min/ortalama/maks/standart sapma"
msgid "rate not measured"
msgstr "oran ölçülmedi"
#: src/pv/loop.c:768 src/pv/loop.c:784 src/pv/loop.c:802 src/pv/watchpid.c:99
#: src/pv/loop.c:775 src/pv/loop.c:791 src/pv/loop.c:809 src/pv/watchpid.c:99
#: src/pv/watchpid.c:108 src/pv/watchpid.c:119 src/pv/watchpid.c:127
#: src/pv/watchpid.c:164 src/pv/watchpid.c:183 src/pv/watchpid.c:191
#: src/pv/watchpid.c:201 src/pv/watchpid.c:299 src/pv/watchpid.c:307
@@ -512,7 +516,7 @@ msgstr "oran ölçülmedi"
msgid "pid"
msgstr "pid"
#: src/pv/loop.c:802 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/loop.c:809 src/pv/watchpid.c:108 src/pv/watchpid.c:120
#: src/pv/watchpid.c:129 src/pv/watchpid.c:183 src/pv/watchpid.c:192
#: src/pv/watchpid.c:203
msgid "fd"
@@ -522,15 +526,15 @@ msgstr "fd"
msgid "history structure allocation failed"
msgstr "geçmiş yapısı tahsisi başarısız oldu"
#: src/pv/state.c:685 src/pv/state.c:697
#: src/pv/state.c:741 src/pv/state.c:753
msgid "file list allocation failed"
msgstr "dosya listesi tahsisi başarısız oldu"
#: src/pv/state.c:731
#: src/pv/state.c:787
msgid "process list allocation failed"
msgstr "işlem listesi tahsisi başarısız oldu"
#: src/pv/state.c:739
#: src/pv/state.c:795
msgid "file descriptor list allocation failed"
msgstr "dosya tanımlayıcı listesi tahsisi başarısız oldu"
@@ -554,30 +558,33 @@ msgstr "geçmiş hatayı aramakta başarısız oldu"
msgid "skipped past read error"
msgstr "geçmiş okuma hatası atlandı"
#: src/pv/transfer.c:660
#: src/pv/transfer.c:663
msgid "no transfer buffer allocated"
msgstr "aktarım arabelleği ayrılmamış"
#: src/pv/transfer.c:702
#: src/pv/transfer.c:751
msgid "failed to set interval timer"
msgstr "aralık zamanlayıcısı ayarlanamadı"
#: src/pv/transfer.c:728
#: src/pv/transfer.c:777
msgid "failed to clear interval timer"
msgstr "aralık zamanlayıcısı temizlenemedi"
#: src/pv/transfer.c:770
#: src/pv/transfer.c:822
msgid "line position buffer allocation failed"
msgstr "satır konumu arabellek tahsisi başarısız oldu"
#: src/pv/transfer.c:944
#: src/pv/transfer.c:996
msgid "write failed"
msgstr "yazma başarısız"
#: src/pv/transfer.c:1185
#: src/pv/transfer.c:1237
msgid "select call failed"
msgstr "seçme çağrısı başarısız oldu"
#: src/pv/watchpid.c:129 src/pv/watchpid.c:203
msgid "not a regular file or block device"
msgstr "normal bir dosya veya blok aygıtı değil"
#~ msgid "PID[:FD]"
#~ msgstr "PID[:FD]"
+1
View File
@@ -89,6 +89,7 @@ struct opts_s {
bool stop_at_size; /* set if we stop at "size" bytes */
bool sync_after_write; /* set if we sync after every write */
bool direct_io; /* set if O_DIRECT is to be used */
bool sparse_output; /* set if we leave holes in the output */
bool discard_input; /* set to write nothing to output */
bool show_stats; /* set to write statistics at the end */
bool width_set_manually; /* width was set manually, not detected */
+6 -4
View File
@@ -203,11 +203,12 @@ struct pvstate_s {
bool decimal_units; /* use decimal prefixes */
bool null_terminated_lines; /* lines are null-terminated */
bool no_display; /* do nothing other than pipe data */
bool no_splice; /* never use splice() */
bool stop_at_size; /* set if we stop at "size" bytes */
bool sync_after_write; /* set if we sync after every write */
bool direct_io; /* set if O_DIRECT is to be used */
bool direct_io_changed; /* set when direct_io is changed */
bool no_splice; /* never use splice() */
bool sparse_output; /* set if we leave holes in the output */
bool discard_input; /* write nothing to stdout */
bool show_stats; /* show statistics on exit */
bool width_set_manually; /* width was set manually, not detected */
@@ -437,6 +438,7 @@ struct pvstate_s {
bool splice_used;
#endif
bool read_error_warning_shown;
bool output_not_seekable; /* set if lseek() fails on output */
} transfer;
};
@@ -518,11 +520,11 @@ struct pvwatchfd_s {
off_t size; /* size of whole file, 0 if unknown */
off_t position; /* position last seen at */
struct timespec start_time; /* time we started watching the fd */
struct timespec last_active; /* time the fd was last seen open (TODO, #81) */
pid_t watch_pid; /* PID to watch */
struct timespec end_time; /* time the fd was marked as closed */
pid_t watch_pid; /* PID the fd belongs to */
int watch_fd; /* fd to watch */
bool closed; /* true once the fd is closed */
bool displayable; /* false if not displayable */
bool inactive; /* true if the fd is now closed (TODO, #81) */
bool unused; /* true if free for re-use */
};
typedef struct pvwatchfd_s *pvwatchfd_t;
+1
View File
@@ -221,6 +221,7 @@ extern void pv_state_error_skip_block_set(pvstate_t, off_t);
extern void pv_state_stop_at_size_set(pvstate_t, bool);
extern void pv_state_sync_after_write_set(pvstate_t, bool);
extern void pv_state_direct_io_set(pvstate_t, bool);
extern void pv_state_sparse_output_set(pvstate_t, bool);
extern void pv_state_rate_limit_set(pvstate_t, off_t);
extern void pv_state_target_buffer_size_set(pvstate_t, size_t);
extern void pv_state_no_splice_set(pvstate_t, bool);
+4 -1
View File
@@ -351,13 +351,16 @@ void display_help(void)
{ "-K", "--direct-io", NULL,
N_("use direct I/O to bypass cache"),
{ 0, 0, 0, 0} },
{ "-O", "--sparse", NULL,
N_("try to seek instead of writing null bytes"),
{ 0, 0, 0, 0} },
{ "-X", "--discard", NULL,
N_("discard input instead of writing to output"),
{ 0, 0, 0, 0} },
{ "-U", "--store-and-forward", N_("FILE"),
N_("write all input to FILE before writing to output"),
{ 0, 0, 0, 0} },
{ "-d", "--watchfd", N_("PID[:FD]"),
{ "-d", "--watchfd", N_("PID[:FD]|=NAME|@LISTFILE"),
N_("watch file FD opened by process PID"),
{ 0, 0, 0, 0} },
#ifdef PV_REMOTE_CONTROL
+5
View File
@@ -448,7 +448,12 @@ int main(int argc, char **argv)
* do this before looking at setting the size, as the size
* calculation looks at the output file if the input size can't be
* calculated (issue #91).
*
* We have to set the sparse output flag before doing this, so that
* in sparse mode the lseek() on O_APPEND can be done (issue #45);
* see the comments in pv_state_output_set() in src/pv/state.c.
*/
pv_state_sparse_output_set(state, opts->sparse_output);
retcode = pv__set_output(state, opts, opts->output);
if (0 != retcode) {
pv_state_free(state);
+7 -1
View File
@@ -612,6 +612,8 @@ opts_t opts_parse(unsigned int argc, char **argv)
{ "stop-at-size", 0, NULL, (int) 'S' },
{ "sync", 0, NULL, (int) 'Y' },
{ "direct-io", 0, NULL, (int) 'K' },
{ "sparse", 0, NULL, (int) 'O' },
{ "sparse-output", 0, NULL, (int) 'O' },
{ "discard", 0, NULL, (int) 'X' },
{ "store-and-forward", 1, NULL, (int) 'U' },
{ "remote", 1, NULL, (int) 'R' },
@@ -627,7 +629,7 @@ opts_t opts_parse(unsigned int argc, char **argv)
/*@+nullassign@ */
int option_index = 0;
#endif /* HAVE_GETOPT_LONG */
char *short_options = "hVpteIrab8kTA:fvnqcWD:s:gl0i:w:H:N:u:F:x:L:B:CEZ:SYKXU:R:P:d:m:o:"
char *short_options = "hVpteIrab8kTA:fvnqcWD:s:gl0i:w:H:N:u:F:x:L:B:CEZ:SYKOXU:R:P:d:m:o:"
#ifdef ENABLE_DEBUGGING
"!:"
#endif
@@ -972,6 +974,10 @@ opts_t opts_parse(unsigned int argc, char **argv)
case 'K':
opts->direct_io = true;
break;
case 'O':
opts->sparse_output = true;
opts->no_splice = true;
break;
case 'X':
opts->discard_input = true;
opts->no_splice = true;
+95 -47
View File
@@ -712,7 +712,6 @@ int pv_watchfd_loop(pvstate_t state)
int fd; /* watched fd, or -1 for all */
pvwatchfd_t info_array; /* watch information for each fd */
int array_length; /* length of watch info array */
/* TODO: "finished but not time to stop showing" flag for #81 */
bool finished; /* "PID:FD": fd closed; or PID gone */
} *watching;
unsigned int watch_idx;
@@ -720,6 +719,14 @@ int pv_watchfd_loop(pvstate_t state)
struct timespec next_update, next_remotecheck, cur_time;
int prev_displayed_lines, blank_lines;
/*
* In each watching[].info_array[] fd info item, once its "watch_fd"
* is closed, its "closed" flag is set to true and its "end_time" to
* now. It isn't marked "unused" until its "end_time" is long
* enough ago, so the information is held on-screen for a short
* while after the fd closes or the PID exits (#81).
*/
/* If there's nothing to watch, do nothing at all. */
if (state->watchfd.count < 1)
return 0;
@@ -933,10 +940,9 @@ int pv_watchfd_loop(pvstate_t state)
if (rc != 0) {
/*
* PID now inaccessible - mark it as
* finished and skip over it.
* finished.
*/
watching[watch_idx].finished = true;
continue;
}
} else {
/*
@@ -959,7 +965,6 @@ int pv_watchfd_loop(pvstate_t state)
NULL != watching[watch_idx].info_array && info_idx < watching[watch_idx].array_length;
info_idx++) {
off_t position_now;
struct timespec init_time, transfer_elapsed;
pvwatchfd_t info_item = &(watching[watch_idx].info_array[info_idx]);
/* Skip unused array entries. */
@@ -976,7 +981,8 @@ int pv_watchfd_loop(pvstate_t state)
* changed.
*/
if (pv_watchfd_changed(info_item)) {
debug("%s %d: %s", "fd", info_item->watch_fd, "removing");
debug("%s %d: %s", "fd", info_item->watch_fd,
"non-displayable, and has changed - removing");
info_item->unused = true;
info_item->displayable = false;
pv_freecontents_watchfd(info_item);
@@ -994,34 +1000,85 @@ int pv_watchfd_loop(pvstate_t state)
* changed.
*/
position_now = pv_watchfd_position(info_item);
position_now = -1;
if (position_now < 0) {
debug("%s %d: %s", "fd", info_item->watch_fd, "removing");
info_item->unused = true;
info_item->displayable = false;
pv_freecontents_watchfd(info_item);
continue;
if (info_item->closed) {
/*
* Closed fd - check how long since
* it was closed.
*/
struct timespec time_since_closed;
long double seconds_since_closed;
memset(&time_since_closed, 0, sizeof(time_since_closed));
pv_elapsedtime_subtract(&time_since_closed, &cur_time, &(info_item->end_time));
seconds_since_closed = pv_elapsedtime_seconds(&time_since_closed);
/* Closed for long enough - remove. */
if (seconds_since_closed > state->control.interval) {
debug("%s %d: %s (%Lf s)", "fd", info_item->watch_fd,
"closed for long enough - removing", seconds_since_closed);
info_item->unused = true;
info_item->displayable = false;
pv_freecontents_watchfd(info_item);
continue;
}
} else {
/*
* Open fd - get its current
* position.
*/
position_now = pv_watchfd_position(info_item);
if (position_now < 0) {
/*
* The fd was closed - mark
* as closed.
*/
debug("%s %d: %s", "fd", info_item->watch_fd, "marking as closed");
pv_elapsedtime_copy(&(info_item->end_time), &cur_time);
info_item->closed = true;
}
}
info_item->position = position_now;
if (position_now >= 0) {
/*
* If the fd is still open and we
* got its current position, update
* its position and timers.
*/
struct timespec init_time, transfer_elapsed;
memset(&init_time, 0, sizeof(init_time));
memset(&transfer_elapsed, 0, sizeof(transfer_elapsed));
info_item->position = position_now;
memset(&init_time, 0, sizeof(init_time));
memset(&transfer_elapsed, 0, sizeof(transfer_elapsed));
/*
* Calculate the effective start
* time: the time we actually
* started, plus the total time we
* spent stopped.
*/
pv_elapsedtime_add(&init_time, &(info_item->start_time),
&(state->signal.toffset));
/*
* Now get the effective elapsed
* transfer time - current time
* minus effective start time.
*/
pv_elapsedtime_subtract(&transfer_elapsed, &cur_time, &init_time);
info_item->transfer.elapsed_seconds = pv_elapsedtime_seconds(&transfer_elapsed);
}
/*
* Calculate the effective start time: the time we actually
* started, plus the total time we spent stopped.
* Now display the information about the fd.
*/
pv_elapsedtime_add(&init_time, &(info_item->start_time), &(state->signal.toffset));
/*
* Now get the effective elapsed transfer time - current
* time minus effective start time.
*/
pv_elapsedtime_subtract(&transfer_elapsed, &cur_time, &init_time);
info_item->transfer.elapsed_seconds = pv_elapsedtime_seconds(&transfer_elapsed);
if (displayed_lines > 0) {
debug("%s", "adding newline");
@@ -1030,15 +1087,15 @@ int pv_watchfd_loop(pvstate_t state)
debug("%s %d, %s %d [%d/%d]: %Lf / %Ld", "pid", (int) (info_item->watch_pid), "fd",
info_item->watch_fd, watch_idx, info_idx, info_item->transfer.elapsed_seconds,
position_now);
info_item->position);
if (terminal_resized) {
pv_watchpid_setname(state, info_item);
info_item->flags.reparse_display = 1;
}
info_item->transfer.transferred = position_now;
info_item->transfer.total_written = position_now;
info_item->transfer.transferred = info_item->position;
info_item->transfer.total_written = info_item->position;
state->control.name = info_item->display_name;
state->control.size = info_item->size;
@@ -1099,25 +1156,16 @@ int pv_watchfd_loop(pvstate_t state)
}
}
if (!state->control.numeric)
pv_tty_write(&(state->flags), "\n", 1);
/*
* Clean up our displayed lines after the display loop.
*/
blank_lines = prev_displayed_lines;
while (blank_lines > 0) {
pvdisplay_width_t blank_count;
for (blank_count = 0; blank_count < state->control.width; blank_count++)
pv_tty_write(&(state->flags), " ", 1);
pv_tty_write(&(state->flags), "\r", 1);
blank_lines--;
if (blank_lines > 0)
if (!state->control.numeric) {
/*
* Move the cursor past the displayed lines, so the last
* output stays on the screen and isn't overwritten by the
* command prompt (#81).
*/
while (prev_displayed_lines > 0) {
pv_tty_write(&(state->flags), "\n", 1);
}
while (prev_displayed_lines > 1) {
pv_tty_write(&(state->flags), "\033[A", 3);
prev_displayed_lines--;
prev_displayed_lines--;
}
}
/*
+56
View File
@@ -131,6 +131,7 @@ void pv_reset_transfer(pvtransferstate_t transfer)
transfer->line_positions_length = 0;
transfer->line_positions_head = 0;
transfer->last_output_position = 0;
transfer->output_not_seekable = false;
}
@@ -256,6 +257,38 @@ void pv_freecontents_calc(pvtransfercalc_t calc)
}
/*
* Truncate the output file descriptor to its current position, if it's a
* valid fd, we're in sparse output mode, and no lseek() failed.
*/
static void pv_truncate_output(pvstate_t state)
{
off_t current_offset;
if (!state->control.sparse_output)
return;
if (state->transfer.output_not_seekable)
return;
if (state->control.output_fd < 0)
return;
current_offset = (off_t) lseek(state->control.output_fd, (off_t) 0, SEEK_CUR);
if (current_offset == (off_t) - 1)
return;
debug("%s: %ld", "truncating to current offset", (long) current_offset);
/*@+longintegral@ */
/*
* splint has trouble with off_t / __off_t.
*/
if (0 != ftruncate(state->control.output_fd, current_offset)) {
debug("%s: %s", "output ftruncate() failed", strerror(errno));
}
/*@-longintegral@ */
}
/*
* Free a state structure, after which it can no longer be used.
*/
@@ -269,6 +302,7 @@ void pv_state_free(pvstate_t state)
* still know the program name and output filename.
*/
if (state->control.output_fd >= 0) {
pv_truncate_output(state);
if (STDOUT_FILENO != state->control.output_fd) {
if (close(state->control.output_fd) < 0) {
pv_error("%s: %s",
@@ -494,6 +528,11 @@ void pv_state_direct_io_set(pvstate_t state, bool val)
state->control.direct_io_changed = true;
}
void pv_state_sparse_output_set(pvstate_t state, bool val)
{
state->control.sparse_output = val;
}
void pv_state_discard_input_set(pvstate_t state, bool val)
{
state->control.discard_input = val;
@@ -625,6 +664,7 @@ void pv_state_output_set(pvstate_t state, int fd, const char *name)
* Close any previous output file first, so we can report any errors
* before we store the new output filename.
*/
pv_truncate_output(state);
if (state->control.output_fd >= 0 && state->control.output_fd != STDOUT_FILENO) {
if (close(state->control.output_fd) < 0) {
pv_error("%s: %s",
@@ -645,6 +685,22 @@ void pv_state_output_set(pvstate_t state, int fd, const char *name)
*/
fcntl(state->control.output_fd, F_SETFL, O_NONBLOCK | fcntl(state->control.output_fd, F_GETFL));
#endif /* MAKE_OUTPUT_NONBLOCKING */
/*
* In sparse output mode, if the output is in append mode (>>),
* explicitly lseek() to the end of the file. Otherwise, the file
* offset is not set until the first write(), which means that if
* the input starts with null bytes, when we lseek() past them
* relative to the current position, the "current position" is 0
* rather than the end of the file, and the file gets truncated on
* exit to the wrong size.
*/
if (state->control.sparse_output && 0 != (fcntl(fd, F_GETFL) & O_APPEND)) {
debug("%s", "sparse output mode, and appending - seeking output to the end");
if ((off_t) lseek(fd, 0, SEEK_END) == (off_t) - 1) {
debug("%s: %s", "lseek failed", strerror(errno));
}
}
}
void pv_state_average_rate_window_set(pvstate_t state, unsigned int val)
+52
View File
@@ -655,6 +655,9 @@ static int pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, long
{
ssize_t nwritten;
int write_errno;
bool all_nulls;
off_t output_offset;
size_t write_check_position, write_end_position;
if (NULL == state->transfer.transfer_buffer) {
pv_error("%s", _("no transfer buffer allocated"));
@@ -671,6 +674,52 @@ static int pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, long
nwritten = state->transfer.to_write;
} else if (state->transfer.to_write > 0) {
/*
* In sparse output mode, check whether all of the bytes to
* be written are null, and if so, try to seek the output
* instead of writing the null bytes.
*/
if (state->control.sparse_output && !state->transfer.output_not_seekable) {
write_check_position = state->transfer.write_position;
write_end_position = write_check_position + (size_t) (state->transfer.to_write);
all_nulls = true;
while (all_nulls && write_check_position < write_end_position) {
if ('\0' == state->transfer.transfer_buffer[write_check_position]) {
write_check_position++;
} else {
all_nulls = false;
}
}
if (all_nulls) {
/*
* Use lseek() to move forward in the file,
* and then ftruncate() it to its new size.
*
* If any step fails, mark the output not
* seekable so we stop trying.
*/
/*@+longintegral@ */
/*
* splint has trouble with off_t / __off_t, in the lseek() call.
*/
output_offset =
lseek(state->control.output_fd, (off_t) (state->transfer.to_write), SEEK_CUR);
if (output_offset == (off_t) - 1) {
debug("%s: %s", "output lseek() failed", strerror(errno));
state->transfer.output_not_seekable = true;
} else {
/* Seek successful - skip write. */
debug("%s (%ld) -> %s: %ld", "skipped null writes",
(long) (state->transfer.to_write), "new position", (long) output_offset);
nwritten = state->transfer.to_write;
goto pv__transfer_write_completed;
}
/*@-longintegral@ */
}
}
/*
* Set an interval timer or an alarm to interrupt the write
* with a signal if the write takes too long, so we can
@@ -735,6 +784,9 @@ static int pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, long
#endif /* HAVE_SETITIMER */
}
pv__transfer_write_completed:
/* If lseek() worked for sparse output, it jumps down here. */
if (nwritten > 0) {
bool tracking_lines = false;
+12 -1
View File
@@ -418,7 +418,7 @@ static int pv_compare_watchfd(const void *a, const void *b)
/*
* Scan the given process and update the arrays with any new file
* descriptors. If "watch_fd" is not -1, then all other file descriptors
* descriptors. If "watch_fd" is not -1, then all other file descriptor
* numbers will be ignored,
*
* Returns 0 on success, 1 if the process no longer exists or could not be
@@ -494,6 +494,16 @@ int pv_watchpid_scanfds(pvstate_t state, pid_t watch_pid, int watch_fd, int *arr
continue;
if (info_array[check_idx].watch_fd != fd)
continue;
if (info_array[check_idx].closed) {
/*
* If the fd is known but closed,
* immediately free it for re-use.
*/
info_array[check_idx].unused = true;
info_array[check_idx].displayable = false;
pv_freecontents_watchfd(&(info_array[check_idx]));
continue;
}
found_idx = check_idx;
break;
}
@@ -534,6 +544,7 @@ int pv_watchpid_scanfds(pvstate_t state, pid_t watch_pid, int watch_fd, int *arr
pv_reset_watchfd(&(info_array[use_idx]));
info_array[use_idx].watch_pid = watch_pid;
info_array[use_idx].watch_fd = fd;
info_array[use_idx].closed = false;
info_array[use_idx].unused = false;
info_array[use_idx].displayable = true;
+89
View File
@@ -0,0 +1,89 @@
#!/bin/sh
#
# Transfer a large chunk of data through pv using pipes, sending it in a
# bursty fashion, and make sure some of it consists of blocks of null bytes.
# Check data correctness afterwards, and if dd can produce a sparse file,
# check that pv's output is also sparse.
# Allow all tests to be skipped, e.g. during a release build
test "${SKIP_ALL_TESTS}" = "1" && exit 77
true "${testSubject:?not set - call this from 'make check'}"
true "${workFile1:?not set - call this from 'make check'}"
true "${workFile2:?not set - call this from 'make check'}"
true "${workFile3:?not set - call this from 'make check'}"
# generate some data, with a hole in the middle.
dd if=/dev/urandom of="${workFile1}" bs=4096 count=640 2>/dev/null
dd if=/dev/null of="${workFile1}" bs=4096 count=0 seek=1280 2>/dev/null
dd if=/dev/urandom of="${workFile1}" bs=4096 count=1280 seek=1280 2>/dev/null
# check that sparse files are supported.
cat < "${workFile1}" > "${workFile3}"
inputBlocks="$(ls -1s "${workFile1}" | awk '{print $1}')"
nonSparseBlocks="$(ls -1s "${workFile3}" | awk '{print $1}')"
if test "${inputBlocks}" -eq "${nonSparseBlocks}"; then
echo 'sparse files not supported'
exit 77
fi
inputChecksum=$(cksum "${workFile1}" | awk '{print $1}')
# read through pv and test afterwards
(
dd if="${workFile1}" bs=1 count=9000
sleep 1
dd if="${workFile1}" bs=1 skip=9000 count=1240
sleep 1
dd if="${workFile1}" bs=1024 skip=10 count=1014
sleep 1
dd if="${workFile1}" bs=1024 skip=1024 count=1024
sleep 1
dd if="${workFile1}" bs=1024 skip=2048
) 2>/dev/null | "${testSubject}" -q -O -L 2M | cat > "${workFile2}"
outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
if ! test "${inputChecksum}" = "${outputChecksum}"; then
echo "checksum mismatch with dd | pv | cat"
exit 1
fi
# same again but with one less pipe
(
dd if="${workFile1}" bs=1 count=9000
sleep 1
dd if="${workFile1}" bs=1 skip=9000 count=1240
sleep 1
dd if="${workFile1}" bs=1024 skip=10 count=1014
sleep 1
dd if="${workFile1}" bs=1024 skip=1024 count=1024
sleep 1
dd if="${workFile1}" bs=1024 skip=2048
) 2>/dev/null | "${testSubject}" -q -O -L 2M > "${workFile2}"
outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
if ! test "${inputChecksum}" = "${outputChecksum}"; then
echo "checksum mismatch with dd | pv > file"
exit 1
fi
outputBlocks="$(ls -1s "${workFile2}" | awk '{print $1}')"
# Note that we only check that the output has any holes at all (and that the
# input had holes). We don't compare pv's output with dd's output directly,
# because the exact number of holes might differ intermittently.
if test "${nonSparseBlocks}" -gt "${inputBlocks}" && ! test "${outputBlocks}" -lt "${nonSparseBlocks}"; then
echo "output is not sparse"
echo "input file:"
ls -ls "${workFile1}"
echo "output file:"
ls -ls "${workFile2}"
echo "input file without holes:"
ls -ls "${workFile3}"
exit 1
fi
exit 0