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
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).
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.
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.
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.
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.
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>
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.
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.
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.
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
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.
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