]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
4 months agoirqtop: add max iteration support
Joe Jin [Fri, 28 Feb 2025 16:13:32 +0000 (08:13 -0800)] 
irqtop: add max iteration support

Add support for setting the number of iterations. This is useful in
non-interactive mode.

Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Zhenwei Pi <pizhenwei@bytedance.com>
Cc: Sami Kerola <kerolasa@iki.fi>
Cc: Karel Zak <kzak@redhat.com>
4 months agoirqtop: add batch mode support
Joe Jin [Fri, 28 Feb 2025 16:13:31 +0000 (08:13 -0800)] 
irqtop: add batch mode support

Add batch mode support, which could be useful for sending output to
other programs or to a file.

Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Zhenwei Pi <pizhenwei@bytedance.com>
Cc: Sami Kerola <kerolasa@iki.fi>
Cc: Karel Zak <kzak@redhat.com>
4 months agoMerge branch 'libblkid/ddf' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 3 Mar 2025 08:23:24 +0000 (09:23 +0100)] 
Merge branch 'libblkid/ddf' of https://github.com/t-8ch/util-linux

* 'libblkid/ddf' of https://github.com/t-8ch/util-linux:
  libblkid: ddf_read: validate header checksum
  libc/crc32: make fill value of excluded area configurable
  libblkid: ddf_raid: drop little-endian handling
  libblkid: ddf_raid: respect constness of buffer

4 months agoMerge branch 'master' of https://github.com/echoechoin/util-linux
Karel Zak [Mon, 3 Mar 2025 08:23:11 +0000 (09:23 +0100)] 
Merge branch 'master' of https://github.com/echoechoin/util-linux

* 'master' of https://github.com/echoechoin/util-linux:
  misc-utils/lastlog2: Add option -a for listing active users only

5 months agolibblkid: ddf_read: validate header checksum
Thomas Weißschuh [Thu, 27 Feb 2025 17:16:03 +0000 (18:16 +0100)] 
libblkid: ddf_read: validate header checksum

The DDF header contains a checksum.

Validate it.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
5 months agolibc/crc32: make fill value of excluded area configurable
Thomas Weißschuh [Thu, 27 Feb 2025 17:16:01 +0000 (18:16 +0100)] 
libc/crc32: make fill value of excluded area configurable

A new user of crc32_exclude_offset() is going to be added which requires
a different fill value than the currently hardcoded "0".

Add a parameter where each caller can specify their own value.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
5 months agolibblkid: ddf_raid: drop little-endian handling
Thomas Weißschuh [Thu, 27 Feb 2025 17:15:56 +0000 (18:15 +0100)] 
libblkid: ddf_raid: drop little-endian handling

The DDF specification, both 1.2 and 2.0 require big-endian.
This is also what mdadm expects.

5.2 Byte Ordering

Each section of the DDF MUST be stored in big-endian format
(i.e., the more significant bytes of the section are stored in
lower addresses in relation to bytes of lesser significance).

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
5 months agolibblkid: ddf_raid: respect constness of buffer
Thomas Weißschuh [Thu, 27 Feb 2025 17:15:38 +0000 (18:15 +0100)] 
libblkid: ddf_raid: respect constness of buffer

The buffers returned by blkid_probe_get_buffer() are not allowed to be
modified. Respect this restriction when casting the buffer to other
pointer types.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
5 months agomisc-utils/lastlog2: Add option -a for listing active users only
WanBingjiang [Wed, 26 Feb 2025 07:17:19 +0000 (15:17 +0800)] 
misc-utils/lastlog2: Add option -a for listing active users only

5 months agosys-utils/lscpu: Change object type to SCOLS_JSON_STRING if data == "-"
WanBingjiang [Thu, 27 Feb 2025 07:13:37 +0000 (15:13 +0800)] 
sys-utils/lscpu: Change object type to SCOLS_JSON_STRING if data == "-"

5 months agoinclude/mount-api-utils: improve coding style
Karel Zak [Wed, 26 Feb 2025 10:50:47 +0000 (11:50 +0100)] 
include/mount-api-utils: improve coding style

