]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
5 months agopo: update ko.po (from translationproject.org)
Seong-ho Cho [Tue, 18 Feb 2025 10:35:29 +0000 (11:35 +0100)] 
po: update ko.po (from translationproject.org)

5 months agopo: update ja.po (from translationproject.org)
Hideki Yoshida [Tue, 18 Feb 2025 10:35:29 +0000 (11:35 +0100)] 
po: update ja.po (from translationproject.org)

5 months agopo: update hr.po (from translationproject.org)
Božidar Putanec [Tue, 18 Feb 2025 10:35:29 +0000 (11:35 +0100)] 
po: update hr.po (from translationproject.org)

5 months agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Tue, 18 Feb 2025 10:35:28 +0000 (11:35 +0100)] 
po: update fr.po (from translationproject.org)

5 months agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Tue, 18 Feb 2025 10:35:28 +0000 (11:35 +0100)] 
po: update es.po (from translationproject.org)

5 months agopo: update de.po (from translationproject.org)
Mario Blättermann [Tue, 18 Feb 2025 10:35:28 +0000 (11:35 +0100)] 
po: update de.po (from translationproject.org)

5 months agopo: update cs.po (from translationproject.org)
Petr Písař [Tue, 18 Feb 2025 10:35:28 +0000 (11:35 +0100)] 
po: update cs.po (from translationproject.org)

5 months agopo-man: update uk.po (from translationproject.org)
Yuri Chornoivan [Tue, 18 Feb 2025 10:35:12 +0000 (11:35 +0100)] 
po-man: update uk.po (from translationproject.org)

5 months agopo-man: update sr.po (from translationproject.org)
Мирослав Николић [Tue, 18 Feb 2025 10:35:12 +0000 (11:35 +0100)] 
po-man: update sr.po (from translationproject.org)

5 months agopo-man: update ro.po (from translationproject.org)
Remus-Gabriel Chelu [Tue, 18 Feb 2025 10:35:12 +0000 (11:35 +0100)] 
po-man: update ro.po (from translationproject.org)

5 months agopo-man: update pt_BR.po (from translationproject.org)
Rafael Fontenelle [Tue, 18 Feb 2025 10:35:12 +0000 (11:35 +0100)] 
po-man: update pt_BR.po (from translationproject.org)

5 months agopo-man: update ko.po (from translationproject.org)
Seong-ho Cho [Tue, 18 Feb 2025 10:35:12 +0000 (11:35 +0100)] 
po-man: update ko.po (from translationproject.org)

5 months agopo-man: update fr.po (from translationproject.org)
Frédéric Marchal [Tue, 18 Feb 2025 10:35:12 +0000 (11:35 +0100)] 
po-man: update fr.po (from translationproject.org)

5 months agopo-man: update de.po (from translationproject.org)
Mario Blättermann [Tue, 18 Feb 2025 10:35:12 +0000 (11:35 +0100)] 
po-man: update de.po (from translationproject.org)

5 months agoMerge branch 'PR/autotools-cleanups' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 18 Feb 2025 10:33:42 +0000 (11:33 +0100)] 
Merge branch 'PR/autotools-cleanups' of https://github.com/karelzak/util-linux-work

* 'PR/autotools-cleanups' of https://github.com/karelzak/util-linux-work:
  tests: (lslogins) use GMT timezone
  autotools: fix po-man discheck
  tests: (lslogins) write to TS_OUTDIR only, check for sqlite3
  tests: (lslogins) use fixed time format
  autotools: update po-man files on make dist
  autotools: add missing HAVE_LIBLASTLOG2
  remove duplicate includes

5 months agounshare: in usage text, reshuffle options into somewhat related groups
Benno Schulenberg [Sat, 15 Feb 2025 16:18:43 +0000 (17:18 +0100)] 
unshare: in usage text, reshuffle options into somewhat related groups

First the mount-related options (because --mount was the first
namespace option earlier) plus two other options about folders;
then the options about UIDS and GIDS; then two options about
forking; then two miscellaneous options; and lastly the two
options about time, as --time was the last namespace option.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoprlimit: in man page, mark --resource as placeholder, not literal option
Benno Schulenberg [Sat, 15 Feb 2025 16:18:42 +0000 (17:18 +0100)] 
prlimit: in man page, mark --resource as placeholder, not literal option

