]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
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>
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