Improve the alignment of comments and other elements.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agomount: (man) add info about info messages
Karel Zak [Wed, 26 Feb 2025 10:06:36 +0000 (11:06 +0100)] 
mount: (man) add info about info messages

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoMerge branch 'PR/libmount-statmount-source' of https://github.com/karelzak/util-linux...
Karel Zak [Tue, 25 Feb 2025 11:54:23 +0000 (12:54 +0100)] 
Merge branch 'PR/libmount-statmount-source' of https://github.com/karelzak/util-linux-work

* 'PR/libmount-statmount-source' of https://github.com/karelzak/util-linux-work:
  libmount: add support for STATMOUNT_SB_SOURCE

5 months agolibmount: add support for STATMOUNT_SB_SOURCE
Karel Zak [Tue, 25 Feb 2025 10:48:14 +0000 (11:48 +0100)] 
libmount: add support for STATMOUNT_SB_SOURCE

* read mount source by statmount() 9requires kernel >=6.14
* add new STATMOUNT_* masks

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agofdisk: (man) add note about partition size calculation
Karel Zak [Tue, 25 Feb 2025 10:46:46 +0000 (11:46 +0100)] 
fdisk: (man) add note about partition size calculation

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoscriptlive: improve some descriptions, markup, and grammar in the manpage
Benno Schulenberg [Mon, 24 Feb 2025 13:08:40 +0000 (14:08 +0100)] 
scriptlive: improve some descriptions, markup, and grammar in the manpage

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoscriptlive: reduce two usage synopses to one simple one
Benno Schulenberg [Mon, 24 Feb 2025 13:08:39 +0000 (14:08 +0100)] 
scriptlive: reduce two usage synopses to one simple one

No synopsis can show all possible permutattions of arguments and
options, so do not even try and just give the most basic form,
without unneeded -t, -I, or -B.

Also, use angle brackets to show that <timingfile> and <typescript>
are placeholders.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoscriptreplay: mark literal values in the man page in bold, not italic
Benno Schulenberg [Mon, 24 Feb 2025 13:08:38 +0000 (14:08 +0100)] 
scriptreplay: mark literal values in the man page in bold, not italic

Also, mention which keys can be used to speed up, slow down, and pause
the replay.  Shorten the description of '-s' as it is deprecated.  And
improve the description of '-t': it does not override the _timingfile_
positional argument, but takes the place of it, makes it unneeded.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoscriptreplay: reduce two usage synopses to one, and drop the -t from it
Benno Schulenberg [Mon, 24 Feb 2025 13:08:37 +0000 (14:08 +0100)] 
scriptreplay: reduce two usage synopses to one, and drop the -t from it

Those two synopses still did not express several possible forms:

    scriptreplay -m.1 timings
    scriptreplay typescript -t timings -m.1
    ...

So, instead of trying to cover all possibilities, just give the
basic form of the command, which is clearest and most helpful.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoscriptreplay: make Up/Down keys use a percentage instead of fixed amount
Benno Schulenberg [Mon, 24 Feb 2025 13:08:36 +0000 (14:08 +0100)] 
scriptreplay: make Up/Down keys use a percentage instead of fixed amount

Using a fixed 0.1 amount made each subsequent Down-arrow key slow things
down _more_, and each subsequent Up-arrow key speed things up _less_.
It's nicer when each subsequent keystroke has the same relative effect.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoscriptreplay: indicate that <divisor> is conditional on <typescript>
Benno Schulenberg [Mon, 24 Feb 2025 13:08:35 +0000 (14:08 +0100)] 
scriptreplay: indicate that <divisor> is conditional on <typescript>

Also, use angle brackets to show that those words are placeholders,
not literals, and improve the descriptions of the key bindings.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
5 months agoMerge branch 'zramctl' of https://github.com/yuwata/util-linux
Karel Zak [Tue, 25 Feb 2025 07:30:11 +0000 (08:30 +0100)] 
Merge branch 'zramctl' of https://github.com/yuwata/util-linux

* 'zramctl' of https://github.com/yuwata/util-linux:
  zramctl: wait for device being initialized and unlocked by udevd

5 months agoMerge branch 'PR/libmount-fix-owner' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 25 Feb 2025 07:29:42 +0000 (08:29 +0100)] 
Merge branch 'PR/libmount-fix-owner' of https://github.com/karelzak/util-linux-work

* 'PR/libmount-fix-owner' of https://github.com/karelzak/util-linux-work:
  Libmount: Fix removal of "owner" option when executed as root