Also, show that --pid takes an argument, and improve its description.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agomkfs.cramfs: in usage text, separate two direct arguments from options
Benno Schulenberg [Sat, 15 Feb 2025 16:18:41 +0000 (17:18 +0100)] 
mkfs.cramfs: in usage text, separate two direct arguments from options

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agorev: standardize the usage header, making the synopsis equal to another
Benno Schulenberg [Sat, 15 Feb 2025 16:18:40 +0000 (17:18 +0100)] 
rev: standardize the usage header, making the synopsis equal to another

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agotextual: make two incorrect synopses identical to a better one
Benno Schulenberg [Sat, 15 Feb 2025 16:18:39 +0000 (17:18 +0100)] 
textual: make two incorrect synopses identical to a better one

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoscript: mention in usage that value for <size> may have a suffix
Benno Schulenberg [Sat, 15 Feb 2025 16:18:38 +0000 (17:18 +0100)] 
script: mention in usage that value for <size> may have a suffix

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agotextual: fix three misspellings of "unsupported"
Benno Schulenberg [Sat, 15 Feb 2025 16:18:37 +0000 (17:18 +0100)] 
textual: fix three misspellings of "unsupported"

One misspelling was fixed five years ago (in commit 760ecc3613),
but the others remained.

Fix another spello too, found with `codespell`.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agosetterm: mark literal values in the man page in bold
Benno Schulenberg [Sat, 15 Feb 2025 16:18:36 +0000 (17:18 +0100)] 
setterm: mark literal values in the man page in bold

Also, add a few commas for readability, tweak some wordings,
and add a "T" that was lost six years ago in commit bc6439ba32.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agosetterm: put an option and its description in a single message
Benno Schulenberg [Sat, 15 Feb 2025 16:18:35 +0000 (17:18 +0100)] 
setterm: put an option and its description in a single message

And improve a bit of markup and a wording in the man page.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agocolrm: make the wording of the doc string analogous to that of `col`
Benno Schulenberg [Sat, 15 Feb 2025 16:18:34 +0000 (17:18 +0100)] 
colrm: make the wording of the doc string analogous to that of `col`

Which allows removing an awkwardly placed and rather redundant sentence.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agopg: make sure cmdline[] not overflow [coverity scan]
Karel Zak [Tue, 18 Feb 2025 09:58:00 +0000 (10:58 +0100)] 
pg: make sure cmdline[] not overflow [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agosfdisk: make sure partition number > 0 [coverity scan]
Karel Zak [Tue, 18 Feb 2025 09:50:45 +0000 (10:50 +0100)] 
sfdisk: make sure partition number > 0 [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agolibmount: fix use-after free, etc. [coverity scan]
Karel Zak [Tue, 18 Feb 2025 09:39:05 +0000 (10:39 +0100)] 
libmount: fix use-after free, etc. [coverity scan]

* remove dead code in mnt_fs_fetch_statmount()
* fix use-after-free in table_init_listmount()
* return from lsmnt_to_table() if list not defined

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agofindmnt: fix resource leaks [coverity scan]
Karel Zak [Tue, 18 Feb 2025 09:37:28 +0000 (10:37 +0100)] 
findmnt: fix resource leaks [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotests: (lslogins) use GMT timezone
Karel Zak [Tue, 18 Feb 2025 08:22:56 +0000 (09:22 +0100)] 
tests: (lslogins) use GMT timezone

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoautotools: fix po-man discheck
Karel Zak [Mon, 17 Feb 2025 19:40:43 +0000 (20:40 +0100)] 
autotools: fix po-man discheck

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotests: (lslogins) write to TS_OUTDIR only, check for sqlite3
Karel Zak [Mon, 17 Feb 2025 18:59:22 +0000 (19:59 +0100)] 
tests: (lslogins) write to TS_OUTDIR only, check for sqlite3

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotests: (lslogins) use fixed time format
Karel Zak [Mon, 17 Feb 2025 18:42:29 +0000 (19:42 +0100)] 
tests: (lslogins) use fixed time format

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoautotools: update po-man files on make dist
Karel Zak [Mon, 17 Feb 2025 17:38:11 +0000 (18:38 +0100)] 
autotools: update po-man files on make dist

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoautotools: add missing HAVE_LIBLASTLOG2
Karel Zak [Mon, 17 Feb 2025 14:25:25 +0000 (15:25 +0100)] 
autotools: add missing HAVE_LIBLASTLOG2

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoremove duplicate includes
Karel Zak [Mon, 17 Feb 2025 14:22:06 +0000 (15:22 +0100)] 
remove duplicate includes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agochrt: (tests) Add new cases for custom slice on SCHED_{OTHER,BATCH}
Petre Tudor [Wed, 29 Jan 2025 17:05:18 +0000 (17:05 +0000)] 
chrt: (tests) Add new cases for custom slice on SCHED_{OTHER,BATCH}

Adds two new test cases setting --sched-runtime for SCHED_{OTHER,BATCH}.

The new custom slice tests are skipped for kernel versions < 6.12,
which do not have the feature. The existing chrt tests for
SCHED_{OTHER,BATCH} are skipped for kernel versions >= 6.12.

This is for two reasons:
 - the default sched_runtime value depends on target platform
 - without custom slice support, the value of sched_runtime is
   always zero for SCHED_{OTHER,BATCH}

Expected output with kernel version < 6.12:
   schedutils: chrt                           ...
                : batch                       ... OK
                : batch-custom-slice          ... SKIPPED
                : other                       ... OK
                : other-custom-slice          ... SKIPPED
: deadline                    ... OK

Expected output with kernel version >= 6.12:
   schedutils: chrt                           ...
                : batch                       ... SKIPPED
                : batch-custom-slice          ... OK
                : other                       ... SKIPPED
                : other-custom-slice          ... OK
: deadline                    ... OK

Signed-off-by: Petre Tudor <petre-ionut.tudor@arm.com>
5 months agochrt: (man) Add note for custom slice length on SCHED_{OTHER,BATCH}
Petre Tudor [Thu, 30 Jan 2025 12:05:51 +0000 (12:05 +0000)] 
chrt: (man) Add note for custom slice length on SCHED_{OTHER,BATCH}

Adds note to the chrt man page, explaining how the --sched-runtime
parameter can be used to request a custom slice length for tasks using
SCHED_{OTHER,BATCH}.

Signed-off-by: Petre Tudor <petre-ionut.tudor@arm.com>
5 months agochrt: Add --sched_runtime support for SCHED_{OTHER,BATCH} policies
Petre Tudor [Thu, 16 Jan 2025 15:13:22 +0000 (15:13 +0000)] 
chrt: Add --sched_runtime support for SCHED_{OTHER,BATCH} policies

Apply --sched_runtime to SCHED_{OTHER,BATCH} in addition to
SCHED_DEADLINE, supporting Linux kernel patch:

commit 857b158dc5e8 ("sched/eevdf: Use sched_attr::sched_runtime to set request/slice suggestion")
(2024-08-17 Peter Zijlstra)

This patch is present in kernel versions starting with 6.12 and allows
setting custom slice length on fair tasks via the sched_runtime parameter.

Using this new feature:

/* change policy to SCHED_BATCH and set custom slice to 0.1ms */
chrt -v -b -T 100000 -p 0 $PID

pid $PID's current scheduling policy: SCHED_OTHER
pid $PID's current scheduling priority: 0
pid $PID's current runtime parameter: 2250000
pid $PID's new scheduling policy: SCHED_BATCH
pid $PID's new scheduling priority: 0
pid $PID's new runtime parameter: 100000

Signed-off-by: Petre Tudor <petre-ionut.tudor@arm.com>
5 months agoMerge branch 'PR/build-sys-poman-rewrite' of https://github.com/karelzak/util-linux...
Karel Zak [Wed, 12 Feb 2025 13:26:55 +0000 (14:26 +0100)] 
Merge branch 'PR/build-sys-poman-rewrite' of https://github.com/karelzak/util-linux-work

* 'PR/build-sys-poman-rewrite' of https://github.com/karelzak/util-linux-work:
  po-man: add missing pages, improve output
  po-man: add asciidoctor --trace
  po-man: add missing asciidoctor-unicodeconverter
  po-man: fix uninstall
  po-man: fix 'make dist'
  po-man: cleanup install
  po-man: move scripts tools/
  po-man: rewrite autotools code
  po-man: improve translation and install scripts
  meson: generate man page translations
  meson: use files() for man page source files

5 months agoblkzone: improve the wording of an error message
Benno Schulenberg [Mon, 10 Feb 2025 12:35:29 +0000 (13:35 +0100)] 
blkzone: improve the wording of an error message

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agopo-man: add missing pages, improve output
Karel Zak [Thu, 6 Feb 2025 14:34:57 +0000 (15:34 +0100)] 
po-man: add missing pages, improve output

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: add asciidoctor --trace
Karel Zak [Thu, 23 Jan 2025 16:37:11 +0000 (17:37 +0100)] 
po-man: add asciidoctor --trace

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: add missing asciidoctor-unicodeconverter
Karel Zak [Thu, 23 Jan 2025 09:44:31 +0000 (10:44 +0100)] 
po-man: add missing asciidoctor-unicodeconverter

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: fix uninstall
Karel Zak [Wed, 22 Jan 2025 19:36:04 +0000 (20:36 +0100)] 
po-man: fix uninstall

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: fix 'make dist'
Karel Zak [Wed, 22 Jan 2025 19:25:20 +0000 (20:25 +0100)] 
po-man: fix 'make dist'

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: cleanup install
Karel Zak [Wed, 22 Jan 2025 17:27:44 +0000 (18:27 +0100)] 
po-man: cleanup install

* Use autotools $(abs_ ) paths.
* Remove hidden path prefixes from poman-install.sh. Use $DESTDIR and
  $MESON_INSTALL_PREFIX on the poman-install.sh command line(--mandir).
* Use autotools compatible "install" calls (without -D).
* Add timestamp to autotools to avoid repeating "gen-poman" calls.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: move scripts tools/
Karel Zak [Wed, 22 Jan 2025 15:31:36 +0000 (16:31 +0100)] 
po-man: move scripts tools/

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: rewrite autotools code
Karel Zak [Wed, 22 Jan 2025 15:08:39 +0000 (16:08 +0100)] 
po-man: rewrite autotools code

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: improve translation and install scripts
Karel Zak [Wed, 22 Jan 2025 15:03:50 +0000 (16:03 +0100)] 
po-man: improve translation and install scripts

install-translations.sh:
 * add uninstall mode
 * add --install and --uninstall options
 * remove $DESTDIR, it has to be used in --mandir argument

translate.sh:
 * add --progress to print info
 * print info about missing man pages translation settings

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agomeson: generate man page translations
Jordan Williams [Tue, 26 Nov 2024 15:58:06 +0000 (09:58 -0600)] 
meson: generate man page translations

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
5 months agomeson: use files() for man page source files
Jordan Williams [Tue, 26 Nov 2024 15:07:15 +0000 (09:07 -0600)] 
meson: use files() for man page source files

The files() command in Meson allows tracking files across directories.
It requires the command to be used in the directory containing the
files.
This commit uses the files() command for all of the man page sources.
This is a preparatory commit for translating the man pages.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
5 months agoMerge branch 'master' of https://github.com/aerusso/util-linux
Karel Zak [Wed, 12 Feb 2025 09:51:46 +0000 (10:51 +0100)] 
Merge branch 'master' of https://github.com/aerusso/util-linux

* 'master' of https://github.com/aerusso/util-linux:
  fallocate: keep-size and zero-range are compatible

5 months agoMerge branch 'PR/scriptreplay-binding-help' of https://github.com/karelzak/util-linux...
Karel Zak [Wed, 12 Feb 2025 09:50:34 +0000 (10:50 +0100)] 
Merge branch 'PR/scriptreplay-binding-help' of https://github.com/karelzak/util-linux-work

* 'PR/scriptreplay-binding-help' of https://github.com/karelzak/util-linux-work:
  scriptreplay: add key bindings info to --help

5 months agoMerge branch 'PR/Benno-text-fixes-w7' of https://github.com/karelzak/util-linux-work
Karel Zak [Wed, 12 Feb 2025 09:50:05 +0000 (10:50 +0100)] 
Merge branch 'PR/Benno-text-fixes-w7' of https://github.com/karelzak/util-linux-work

* 'PR/Benno-text-fixes-w7' of https://github.com/karelzak/util-linux-work:
  zramctl: improve grammar in usage and don't gettextize list of algorithms
  usage: mention also the missing KiB and MiB as permissible suffixes
  man pages: use the same verb for --version as for --help, like in usages
  renice: put text that belongs together into a single translatable message
  blkzone: correct the wording of an error message, from ioctl to function
  blkpr: grammarize the description of the tool and its options
  textual: give seven error messages the same form as two others
  unshare: don't mark "|" and ":" as part of the placeholders
  mount: properly mark the arguments of the 'ro' and 'rw' extended options
  textual: consistently mark "=" as literal before an optional argument
  textual: remove other inconsistent uses of "=" before option argument
  unshare: use single asterisks around long options, double around values
  unshare: don't use "=" before a required option argument
  setpriv: make message for failing PR_GET_PDEATHSIG the same as the other

5 months agolsipc: (man) add note about default outputs
Karel Zak [Wed, 12 Feb 2025 09:40:31 +0000 (10:40 +0100)] 
lsipc: (man) add note about default outputs

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoipc: coding style cosmetic changes
Karel Zak [Wed, 12 Feb 2025 09:33:58 +0000 (10:33 +0100)] 
ipc: coding style cosmetic changes

* Removed trailing white space
* Added comments to long #endif statements
* Improved indentation in some places
* Reduced size of lsipc --help lines

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoMerge branch 'ipc' of https://github.com/PrasannaPaithankar/util-linux
Karel Zak [Wed, 12 Feb 2025 09:13:10 +0000 (10:13 +0100)] 
Merge branch 'ipc' of https://github.com/PrasannaPaithankar/util-linux

* 'ipc' of https://github.com/PrasannaPaithankar/util-linux:
  Defined macros for POSIX IPC compilation and removed path buffer.
  Fix CodeQL warning
  sys-utils: warns if mqueue fs is not mounted
  bash completions for IPC tools
  sys-utils: fixed build system for POSIX IPC tools
  rectified long formatting error
  configured for meson build system
  added POSIX IPC paathnames; modified sys-utils/Makemodule.am
  added POSIX IPC support to lsipc, ipcrm, ipcmk

5 months agofallocate: keep-size and zero-range are compatible
Antonio Russo [Tue, 11 Feb 2025 12:32:58 +0000 (05:32 -0700)] 
fallocate: keep-size and zero-range are compatible

Do not prevent --keep-size and --zero-range from being specified at the
same time, bringing this check into alignment with the documentation,
and completes b85feb999c505222d4815638344c8883d5e4ab58.

Signed-off-by: Antonio Enrico Russo <aerusso@aerusso.net>
5 months agoDefined macros for POSIX IPC compilation and removed path buffer.
Prasanna Paithankar [Mon, 10 Feb 2025 19:37:55 +0000 (01:07 +0530)] 
Defined macros for POSIX IPC compilation and removed path buffer.

Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
5 months agoscriptreplay: add key bindings info to --help
Karel Zak [Mon, 10 Feb 2025 11:51:28 +0000 (12:51 +0100)] 
scriptreplay: add key bindings info to --help

Addresses: https://github.com/util-linux/util-linux/discussions/3404
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agozramctl: improve grammar in usage and don't gettextize list of algorithms
Benno Schulenberg [Sun, 9 Feb 2025 08:23:30 +0000 (09:23 +0100)] 
zramctl: improve grammar in usage and don't gettextize list of algorithms

There is no need to translate this list as they are all literal values
-- the word "and" is not needed: a comma will do.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agousage: mention also the missing KiB and MiB as permissible suffixes
Benno Schulenberg [Sun, 9 Feb 2025 08:23:29 +0000 (09:23 +0100)] 
usage: mention also the missing KiB and MiB as permissible suffixes

Also, slightly reword the phrase to be more grammatical,
and make it into a full sentence that ends in a period.

(By the way, commit f1970cc557 is somewhat problematic: it requires
that the relevant occurrences of "<num>" and "<size>" in the option
descriptions are now always translated in the same manner, but the
translator may be unaware of this.  For Dutch, the latter was the
case for `ipcmk` and `zramctl`. :/ )

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoman pages: use the same verb for --version as for --help, like in usages
Benno Schulenberg [Sun, 9 Feb 2025 08:23:28 +0000 (09:23 +0100)] 
man pages: use the same verb for --version as for --help, like in usages

Also, avoid duplication of --help/--version in the man page for `chfn`.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agorenice: put text that belongs together into a single translatable message
Benno Schulenberg [Sun, 9 Feb 2025 08:23:27 +0000 (09:23 +0100)] 
renice: put text that belongs together into a single translatable message

Also, use semicolons and no periods in an option description.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoblkzone: correct the wording of an error message, from ioctl to function
Benno Schulenberg [Sun, 9 Feb 2025 08:23:26 +0000 (09:23 +0100)] 
blkzone: correct the wording of an error message, from ioctl to function

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoblkpr: grammarize the description of the tool and its options
Benno Schulenberg [Sun, 9 Feb 2025 08:23:25 +0000 (09:23 +0100)] 
blkpr: grammarize the description of the tool and its options

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agotextual: give seven error messages the same form as two others
Benno Schulenberg [Sun, 9 Feb 2025 08:23:24 +0000 (09:23 +0100)] 
textual: give seven error messages the same form as two others

The form with the parentheses is easier for translators: it indicates
that the preceding text is not a translatable word.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agounshare: don't mark "|" and ":" as part of the placeholders
Benno Schulenberg [Sun, 9 Feb 2025 08:23:23 +0000 (09:23 +0100)] 
unshare: don't mark "|" and ":" as part of the placeholders

The "|" is a meta-character, and should thus be left unmarked, while
the ":" (in the argument of --map-users/--map-groups) is a literal,
and should therefore be marked in bold.

Also, add the new 'subids' literal value for the above two options.

And in the bargain tweak a comment.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agomount: properly mark the arguments of the 'ro' and 'rw' extended options
Benno Schulenberg [Sun, 9 Feb 2025 08:23:22 +0000 (09:23 +0100)] 
mount: properly mark the arguments of the 'ro' and 'rw' extended options

The 'fs', 'vfs', and 'recursive' are literal values, not placeholders
for something else.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agotextual: consistently mark "=" as literal before an optional argument
Benno Schulenberg [Sun, 9 Feb 2025 08:23:21 +0000 (09:23 +0100)] 
textual: consistently mark "=" as literal before an optional argument

See, for example, how in `man cfdisk` the "=" after --color and after
--lock were differently marked.

(Basically done with `sed -i 's/\*\[=/\*\[\*\*=\*\*/' *utils/*.adoc`.)

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agotextual: remove other inconsistent uses of "=" before option argument
Benno Schulenberg [Sun, 9 Feb 2025 08:23:20 +0000 (09:23 +0100)] 
textual: remove other inconsistent uses of "=" before option argument

And remove inconsistent uses of double asterisks too.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agounshare: use single asterisks around long options, double around values
Benno Schulenberg [Sun, 9 Feb 2025 08:23:19 +0000 (09:23 +0100)] 
unshare: use single asterisks around long options, double around values

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agounshare: don't use "=" before a required option argument
Benno Schulenberg [Sun, 9 Feb 2025 08:23:18 +0000 (09:23 +0100)] 
unshare: don't use "=" before a required option argument

The "=" is not needed, is inconsistent with the presentation of the
other options that require an argument, and trying to use "=" with
the equivalent short option would lead to failure.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agosetpriv: make message for failing PR_GET_PDEATHSIG the same as the other
Benno Schulenberg [Sun, 9 Feb 2025 08:23:17 +0000 (09:23 +0100)] 
setpriv: make message for failing PR_GET_PDEATHSIG the same as the other

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoMerge branch 'ci-s390x-workaround' of https://github.com/mrc0mmand/util-linux
Karel Zak [Mon, 10 Feb 2025 10:07:50 +0000 (11:07 +0100)] 
Merge branch 'ci-s390x-workaround' of https://github.com/mrc0mmand/util-linux

* 'ci-s390x-workaround' of https://github.com/mrc0mmand/util-linux:
  ci: temporarily switch the alt-arch job worker to Ubuntu 22.04

5 months agoci: temporarily switch the alt-arch job worker to Ubuntu 22.04
Frantisek Sumsal [Fri, 7 Feb 2025 08:47:06 +0000 (09:47 +0100)] 
ci: temporarily switch the alt-arch job worker to Ubuntu 22.04

Using Ubuntu 24.04 on the worker causes random segfaults in s390x
containers using qemu-user-static. Let's switch this, temporarily, to
Ubuntu 22.04 which doesn't seem to have this issue.

Note: the coverage shouldn't change, since the "inner" alt-arch
containers still use "ubuntu-latest" (24.04 ATTOW).

5 months agomeson: define have_linux_blkzoned_h
Frantisek Sumsal [Thu, 6 Feb 2025 18:44:43 +0000 (19:44 +0100)] 
meson: define have_linux_blkzoned_h

Follow-up for 92ea18aaa31120ebedefc389ca6be4eca9a81117.

5 months agoMerge branch 'PR/autotools-man-common' of https://github.com/karelzak/util-linux...
Karel Zak [Thu, 6 Feb 2025 15:34:58 +0000 (16:34 +0100)] 
Merge branch 'PR/autotools-man-common' of https://github.com/karelzak/util-linux-work

* 'PR/autotools-man-common' of https://github.com/karelzak/util-linux-work:
  autotools: always add man-common/ to EXTRA_DIST

5 months agomeson: check for blkzoned.h
Karel Zak [Thu, 6 Feb 2025 15:33:06 +0000 (16:33 +0100)] 
meson: check for blkzoned.h

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoMerge branch 'INVARIANT_RESULT-in-lscpu-virt.c' of https://github.com/AntonMoryakov...
Karel Zak [Thu, 6 Feb 2025 12:08:28 +0000 (13:08 +0100)] 
Merge branch 'INVARIANT_RESULT-in-lscpu-virt.c' of https://github.com/AntonMoryakov/util-linux

* 'INVARIANT_RESULT-in-lscpu-virt.c' of https://github.com/AntonMoryakov/util-linux:
  sys-utils: remove redundant comparison in read_hypervisor_dmi in lscpu-virt.c

5 months agoautotools: always add man-common/ to EXTRA_DIST
Karel Zak [Thu, 6 Feb 2025 12:04:13 +0000 (13:04 +0100)] 
autotools: always add man-common/ to EXTRA_DIST

Addresses: https://github.com/util-linux/util-linux/issues/3401
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agosys-utils: remove redundant comparison in read_hypervisor_dmi in lscpu-virt.c
Anton Moryakov [Wed, 5 Feb 2025 23:42:23 +0000 (02:42 +0300)] 
sys-utils: remove redundant comparison in read_hypervisor_dmi in lscpu-virt.c

6 months agoinclude/debug: Relicense to Public Domain
Karel Zak [Tue, 4 Feb 2025 09:10:57 +0000 (10:10 +0100)] 
include/debug: Relicense to Public Domain

After reaching an agreement with Ondrej Oprala, we have decided to
change the license of debug.h and debugobj.h from LGPL to Public
Domain. This change is more suitable for the files in the include/
directory of util-linux.

CC: Ondrej Oprala <ondrej.oprala@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 months agoMerge branch 'PR/Benno-text-fixes' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 4 Feb 2025 09:06:22 +0000 (10:06 +0100)] 
Merge branch 'PR/Benno-text-fixes' of https://github.com/karelzak/util-linux-work

* 'PR/Benno-text-fixes' of https://github.com/karelzak/util-linux-work:
  setpriv: describe --groups more correctly in the usage text
  setpriv: consistently use "<caps>" to indicate a list of capabilities
  readprofile: put two things that belong together into a single message
  lsmem: make an error message identical to one used in seven other places
  logger: grammarize the description of --socket-errors in the man page

6 months agoMerge branch 'PR/lscpu-min-freq' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 4 Feb 2025 09:05:48 +0000 (10:05 +0100)] 
Merge branch 'PR/lscpu-min-freq' of https://github.com/karelzak/util-linux-work

* 'PR/lscpu-min-freq' of https://github.com/karelzak/util-linux-work:
  lscpu: skip frequencies of 0 MHz when getting minmhz

6 months agolib/colors: fix fallback to system directory
Thomas Weißschuh [Mon, 3 Feb 2025 20:46:13 +0000 (21:46 +0100)] 
lib/colors: fix fallback to system directory

The current check relies on "*sfile" to recognize if a configuration has
been found in the current directory. However this condition is only true
for "type == UL_COLORFILE_SCHEME", breaking the .enable and .disable
configurations.
Instead reorder the logic a bit so that any valid configuration returns
rc == 0.

Reported-by: Axel <axel.scheepers76@gmail.com>
Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1094283
Reported-by: Chris Hofstaedtler <zeha@debian.org>
Link: https://lore.kernel.org/util-linux/Z5a08yD10L1J8AIa@per.namespace.at/
Tested-by: Chris Hofstaedtler <zeha@debian.org>
Fixes: 4bdf22803f9a ("lib/colors: ensure fallback to system directory")
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
6 months agoFix CodeQL warning
Prasanna Paithankar [Mon, 3 Feb 2025 13:20:42 +0000 (18:50 +0530)] 
Fix CodeQL warning

Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
6 months agosys-utils: warns if mqueue fs is not mounted
Prasanna Paithankar [Mon, 3 Feb 2025 13:07:01 +0000 (18:37 +0530)] 
sys-utils: warns if mqueue fs is not mounted

- Add a check to see if mqueue fs is mounted before using it, and warn
  the user if it is not mounted.
- bash completion for ipcrm is fixed to make it independent of awk.

Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
6 months agoMerge branch 'PR/libmount-mesgs-idmapping' of https://github.com/karelzak/util-linux...
Karel Zak [Mon, 3 Feb 2025 12:34:52 +0000 (13:34 +0100)] 
Merge branch 'PR/libmount-mesgs-idmapping' of https://github.com/karelzak/util-linux-work

* 'PR/libmount-mesgs-idmapping' of https://github.com/karelzak/util-linux-work:
  libmount: improve error messages in ID-mapping hook
  libmount: add private mnt_context_read_mesgs()
  libmount: reduce size of syscall-failed message

6 months agolscpu: skip frequencies of 0 MHz when getting minmhz
Ricardo Neri [Fri, 31 Jan 2025 03:25:32 +0000 (19:25 -0800)] 
lscpu: skip frequencies of 0 MHz when getting minmhz

read_mhz() sets cpu->mhz_min_freq from /sys/devices/system/cpu/cpuN/
cpufreq/cpuinfo_min_freq. The file read fails if cpuN is offline and
cpu->mhz_min_freq is left as 0. 0 MHz is treated as invalid frequency.

lsblk_cputype_get_minmhz() iterates through all possible CPUs to find the
minimum frequency. If one or more CPUs are offline, the minimum frequency
will be 0. This is reflected in the output of lscpu:

$ ./lscpu | grep min
CPU min MHz:                        0.0000

Ignore 0-MHz frequencies to find the actual minimum frequency:

$ ./lscpu | grep min
CPU min MHz:                     1200.0000

Reported-by: Thangamani Krishnan <thangamani.krishnan@intel.com>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
6 months agosetpriv: describe --groups more correctly in the usage text
Benno Schulenberg [Sun, 2 Feb 2025 16:38:09 +0000 (17:38 +0100)] 
setpriv: describe --groups more correctly in the usage text

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
6 months agosetpriv: consistently use "<caps>" to indicate a list of capabilities
Benno Schulenberg [Sun, 2 Feb 2025 16:06:23 +0000 (17:06 +0100)] 
setpriv: consistently use "<caps>" to indicate a list of capabilities

The existing "<caps,...>" did not indicate that each capability name
must be preceded by "+" or "-".  Also, to indicate that the list needs
to be separated by commas, one would have to use "<cap>[,...]", not
"<cap,...>".  So... instead of trying to cram all that info in there,
just say "<caps>", like for --bounding-set.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
6 months agoreadprofile: put two things that belong together into a single message
Benno Schulenberg [Thu, 30 Jan 2025 15:50:48 +0000 (16:50 +0100)] 
readprofile: put two things that belong together into a single message

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
6 months agolsmem: make an error message identical to one used in seven other places
Benno Schulenberg [Thu, 30 Jan 2025 14:27:27 +0000 (15:27 +0100)] 
lsmem: make an error message identical to one used in seven other places

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
6 months agologger: grammarize the description of --socket-errors in the man page
Benno Schulenberg [Thu, 30 Jan 2025 14:11:24 +0000 (15:11 +0100)] 
logger: grammarize the description of --socket-errors in the man page

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
6 months agoMerge branch 'PR/mkswap-nocow' of https://github.com/karelzak/util-linux-work
Karel Zak [Mon, 3 Feb 2025 12:21:51 +0000 (13:21 +0100)] 
Merge branch 'PR/mkswap-nocow' of https://github.com/karelzak/util-linux-work

* 'PR/mkswap-nocow' of https://github.com/karelzak/util-linux-work:
  mkswap: remove unused variable for non-nocow systems
  mkswap: add features list to --version output
  mkswap: fix includes
  mkswap: improve --file option for use on btrfs

6 months agolibmount: improve error messages in ID-mapping hook
Karel Zak [Tue, 28 Jan 2025 12:23:15 +0000 (13:23 +0100)] 
libmount: improve error messages in ID-mapping hook

* save failed syscall status
* allow to read messages from kernel
* add proper error messages if kernel is silent

OLD:
  mount: /foo: mount failed: Unknown error 5013.
NEW:
  mount: /foo: mount_setattr() failed: cannot set ID-mapping: Operation not permitted.

Addresses: https://github.com/util-linux/util-linux/issues/3373
Signed-off-by: Karel Zak <kzak@redhat.com>
6 months agolibmount: add private mnt_context_read_mesgs()
Karel Zak [Tue, 28 Jan 2025 12:13:02 +0000 (13:13 +0100)] 
libmount: add private mnt_context_read_mesgs()

Add a more generic function for reading messages from a file
descriptor. The new mount API is already used in multiple files.

Signed-off-by: Karel Zak <kzak@redhat.com>
6 months agolibmount: reduce size of syscall-failed message
Karel Zak [Tue, 28 Jan 2025 12:10:30 +0000 (13:10 +0100)] 
libmount: reduce size of syscall-failed message

The current version is too long.

OLD:
 mount: /mnt/test/fileA: mount_setattr system call failed: cannot set ID-mapping: Operation not permitted.

NEW:
 mount: /mnt/test/fileA: mount_setattr() failed: cannot set ID-mapping: Operation not permitted.

Signed-off-by: Karel Zak <kzak@redhat.com>