5 months agoMerge branch 'PR/agetty-fix-ttyname' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 25 Feb 2025 07:28:55 +0000 (08:28 +0100)] 
Merge branch 'PR/agetty-fix-ttyname' of https://github.com/karelzak/util-linux-work

* 'PR/agetty-fix-ttyname' of https://github.com/karelzak/util-linux-work:
  agetty: fix stdin conversion to tty name

5 months agoautotools: Fix use of mq_open and mq_close
Samuel Thibault [Tue, 25 Feb 2025 07:27:18 +0000 (08:27 +0100)] 
autotools: Fix use of mq_open and mq_close

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoLibmount: Fix removal of "owner" option when executed as root
Karel Zak [Mon, 24 Feb 2025 13:04:53 +0000 (14:04 +0100)] 
Libmount: Fix removal of "owner" option when executed as root

When executed as root, libmount replaces the "owner" and "group" mount
options with "nosuid, nodev, ..." However, this can result in an
"invalid argument" error because libmount removes the unwanted options
first and then tries to address the location for the new options using
the already removed options. To fix this, we need to reverse the order
of operations.

Reported-by: hxinzhe <hxinzhe1024@163.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoagetty: fix stdin conversion to tty name
Karel Zak [Mon, 24 Feb 2025 12:37:04 +0000 (13:37 +0100)] 
agetty: fix stdin conversion to tty name

Addresses: https://github.com/util-linux/util-linux/issues/3304
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotests: (flock::range-lock) add a case testing --start/--length
Masatake YAMATO [Fri, 21 Feb 2025 15:37:32 +0000 (00:37 +0900)] 
tests: (flock::range-lock) add a case testing --start/--length

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
5 months agoflock: support locking with byte-range
Masatake YAMATO [Fri, 21 Feb 2025 15:21:51 +0000 (00:21 +0900)] 
flock: support locking with byte-range

New options, --start and --length are for specifying the byte-range.
The options assume used with --fcntl option.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
5 months agotools/git-grouped-log: add script to generated git log
Karel Zak [Thu, 20 Feb 2025 13:48:30 +0000 (14:48 +0100)] 
tools/git-grouped-log: add script to generated git log

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools: improve in-repo check
Karel Zak [Wed, 19 Feb 2025 19:01:03 +0000 (20:01 +0100)] 
tools: improve in-repo check

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-version-bump: add script to update hardcoded versions
Karel Zak [Wed, 19 Feb 2025 18:38:18 +0000 (19:38 +0100)] 
tools/git-version-bump: add script to update hardcoded versions

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo: merge changes
Karel Zak [Wed, 19 Feb 2025 17:55:32 +0000 (18:55 +0100)] 
po: merge changes

5 months agopo: update hr.po (from translationproject.org)
Božidar Putanec [Wed, 19 Feb 2025 17:55:23 +0000 (18:55 +0100)] 
po: update hr.po (from translationproject.org)

5 months agotools/git-tp-sync: require git
Karel Zak [Wed, 19 Feb 2025 17:52:20 +0000 (18:52 +0100)] 
tools/git-tp-sync: require git

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-tp-sync: merge changes to PO files
Karel Zak [Wed, 19 Feb 2025 17:40:39 +0000 (18:40 +0100)] 
tools/git-tp-sync: merge changes to PO files

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agozramctl: wait for device being initialized and unlocked by udevd
Yu Watanabe [Fri, 14 Feb 2025 01:32:44 +0000 (10:32 +0900)] 
zramctl: wait for device being initialized and unlocked by udevd

systemd-udevd takes a lock during processing the uevent for a block
device. The kernel refuses 'reset' attribute for zram device is written
when the device node is opened. Hence, during systemd-udevd processes a
uevent for zram device, we cannot write 'reset' attribute.
Let's wait for the device being initialized and unlocked by udevd.

Note, there still exists a race window, as we need to release the lock
before writing 'reset' attribute. But, the situation should be better
now.

5 months agoautotools: remove tools/git-tp-sync-man
Karel Zak [Wed, 19 Feb 2025 14:53:00 +0000 (15:53 +0100)] 
autotools: remove tools/git-tp-sync-man

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-tp-sync-man: remove obsolete script
Karel Zak [Wed, 19 Feb 2025 14:45:20 +0000 (15:45 +0100)] 
tools/git-tp-sync-man: remove obsolete script

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-tp-sync: support multiple directories
Karel Zak [Wed, 19 Feb 2025 14:44:00 +0000 (15:44 +0100)] 
tools/git-tp-sync: support multiple directories

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-tp-sync: reuse git ls-files calls
Karel Zak [Wed, 19 Feb 2025 11:41:12 +0000 (12:41 +0100)] 
tools/git-tp-sync: reuse git ls-files calls

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-tp-sync: add --dry-run and --help
Karel Zak [Wed, 19 Feb 2025 11:33:58 +0000 (12:33 +0100)] 
tools/git-tp-sync: add --dry-run and --help

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-tp-sync: Compare Revisions
Karel Zak [Wed, 19 Feb 2025 11:07:00 +0000 (12:07 +0100)] 
tools/git-tp-sync: Compare Revisions

The previous version required updating languages through the command
line, or it would download all PO files.

This commit improves the script by comparing the PO-Revision-Date in
the old and new versions, and only commits updated PO files.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo: upadte LINGUAS file
Karel Zak [Wed, 19 Feb 2025 10:00:41 +0000 (11:00 +0100)] 
po: upadte LINGUAS file

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoMerge branch 'mess' of https://github.com/neheb/util-linux
Karel Zak [Wed, 19 Feb 2025 08:52:42 +0000 (09:52 +0100)] 
Merge branch 'mess' of https://github.com/neheb/util-linux

* 'mess' of https://github.com/neheb/util-linux:
  meson: demote two libraries to library

5 months agolsipc: doesn't mount /dev/mqueue
Prasanna Paithankar [Wed, 19 Feb 2025 06:12:08 +0000 (11:42 +0530)] 
lsipc: doesn't mount /dev/mqueue

Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
5 months agobuild-sys: keep the most recent version in NEWS
Karel Zak [Tue, 18 Feb 2025 22:03:17 +0000 (23:03 +0100)] 
build-sys: keep the most recent version in NEWS

This file is used as a fallback for tools/git-version-gen if tags or
git are not available.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agotools/git-version-gen: accept -start in version (as -rc)
Karel Zak [Tue, 18 Feb 2025 17:40:47 +0000 (18:40 +0100)] 
tools/git-version-gen: accept -start in version (as -rc)

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agobuild-sys: update version dates v2.42-start
Karel Zak [Tue, 18 Feb 2025 12:44:19 +0000 (13:44 +0100)] 
build-sys: update version dates

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agodocs: reduce and freeze NEWS file
Karel Zak [Tue, 18 Feb 2025 12:38:59 +0000 (13:38 +0100)] 
docs: reduce and freeze NEWS file

Originally, it was required by Automake. However, for a long time, we
have been using the "foreign" Automake option, so it is no longer
necessary. All the details can be found in the ReleaseNotes. Let's
keep it simple.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agolibmount: fix table_init_listmount()
Karel Zak [Tue, 18 Feb 2025 12:08:03 +0000 (13:08 +0100)] 
libmount: fix table_init_listmount()

Addresses: 8ab1890df4481ddabfa34a8c7fbed09fdd818eba
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agodocs: reduce AUTHORS file
Karel Zak [Tue, 18 Feb 2025 11:36:16 +0000 (12:36 +0100)] 
docs: reduce AUTHORS file

It's already over 1900 lines of email addresses, and it seems better
to require people who care about the names to use "git log" instead of
distributing a database of emails.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agodocs: rename v*-devel tag to v*-start
Karel Zak [Tue, 18 Feb 2025 11:16:51 +0000 (12:16 +0100)] 
docs: rename v*-devel tag to v*-start

This is the point where work on the new release begins.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo-man: merge changes
Karel Zak [Tue, 18 Feb 2025 10:45:11 +0000 (11:45 +0100)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo: merge changes
Karel Zak [Tue, 18 Feb 2025 10:45:04 +0000 (11:45 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo: update zh_CN.po (from translationproject.org)
Mingye Wang (Artoria2e5) [Tue, 18 Feb 2025 10:35:29 +0000 (11:35 +0100)] 
po: update zh_CN.po (from translationproject.org)

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

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

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

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

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

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

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

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>