Changes between v2.35 and v2.36-rc1 ------------------------------------ commit 5657d3492fdd57dca47fde3e448d6b42699f90d9 Author: Karel Zak Date: Tue Jun 9 14:55:55 2020 +0200 build-sys: release++ (v2.36-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit a736c249c622588d7d0bf7d7052f2a461ba42c64 Author: Karel Zak Date: Tue Jun 9 15:11:58 2020 +0200 docs: fix release notes file name Signed-off-by: Karel Zak Documentation/releases/{v2.36-ReleaseNote => v2.36-ReleaseNotes} | 0 1 file changed, 0 insertions(+), 0 deletions(-) commit 8649905af63e2603eacbfb2364a3959a9b647a82 Author: Karel Zak Date: Tue Jun 9 14:28:23 2020 +0200 docs: add v2.36-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.36-ReleaseNote | 491 +++++++++++++++++++++++++++++++ 1 file changed, 491 insertions(+) commit 8dd07dbdfd01acb6589eeb3a9cbf14357d7d887a Author: Karel Zak Date: Tue Jun 9 11:51:51 2020 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) commit c70940778d78e5ab4948bc03daa8aead4e4fdc02 Author: Karel Zak Date: Tue Jun 9 11:49:28 2020 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 5633 ++++++++++++++++++++++++++++------------------------ po/cs.po | 5682 ++++++++++++++++++++++++++++------------------------ po/da.po | 5651 ++++++++++++++++++++++++++++------------------------ po/de.po | 5681 ++++++++++++++++++++++++++++------------------------ po/es.po | 5664 ++++++++++++++++++++++++++++------------------------ po/et.po | 5619 ++++++++++++++++++++++++++++------------------------ po/eu.po | 5618 ++++++++++++++++++++++++++++------------------------ po/fi.po | 5632 ++++++++++++++++++++++++++++------------------------ po/fr.po | 5664 ++++++++++++++++++++++++++++------------------------ po/gl.po | 5587 +++++++++++++++++++++++++++------------------------ po/hr.po | 5707 +++++++++++++++++++++++++++++------------------------ po/hu.po | 5638 ++++++++++++++++++++++++++++------------------------ po/id.po | 5636 ++++++++++++++++++++++++++++------------------------ po/it.po | 5637 ++++++++++++++++++++++++++++------------------------ po/ja.po | 5621 ++++++++++++++++++++++++++++------------------------ po/nl.po | 5636 ++++++++++++++++++++++++++++------------------------ po/pl.po | 5664 ++++++++++++++++++++++++++++------------------------ po/pt.po | 5654 ++++++++++++++++++++++++++++------------------------ po/pt_BR.po | 5686 ++++++++++++++++++++++++++++------------------------ po/ru.po | 5635 ++++++++++++++++++++++++++++------------------------ po/sl.po | 5633 ++++++++++++++++++++++++++++------------------------ po/sv.po | 5662 ++++++++++++++++++++++++++++------------------------ po/tr.po | 5630 ++++++++++++++++++++++++++++------------------------ po/uk.po | 5704 ++++++++++++++++++++++++++++------------------------ po/util-linux.pot | 5492 +++++++++++++++++++++++++++------------------------ po/vi.po | 5641 ++++++++++++++++++++++++++++------------------------ po/zh_CN.po | 5626 ++++++++++++++++++++++++++++------------------------ po/zh_TW.po | 5613 ++++++++++++++++++++++++++++------------------------ 28 files changed, 85449 insertions(+), 72497 deletions(-) commit 1aa0f1abf48710015970d13e308ae92b193429b7 Author: Karel Zak Date: Tue Jun 9 11:45:55 2020 +0200 lib/strutils: use directly err() Signed-off-by: Karel Zak lib/strutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ccbeabfa05c01d1dee201c2c0f22694dfa8156bf Author: Božidar Putanec Date: Tue Jun 9 11:35:01 2020 +0200 po: update hr.po (from translationproject.org) po/hr.po | 520 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 259 insertions(+), 261 deletions(-) commit 19a353947dd16a78ca102ac002320b80ad3951e8 Author: Karel Zak Date: Tue Jun 9 11:31:42 2020 +0200 logindefs: use xalloc.h, code cleanup - remove else-after-return - use else-if - use xalloc stuff Signed-off-by: Karel Zak login-utils/logindefs.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) commit 0c960dd8b93ccdfb11f60ef118082d782d2dd09a Author: Karel Zak Date: Tue Jun 9 10:56:28 2020 +0200 lib/strutils: remove unnecessary include Signed-off-by: Karel Zak lib/strutils.c | 2 -- 1 file changed, 2 deletions(-) commit 01977c38478f566d0709bc039066c09c1b1e05ec Author: Karel Zak Date: Tue Jun 9 10:55:20 2020 +0200 tests: add STATIC binaries to build-sys tests Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 8 ++++++++ tests/expected/build-sys/config-all-non-nls | 8 ++++++++ tests/expected/build-sys/config-audit | 8 ++++++++ tests/expected/build-sys/config-chfnsh-libuser | 8 ++++++++ tests/expected/build-sys/config-chfnsh-no-password | 8 ++++++++ tests/expected/build-sys/config-chfnsh-pam | 8 ++++++++ tests/expected/build-sys/config-core | 8 ++++++++ tests/expected/build-sys/config-devel | 8 ++++++++ tests/expected/build-sys/config-devel-non-asan | 8 ++++++++ tests/expected/build-sys/config-devel-non-docs | 8 ++++++++ tests/expected/build-sys/config-disable-all | 8 ++++++++ tests/expected/build-sys/config-enable-schedutils | 8 ++++++++ tests/expected/build-sys/config-non-libblkid | 8 ++++++++ tests/expected/build-sys/config-non-libmount | 8 ++++++++ tests/expected/build-sys/config-non-libs | 8 ++++++++ tests/expected/build-sys/config-non-libsmartcols | 8 ++++++++ tests/expected/build-sys/config-non-libuuid | 8 ++++++++ tests/expected/build-sys/config-non-nls | 8 ++++++++ tests/expected/build-sys/config-non-widechar | 8 ++++++++ tests/expected/build-sys/config-selinux | 8 ++++++++ tests/expected/build-sys/config-slang | 8 ++++++++ 21 files changed, 168 insertions(+) commit 330b09976fa17117dc0f990e8993bd9335868804 Author: Karel Zak Date: Tue Jun 9 10:53:14 2020 +0200 build-sys: remove redundard includes Signed-off-by: Karel Zak lib/strutils.c | 1 - login-utils/login.c | 1 - 2 files changed, 2 deletions(-) commit 487b55db547fcf1653dda09b9df60125a8fbcf9a Author: Karel Zak Date: Tue Jun 9 10:51:37 2020 +0200 libblkid: (docs) document new function Signed-off-by: Karel Zak libblkid/docs/libblkid-sections.txt | 1 + 1 file changed, 1 insertion(+) commit 967b8c2579bbc046a3ac8e3064e14a430f35929b Author: Karel Zak Date: Tue Jun 9 10:50:42 2020 +0200 libfdisk: (docs) document new functions Signed-off-by: Karel Zak libfdisk/docs/libfdisk-sections.txt | 3 +++ 1 file changed, 3 insertions(+) commit 07e6f72822fb92422bbd9c63f22b92f5a6566739 Author: Marcel Waldvogel Date: Mon Jun 8 14:30:03 2020 +0200 mount: Update man page Synopsis Document - `-t` when listing mounts - `--bind`, `--rbind`, and `--move` - `--make-*` - Mountpoints need not only be directories [kzak@redhat.com: - cleanup syntax, - use all complete --make-* list] Signed-off-by: Karel Zak sys-utils/mount.8 | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) commit 1376cdeaf2a687f032c068fbe03a9ee7ad4212ce Author: Karel Zak Date: Mon Jun 8 13:29:33 2020 +0200 tests: update build-sys tests - remove libasan from results - link libcryptsetup (due to verity support in libmount) - add lsiqr - add irqtop Signed-off-by: Karel Zak tests/expected/build-sys/config-all | 43 ++-- tests/expected/build-sys/config-all-non-nls | 43 ++-- tests/expected/build-sys/config-audit | 13 +- tests/expected/build-sys/config-chfnsh-libuser | 13 +- tests/expected/build-sys/config-chfnsh-no-password | 13 +- tests/expected/build-sys/config-chfnsh-pam | 13 +- tests/expected/build-sys/config-core | 13 +- tests/expected/build-sys/config-devel | 235 +++++++++++---------- tests/expected/build-sys/config-devel-non-asan | 43 ++-- tests/expected/build-sys/config-devel-non-docs | 43 ++-- tests/expected/build-sys/config-non-libblkid | 11 +- tests/expected/build-sys/config-non-libmount | 11 +- tests/expected/build-sys/config-non-libs | 9 +- tests/expected/build-sys/config-non-libsmartcols | 11 +- tests/expected/build-sys/config-non-libuuid | 13 +- tests/expected/build-sys/config-non-nls | 13 +- tests/expected/build-sys/config-selinux | 13 +- tests/expected/build-sys/config-slang | 13 +- tests/expected/build-sys/config-static | 13 +- 19 files changed, 316 insertions(+), 263 deletions(-) commit 5868026e2c8fe894d2c1d9ffb117f9024bbd54a1 Author: Karel Zak Date: Mon Jun 8 13:18:20 2020 +0200 build-sys: fix irqtop compilation with -lslang Signed-off-by: Karel Zak sys-utils/Makemodule.am | 10 ++++++++-- sys-utils/irqtop.c | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) commit f7c875d4a9d4842b0a04dd18b0878f3d98ad98ed Author: Karel Zak Date: Mon Jun 8 11:45:09 2020 +0200 tests: don't use ASAN in build tests Signed-off-by: Karel Zak tests/ts/build-sys/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c61470c7c02a5bb2836edad72a84898e4fad88a5 Author: Karel Zak Date: Mon Jun 8 11:33:00 2020 +0200 build-sys: make lsirq and irqtop optional Signed-off-by: Karel Zak configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ac26b19ba62ac229ae3b1c18b748cfa589a736ce Author: Karel Zak Date: Mon Jun 8 10:05:14 2020 +0200 lscpu: cleanup caches code Signed-off-by: Karel Zak sys-utils/lscpu.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) commit 318542e060ff68e012bea7ee498f12a6ce7e5593 Author: Sumanth Korikkar Date: Fri Jun 5 18:15:10 2020 +0200 lscpu: Add shared cached info for s390 lscpu -C The shared cache info for s390 can be found in /proc/cpuinfo. lscpu without any options already processes this info. Fix this in lscpu -C and provide detailed stat. Test for s390: ./lscpu -C NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL SETS PHY-LINE COHERENCY-SIZE L1d 128K 256K 8 Data 1 64 256 L1i 128K 256K 8 Instruction 1 64 256 L2d 4M 8M 8 Data 2 2048 256 L2i 2M 4M 8 Instruction 2 1024 256 L3 128M 32 Unified 3 16384 256 L4 672M 42 Unified 4 65536 256 Signed-off-by: Sumanth Korikkar sys-utils/lscpu.c | 169 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 101 insertions(+), 68 deletions(-) commit 9147d2ad8abb73cea5799323fc73ccdaf675826f Author: Stanislav Brabec Date: Fri Jun 5 10:04:21 2020 +0200 blockdev: Don't fail on missing start sector It causes # blockdev --report" error: blockdev: /dev/dm-9: failed to read partition start from sysfs: No such file or directory There is no reliable way to detect a geometry in this case. Report N/A instead. Signed-off-by: Stanislav Brabec Cc: Martin Wilck Signed-off-by: Karel Zak disk-utils/blockdev.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) commit 43d2ce3b443d06abef21a6a612560f57c5989ea3 Author: Karel Zak Date: Fri Jun 5 09:18:08 2020 +0200 blkzone: remove unnecessary initializations C compiler is smart enough to follow C standards C11: 6.7.8 Initialization All subobjects that are not initialized explicitly shall be initialized implicitly the same as objects that have static storage duration. Signed-off-by: Karel Zak sys-utils/blkzone.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 6e103c7690fe4c07ea9dfe45c52c4c22e0281d0b Author: Shin'ichiro Kawasaki Date: Fri Jun 5 14:06:18 2020 +0900 blkzone: Add --force option Commit 7a2602f629fe ("blkzone: deny destructive ioctls on busy blockdev") introduced exclusive mode to open block devices to submit zone management ioctls. This avoids unintended status change of block devices used by the system. However, it makes blkzone less usable for testing. For example, the test case zbd/007 of blktests utilizes blkzone to reset zones of block devices mapped to dm-linear devices. After the commit, the test case fails with EBUSY error at blkzone reset, since the system uses the reset target block device to map to the dm-linear device. To allow blkzone to change status of zoned block devices used by the system with intention, introduce --force option. With this option, block devices are opened without exclusive mode. Also fix too many periods in man page of --verbose option. [kzak@redhat.com: - tiny cosmetic changes] Signed-off-by: Shin'ichiro Kawasaki Signed-off-by: Karel Zak sys-utils/blkzone.8 | 5 ++++- sys-utils/blkzone.c | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) commit 9bf622dad9650e8bcc02d17b9e627d6aa061d163 Author: Konstantin Khlebnikov Date: Mon Jun 1 22:21:34 2020 +0300 dmesg: adjust timestamps according to suspended time Timestamps in kernel log comes from monotonic clocksource which does not tick when system suspended. Suspended time easily sums into hours and days rendering human readable timestamps in dmesg useless. Adjusting timestamps accouring to current delta between boottime and monotonic clocksources produces accurate timestamps for messages printed since last resume. Which are supposed to be most interesting. Signed-off-by: Konstantin Khlebnikov include/monotonic.h | 2 ++ lib/monotonic.c | 12 ++++++++++++ sys-utils/dmesg.1 | 2 ++ sys-utils/dmesg.c | 22 +++++++++++++++++----- 4 files changed, 33 insertions(+), 5 deletions(-) commit 4d4f56baad602e05a9e48ac96f94d6e8d3702c7f Author: Michael Kerrisk (man-pages) Date: Wed Jun 3 09:40:57 2020 +0200 Manual pages: unshare.1: clarify that --pid= requires --fork Attempting to create a persistent PID namespace with --pid= will result in an error if --fork is not also specified. Let's warn people about that, so they don't get puzzled. Signed-off-by: Michael Kerrisk (man-pages) Signed-off-by: Karel Zak sys-utils/unshare.1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 48994386a169b05dd258c3b044b1ed666692ff72 Author: Michael Kerrisk (man-pages) Date: Wed Jun 3 09:40:56 2020 +0200 Manual pages: unshare.1: clarify description and example for --mount= The existing text is not quite accurate, and I recently injected an error into the EXAMPLES. This patch fixes both issues. The text in DESCRIPTION incorrectly states that the propagation type of the parent mount must be "private". This is not accurate. Rather, the propagation type must be something *other than "shared"* (i.e., "private", "slave", or "unbindable"). In the EXAMPLES section, I added text that implies that if the propagation type of the parent mount is "shared", then the child mount created by --mount= might propagate to another namespace. Rather, in this situation, an error would result. Clarify that. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/unshare.1 | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) commit b3391f3ac790b52ec14d763c0ff5cde808309d76 Author: Karel Zak Date: Wed Jun 3 16:53:00 2020 +0200 libmount: add support for ID= This patch add support for a new tag. The tag is based on udev block device ID (see /dev/disk/by-id). The usual use-case is to use WWN for this purpose, for example # mount ID=wwn-0x50026b724b09a1ff /mnt Note that ID is not strictly defined and udevd generates various IDs also for HW where WWN is undefined. This is reason why introduce ID= seems better and more generic than more restrictive WWN=. Addresses: https://github.com/karelzak/util-linux/issues/1008 Signed-off-by: Karel Zak libblkid/src/evaluate.c | 5 +++++ libmount/src/utils.c | 1 + sys-utils/mount.8 | 12 ++++++++++-- sys-utils/mount.c | 3 ++- 4 files changed, 18 insertions(+), 3 deletions(-) commit 72bc0dd27cd3f3a9d1c324828a11e789d7795821 Author: Karel Zak Date: Mon Jun 1 14:53:47 2020 +0200 mount: (man) cleanup devices identifiers section Signed-off-by: Karel Zak sys-utils/mount.8 | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) commit a43769294387d840c63a18b2f97afdc0bef08905 Author: Karel Zak Date: Mon Jun 1 10:33:29 2020 +0200 login: cleanup -f in usage() and comments Let's remove unnecessary comment and "second authentication" from usage(). Addresses: https://github.com/karelzak/util-linux/issues/1053 Signed-off-by: Karel Zak login-utils/login.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) commit d7881b0ed5ed3fc31fac1545413bca441ac239f6 Author: Konstantin Khlebnikov Date: Sat May 30 17:07:53 2020 +0300 dmesg: add --follow-new Option --follow-new (-W) works the same as --follow (-w) but initially seeks to the end of kernel ring buffer, so it prints only new messages. Useful for capturing kernel messages during actions without past log. Signed-off-by: Konstantin Khlebnikov bash-completion/dmesg | 1 + sys-utils/dmesg.1 | 3 +++ sys-utils/dmesg.c | 11 +++++++++-- 3 files changed, 13 insertions(+), 2 deletions(-) commit f0833edc1204bd039d364710bb7700a747270330 Author: Karel Zak Date: Fri May 29 14:50:36 2020 +0200 login: fix -f description in the man-page Addresses: https://github.com/karelzak/util-linux/issues/1053 Signed-off-by: Karel Zak login-utils/login.1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 96e47ad0cbe635ab0314374ebcfc0c6a849089a5 Author: Michael Kerrisk (man-pages) Date: Fri May 29 14:20:48 2020 +0200 Manual pages: mount.8: Miscellaneous wording, grammar, and formatting fixes Most of these are "obviously correct": - formatting fixes - improved English wordings - add missing articles ("a", "the") - a few spelling fixes - a few "obvious" corrections to the text Signed-off-by: Michael Kerrisk (man-pages) sys-utils/mount.8 | 318 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 188 insertions(+), 130 deletions(-) commit 1538f6f636703cec03053fb5b9c11a275928952e Author: Michael Kerrisk (man-pages) Date: Fri May 29 14:20:47 2020 +0200 Manual pages: wording fix: "another" ==> "other" In several pages, there is a consistent wording problem: "another" where "other" should be used. This wording problem can be surprisingly confusing for native speakers, especially those unaware that in some other languages, "another" and "other" can be expressed with the same word. Signed-off-by: Michael Kerrisk (man-pages) disk-utils/fdisk.8 | 2 +- disk-utils/sfdisk.8 | 4 ++-- login-utils/runuser.1 | 2 +- login-utils/su.1 | 2 +- misc-utils/blkid.8 | 2 +- sys-utils/lsmem.1 | 3 ++- sys-utils/mount.8 | 9 +++++---- sys-utils/umount.8 | 6 +++--- term-utils/scriptreplay.1 | 2 +- text-utils/column.1 | 2 +- 10 files changed, 18 insertions(+), 16 deletions(-) commit f8ad710f6c944ac5d00d658ac4c8d7a70f6d129e Author: Karel Zak Date: Fri May 29 09:54:48 2020 +0200 build-sys: add missing LDADD to blkid test Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 79eab6383f78ad9fbab06b17aca11a4861abbaf7 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:23 2020 +0200 Manual pages: umount.8: use "filesystem" consistently Currently, this page has a mix of "filesystem" and file system", with the former being predominant. Let's settle on one. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/umount.8 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit b3222042a121ff7e29c7d342654f593007777377 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:22 2020 +0200 Manual pages: mount.8: Rewrite FILESYSTEM-SPECIFIC MOUNT OPTIONS intro Add a table listing other manual pages that describe mount options of some widely used filesystems. Additionally, rewrite the remaining text to be a bit easier to read. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/mount.8 | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) commit 4330d74d96b50e9bbf6353a01d95440d2040d522 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:21 2020 +0200 Manual pages: mount.8: Typo fix (remove an accidental paragraph break) Signed-off-by: Michael Kerrisk (man-pages) sys-utils/mount.8 | 1 - 1 file changed, 1 deletion(-) commit f95c9776c2783ebbf96bd8f904113c2b6c6b81cc Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:20 2020 +0200 Manual pages: mount.8: SEE ALSO: add some obvious references And correct sort order for "umount(8)" entry. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/mount.8 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit cfd6b4dc1d11c06c802c74a928ca3bd161681271 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:19 2020 +0200 Manual pages: mount.8, umount.8: Consistently format pathnames with italic Signed-off-by: Michael Kerrisk (man-pages) sys-utils/mount.8 | 163 ++++++++++++++++++++++++++++++++++++++++------------- sys-utils/umount.8 | 31 +++++++--- 2 files changed, 146 insertions(+), 48 deletions(-) commit 2a425c02e4958b35d8f4a1cc69226570630c6504 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:18 2020 +0200 Manual pages: mount.8, umount.8: Clarify that "namespace" means "mount namespace" There are various references to "namespaces" when it would be clearer to say "mount namespaces". Also, add references to the mount_namespaces(7) manual page. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/mount.8 | 11 +++++++---- sys-utils/umount.8 | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) commit 428154246616c515a0751ec3263ba66b895fcca8 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:17 2020 +0200 Manual pages: setpriv.1: Minor formatting and typo fixes These seem all "obviously correct", so I'm rolling them up into one patch. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/setpriv.1 | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) commit 583e50dbd0c74566c0ba043f13e0341e4057b3b2 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:16 2020 +0200 Manual pages: unshare.1: typo fix (Introduced in one of my earlier commits) Signed-off-by: Michael Kerrisk (man-pages) sys-utils/unshare.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a8176639daf594d217e1b1ac7935235de9065303 Author: Michael Kerrisk (man-pages) Date: Thu May 28 16:58:15 2020 +0200 Manual pages: unshare.1: EXAMPLES: improve persistent mount namespace example The text describing the persistent mount namespace example is rather confused. Explain more clearly the purpose of making the parent directory a bind mount with private propagation. Also make a few other wording improvements. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/unshare.1 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) commit 2261cfdc26b91b50fd7c4c7da56bae9a5999122e Author: Helge Deller Date: Wed May 27 23:20:58 2020 +0000 setarch: fix stderr handling in uname26 tests A while ago stdout and stderr have been split in these testcases, but "FATAL: kernel too old" is actually treated as an "okay" output. However this FATAL ends up on stderr, so when it happens, it is not seen in the captured stdout. Fix this by merging stdout/stderr in these cases once again. Signed-off-by: Helge Deller Signed-off-by: Chris Hofstaedtler Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961639 Fixes: cbf858aa085e25aa5afd1d06decaea6e14a8963f tests/ts/misc/setarch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 3bc92f313a591a669ece870e67cb67d80a32cb39 Author: Michael Kerrisk (man-pages) Date: Mon May 25 14:59:12 2020 +0200 Manual pages: rename EXAMPLE section to EXAMPLES Earlier, I patched various pages to consistently use EXAMPLE as a section heading, rather than EXAMPLES. (At that time, both headings occurred in util-linux, with roughly equal frequency.) Since then, I've observed that EXAMPLES is the more common usage across a large corpus of manual pages. So, in Linux the man-pages project, I switched to using EXAMPLES also. This patch makes the same change for util-linux. Signed-off-by: Michael Kerrisk (man-pages) misc-utils/logger.1 | 2 +- misc-utils/look.1 | 2 +- misc-utils/rename.1 | 2 +- misc-utils/uuidgen.1 | 2 +- misc-utils/whereis.1 | 2 +- schedutils/ionice.1 | 2 +- sys-utils/flock.1 | 2 +- sys-utils/prlimit.1 | 2 +- sys-utils/renice.1 | 2 +- sys-utils/setpriv.1 | 2 +- sys-utils/unshare.1 | 4 ++-- term-utils/scriptlive.1 | 2 +- term-utils/scriptreplay.1 | 2 +- text-utils/colcrt.1 | 2 +- text-utils/column.1 | 2 +- text-utils/hexdump.1 | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) commit 79a0cc9d028d563f3012ed83d87608e123541e9e Author: Michael Kerrisk (man-pages) Date: Mon May 25 14:59:11 2020 +0200 Man pages: ipcmk.1, ipcs.1, lsipc.1: explicitly mention "System V" Explicitly mention "System V" in the description, so that readers do not get confused with the POSIX IPC mechanisms. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/ipcmk.1 | 3 ++- sys-utils/ipcs.1 | 2 +- sys-utils/lsipc.1 | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) commit fdd6a44f4c9d0ce7cc0c95845008369502509105 Author: Michael Kerrisk (man-pages) Date: Mon May 25 14:59:10 2020 +0200 Manual pages: ipcmk.1, ipcrm.1, ipcs.1, lsipc.1: SEE ALSO: add sysvipc(7) These commands all relate to System V IPC, so point the reader at the relevant Section 7 page provided by the Linux man-pages project. Signed-off-by: Michael Kerrisk (man-pages) sys-utils/ipcmk.1 | 3 ++- sys-utils/ipcrm.1 | 3 ++- sys-utils/ipcs.1 | 3 ++- sys-utils/lsipc.1 | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) commit a374630f763a66c4e8e5113c62f73a259a050dd5 Author: Michael Kerrisk (man-pages) Date: Mon May 25 14:59:09 2020 +0200 Manual pages: kill.1: improve the description of the --timout option The text describing this option is a little hard to understand. Improve it. Cc: Sami Kerola Signed-off-by: Michael Kerrisk (man-pages) misc-utils/kill.1 | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) commit 226c38d44724483c90d7a2551746458cc2283c34 Author: Michael Kerrisk (man-pages) Date: Mon May 25 14:59:08 2020 +0200 Manual pages: kill.1: various language, spelling, and formatting fixes These seem all "obviously correct", so I'm rolling them up into one patch. Signed-off-by: Michael Kerrisk (man-pages) misc-utils/kill.1 | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) commit e4253d3ca40d12e2b4b19c1150ca0ef2d4482958 Author: Karel Zak Date: Thu May 28 12:51:26 2020 +0200 swapoff: do not use 1 exist status at all The make sure we are not in collision with old versions. Addresses: https://github.com/karelzak/util-linux/issues/1050 Signed-off-by: Karel Zak sys-utils/swapoff.c | 6 +++--- sys-utils/swapon.8 | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) commit ecfa4dad6f7d338a61417763252d8778e60c1f35 Author: Karel Zak Date: Wed May 27 18:58:30 2020 +0200 swapoff: cleanup EXIT STATUS The current code hides details about reason why swapoff(8) and swapoff(2) failed. For example ENOMEM from swapoff(2) is important as it indicates OOM. The patch also clean ups --all return codes to be more compatible for example with [u]mount --all, etc. Addresses: https://github.com/karelzak/util-linux/issues/1050 Signed-off-by: Karel Zak sys-utils/swapoff.c | 65 ++++++++++++++++++++++++++++++++++++++--------------- sys-utils/swapon.8 | 28 +++++++++++++++++++++++ 2 files changed, 75 insertions(+), 18 deletions(-) commit c7fce443b19cf027e635cfb5091cc7bc3da44d1b Author: Karel Zak Date: Wed May 27 17:46:49 2020 +0200 libfdisk: (dos) be more explicit in fdisk_verify_disklabel() output Let's print number of detected errors or "No errors detected." for MBR. We already use the same for GPT. The patch also modifies fdisk_verify_disklabel() return code to inform caller about number of issues. Addresses: https://github.com/karelzak/util-linux/issues/1051 Signed-off-by: Karel Zak libfdisk/src/dos.c | 31 ++++++++++++++++++++++--------- libfdisk/src/gpt.c | 2 +- libfdisk/src/label.c | 2 +- 3 files changed, 24 insertions(+), 11 deletions(-) commit 9cd88771ef45b50ff791306c48b41dbbabe31241 Author: Karel Zak Date: Wed May 27 16:58:08 2020 +0200 fdisk: add --lock and LOCK_BLOCK_DEVICE Addresses: https://github.com/karelzak/util-linux/issues/921 Signed-off-by: Karel Zak disk-utils/fdisk.8 | 10 ++++++++++ disk-utils/fdisk.c | 29 +++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) commit 921ceaca31bd10ecab9c7ea774ca8707d670d57d Author: Karel Zak Date: Wed May 27 16:58:08 2020 +0200 wipefs: add --lock and LOCK_BLOCK_DEVICE Addresses: https://github.com/karelzak/util-linux/issues/921 Signed-off-by: Karel Zak misc-utils/wipefs.8 | 10 ++++++++++ misc-utils/wipefs.c | 23 +++++++++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) commit c3ef1268a0b4b0d01dd76043a865b4acf144f3c9 Author: Karel Zak Date: Wed May 27 16:58:08 2020 +0200 sfdisk: add --lock and LOCK_BLOCK_DEVICE Addresses: https://github.com/karelzak/util-linux/issues/921 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 23 +++++++------- disk-utils/sfdisk.c | 88 ++++++++++++++++++++++++++++------------------------- 2 files changed, 58 insertions(+), 53 deletions(-) commit b8671fe76370436beb37ca65ea1563c3284a2699 Author: Karel Zak Date: Wed May 27 16:58:08 2020 +0200 mkswap: add --lock and LOCK_BLOCK_DEVICE Addresses: https://github.com/karelzak/util-linux/issues/921 Signed-off-by: Karel Zak disk-utils/mkswap.8 | 10 ++++++++++ disk-utils/mkswap.c | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) commit ec8f712157fee9a23dead612627dc3851e325f6f Author: Karel Zak Date: Wed May 27 16:58:08 2020 +0200 cfdisk: add --lock and LOCK_BLOCK_DEVICE Addresses: https://github.com/karelzak/util-linux/issues/921 Signed-off-by: Karel Zak disk-utils/cfdisk.8 | 10 ++++++++++ disk-utils/cfdisk.c | 22 ++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) commit 37b302046a62ddfe0524f7bd8c725d4ddc5184b1 Author: Karel Zak Date: Tue May 26 17:21:04 2020 +0200 lib/blkdev: add support for --lock and LOCK_BLOCK_DEVICE All simple function to parse --lock and $LOCK_BLOCK_DEVICE, and to flock the fd. The supported is: "1" or "yes" - LOCK_EX "0" or "no" - do nothing "nonblock" - LOCK_EX | LOCK_NB The function tries LOCK_NB before the solo LOCK_EX and prints inform user that it will wait, for example: session A: # sfdisk --lock /dev/sdc session B: # sfdisk --lock /dev/sdc sfdisk: /dev/sdc: device already locked, waiting to get lock ... ^C # sfdisk --lock=nonblock /dev/sdc sfdisk: /dev/sdc: device already locked Addresses: https://github.com/karelzak/util-linux/issues/921 Signed-off-by: Karel Zak include/blkdev.h | 1 + lib/blkdev.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) commit 498f910eeb0167c75b0421a9a12974e6bb0afb04 Author: Karel Zak Date: Tue May 26 11:43:07 2020 +0200 build-sys: add $LDADD and libcommon to test_logindefs_LDADD Addresses: https://travis-ci.org/github/karelzak/util-linux/jobs/690915120 Signed-off-by: Karel Zak login-utils/Makemodule.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 2eb527722af2093038bf38d4554c086d20df79c9 Author: Sami Kerola Date: Mon May 25 08:30:24 2020 +0100 more: avoid libmagic telling an empty file is binary My earlier change that took libmagic in use to identify mime-type of an input file caused empty files to be marked binary. Before the change empty files were simply displayed as empty. This change will restore that behavior. Addresses: 09070e1a658e70ec203150e4fa5f486b32771858 Signed-off-by: Sami Kerola text-utils/more.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) commit 3b98a789995f6541e7eaff728cadc992e08e68d8 Author: Michael Kerrisk Date: Sat May 23 08:43:25 2020 +0200 Manual pages: unshare.1: fix examples, part 3 The time namespaces example had no explanatory text! Add some. Also, use the "uptime -p" option for output that is more compact (and perhaps more readable). Signed-off-by: Michael Kerrisk sys-utils/unshare.1 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit d83194e34b6b7590add2a7b9ec6eb04315124712 Author: Michael Kerrisk Date: Sat May 23 08:43:24 2020 +0200 Manual pages: unshare.1: fix examples, part 2 The explanation of the --kill-child example was quite confused and also the example shell demo was broken because of quoting issues. It is not the case that the *children* of 'program' would adopted by init, but rather that 'program' itself (which would be running as PID 1 inside the namespace and is a child of 'unshare') would be adopted by init. Rework the --kill-child example. Add a lot more explanation, and expand the example shell session to give the reader a much better picture of what is going on. Signed-off-by: Michael Kerrisk sys-utils/unshare.1 | 56 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 49 insertions(+), 7 deletions(-) commit 34eede25c5d6d62fe88aed6718d82a60ed45229c Author: Michael Kerrisk Date: Sat May 23 08:43:23 2020 +0200 Manual pages: unshare.1: fix examples, part 1 The examples section of this manual page is rather hard to grok. First, the arrangement of the text as follows makes life harder than needed for the reader: shell demo explanatory text It helps the reader if an example *begins* with an explanation of what is being demonstrated. Therefore, rearrange these examples as: explanatory text shell demo In addition, let's provide a bit more explanation for the first three examples and expand the second example (user namespaces) a little. Signed-off-by: Michael Kerrisk sys-utils/unshare.1 | 109 ++++++++++++++++++++++++++++++++++------------------ 1 file changed, 72 insertions(+), 37 deletions(-) commit a4b3be32725ca2d615017eaae848f8dc47827f58 Author: Michael Kerrisk Date: Sat May 23 08:43:22 2020 +0200 Manual pages: nsenter.1: note that 'file' can be a bind mount Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit afbe4f34556b93df5c74d38e956e695bc5ad2f48 Author: Michael Kerrisk Date: Sat May 23 08:43:21 2020 +0200 Manual pages: nsenter.1: clarify the intro discussion The intro paragraph talks about entering the namespace of other processes. That's not quite accurate, since nsenter can be used (via a bind mount) to enter a namespace that has no member processes. So rework NAME and the intro paragraph in DESCRIPTION to remove mention of "processes". Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) commit 143087e1e488e013212efe261a243f04df558bfd Author: Michael Kerrisk Date: Sat May 23 08:43:20 2020 +0200 Manual pages: unshare.1: improve intro paragraphs The intro paragraphs of this page are rather hard for a newcomer to grok. The name of the underlying system call (and consequently the name of the command) are "strange", but let's help the reader by naming more clearly what unshare(1) does: creating new namespaces. In addition, clarify and expand the details on making a namespace persistent using bind mounts. Signed-off-by: Michael Kerrisk sys-utils/unshare.1 | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) commit 6ff4b156476a06e6691b7b9c04ab134491eabd1f Author: Michael Kerrisk Date: Sat May 23 08:43:19 2020 +0200 Manual pages: nsenter.1, unshare.1: remove repeated references to clone(2) Back in commits f85b9777c2965671cd and 894efece9eb894, in the description of each namespace type, I added repeated cross references to clone(2). Drop these references. The Section 7 namespaces pages, which are already noted in the nsenter(1) and unshare(1) manual pages, provide much more relevant information. Furthermore, pointing the reader at clone(2) is perhaps a little misleading, since the system call underlying nsenter(1) is setns(2) and the system call underlying unshare(1) is unshare(2). Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 39 ++++++--------------------------------- sys-utils/unshare.1 | 45 ++++++++------------------------------------- 2 files changed, 14 insertions(+), 70 deletions(-) commit c89aadb72714c6018732a5fa868f21396aefefd9 Author: Michael Kerrisk Date: Sat May 23 08:43:18 2020 +0200 Manual pages: nsenter.1, unshare.1: add a reference to time_namespaces(7) Linux man-pages now has a page describing time namespaces. Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 2 ++ sys-utils/unshare.1 | 2 ++ 2 files changed, 4 insertions(+) commit 6b2388d363ae06582dada2ad0e4714d82ef7f307 Author: Michael Kerrisk Date: Sat May 23 08:43:17 2020 +0200 Manual pages: nsenter.1, unshare.1: update references to *_namespaces(7) pages Nowadays, the Linux man-pages project provides separate Section 7 manual pages for each type of namespace. Update the cross references in nsenter.1 and unshare.1 to reflect this. Signed-off-by: Michael Kerrisk sys-utils/nsenter.1 | 6 +++--- sys-utils/unshare.1 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) commit fee9910661b68dbd5dc0130e038c6263c9b42bcf Author: Karel Zak Date: Mon May 25 13:44:22 2020 +0200 build-sys: cleanup $vendordir use - use --with-vendordir= (rather than --enable) to be compatible with another package stuuf - add USE_VENDORDIR automake condition - add vendordir to global AM_CPPFLAGS to avoid binary specific cflags modifications Signed-off-by: Karel Zak Makefile.am | 11 +++++++++++ configure.ac | 16 +++++++++------- login-utils/Makemodule.am | 18 ------------------ login-utils/logindefs.c | 21 ++++++++++++--------- 4 files changed, 32 insertions(+), 34 deletions(-) commit d5e8818e03e581e2e4fab8942a13a4c6731f5da9 Merge: 9995da01e b6b7348ee Author: Karel Zak Date: Mon May 25 12:23:13 2020 +0200 Merge branch 'libeconf' of https://github.com/thkukuk/util-linux * 'libeconf' of https://github.com/thkukuk/util-linux: Adjust test output to pass test suite Add support for libeconf commit 9995da01e0a17f0a381cd691fb9c371cf4a6b4f4 Author: Karel Zak Date: Fri May 22 14:39:31 2020 +0200 fstrim: add --listed-in This new option works like --all but it allows to specify multiple files with filesystems to make fstrim configuration more portable between distributions. For example: fstrim --listed-in /etc/fstab:/proc/self/mountinfo forces fstrim to try fstab and if unsuccessful than try mountinfo. Addresses: https://github.com/karelzak/util-linux/issues/1019 Signed-off-by: Karel Zak bash-completion/fstrim | 1 + sys-utils/fstrim.8 | 4 ++ sys-utils/fstrim.c | 90 +++++++++++++++++++++++++++++++++++---------- sys-utils/fstrim.service.in | 3 +- 4 files changed, 76 insertions(+), 22 deletions(-) commit 9a293ca078d817323e5a46f78c5f7205ac614602 Author: Karel Zak Date: Fri May 22 12:02:25 2020 +0200 bash-completion: chmod -x Addresses: https://github.com/karelzak/util-linux/issues/1042 Signed-off-by: Karel Zak bash-completion/blkzone | 0 bash-completion/lslogins | 0 2 files changed, 0 insertions(+), 0 deletions(-) commit 9c6139a72017cecb9145e46102152cb4f456ada6 Author: Karel Zak Date: Mon May 11 13:35:21 2020 +0200 hwclock: improve use of settimeofday() portability The different libc implements TZ deprecation in settimeofday() library function in the different way. Let's hide these portability issues and use directly Linux syscall to set timezone. Addresses: https://github.com/karelzak/util-linux/issues/995 Signed-off-by: Karel Zak CC: J William Piggott sys-utils/hwclock.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) commit fd3a8fda9a20cd83dbd7481a2864f0947f39eb3e Author: Karel Zak Date: Fri May 22 11:30:27 2020 +0200 tests: sfdisk fill correctly gaps if default start requested References: 83fdb880b953164fec7cc603c4ece11cb78762db Addresses: https://github.com/karelzak/util-linux/issues/1044 Signed-off-by: Karel Zak tests/expected/sfdisk/dos-default-vs-gap1 | 24 ++++++++++++++++++++++++ tests/expected/sfdisk/dos-default-vs-gap2 | 30 ++++++++++++++++++++++++++++++ tests/ts/sfdisk/dos | 28 ++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) commit a2db2fd6602106da69529d308ecc809f4401fd7e Merge: 595e901b5 2c1229740 Author: Karel Zak Date: Fri May 22 11:06:27 2020 +0200 Merge branch 'patch-umount-autocomp' of https://github.com/emollier/util-linux * 'patch-umount-autocomp' of https://github.com/emollier/util-linux: bash-completion/umount: shell charaters escape commit 595e901b5c9d666917eebca759dff15f96d70aa9 Author: Chris Hofstaedtler Date: Thu May 21 15:42:30 2020 +0000 build-sys: Fix autogenerated URL in ChangeLog Fixes: b3a3b7eb1a15c5633ae890bec00fe5691b784d99 Signed-off-by: Chris Hofstaedtler Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8db74aacae9a182fa1337bec164166b6dbdfd2fc Author: Michael Kerrisk (man-pages) Date: Thu May 21 09:33:15 2020 +0200 Manual pages: rename RETURN VALUES to RETURN VALUE One page, libuuid/man/uuid_time.3, uses this section name that differs from the norm. Signed-off-by: Michael Kerrisk libuuid/man/uuid_time.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 380fd9aa95d7d59e50e37b5231d5a8daeab78d35 Author: Michael Kerrisk (man-pages) Date: Thu May 21 09:28:49 2020 +0200 Manual pages: order ENVIRONMENT / FILES / CONFORMING TO consistently There is value in ensuring that manual page sections use consistently named sections, as far as possible, and also that sections have a consistent order within manual pages. This is one of a series of patches to place manual page sections in a consistent order. In this patch, we ensure that the ENVIRONMENT, FILES, and CONFORMING TO sections are always placed toward the end of the page, just above NOTES. One page is not fixed by this patch: term-utils/agetty.8. This page is a mess of unusual section names, and probably requires an individual edit. Testing that no gross editing mistake (causing accidental loss or addition of text) was performed as follows: $ cat $(grep '\.SH' -l $(find . -name '*.[1-9]') |sort) | sort > a [Apply patch] $ cat $(grep '\.SH' -l $(find . -name '*.[1-9]') |sort) | sort > b $ diff a b $ echo $? 0 Signed-off-by: Michael Kerrisk disk-utils/fsck.8 | 4 ++-- lib/terminal-colors.d.5 | 8 ++++---- sys-utils/losetup.8 | 8 ++++---- sys-utils/mount.8 | 22 +++++++++++----------- sys-utils/umount.8 | 14 +++++++------- 5 files changed, 28 insertions(+), 28 deletions(-) commit 67e63c12635f0edc7600c4fd1ab44e03ae9552f1 Author: Michael Kerrisk (man-pages) Date: Thu May 21 09:28:32 2020 +0200 Manual pages: order NOTES / HISTORY / BUGS / EXAMPLE consistently There is value in ensuring that manual page sections use consistently named sections, as far as possible, and also that sections have a consistent order within manual pages. This is one of a series of patches to place manual page sections in a consistent order. In this patch, we ensure that the NOTES, HISTORY, BUGS, and EXAMPLE sections are always placed near the end of the page, just above AUTHORS, COPYRIGHT, SEE ALSO, and AVAILABILITY. One page is not fixed by this patch: term-utils/agetty.8. This page is a mess of unusual section names, and probably requires an individual edit. Testing that no gross editing mistake (causing accidental loss or addition of text) was performed as follows: $ cat $(grep '\.SH' -l $(find . -name '*.[1-9]') |sort) | sort > a [Apply patch] $ cat $(grep '\.SH' -l $(find . -name '*.[1-9]') |sort) | sort > b $ diff a b $ echo $? 0 Signed-off-by: Michael Kerrisk disk-utils/mkswap.8 | 8 +++---- disk-utils/raw.8 | 8 +++---- disk-utils/sfdisk.8 | 18 +++++++------- lib/terminal-colors.d.5 | 48 ++++++++++++++++++------------------- login-utils/last.1 | 8 +++---- login-utils/lslogins.1 | 6 ++--- misc-utils/cal.1 | 4 ++-- misc-utils/findmnt.8 | 22 ++++++++--------- misc-utils/kill.1 | 34 +++++++++++++------------- misc-utils/logger.1 | 8 +++---- misc-utils/look.1 | 14 +++++------ misc-utils/lsblk.8 | 26 ++++++++++---------- misc-utils/mcookie.1 | 4 ++-- misc-utils/rename.1 | 64 ++++++++++++++++++++++++------------------------- misc-utils/whereis.1 | 24 +++++++++---------- schedutils/ionice.1 | 6 ++--- sys-utils/flock.1 | 26 ++++++++++---------- sys-utils/fstab.5 | 8 +++---- sys-utils/ipcs.1 | 38 ++++++++++++++--------------- sys-utils/losetup.8 | 6 ++--- sys-utils/mount.8 | 8 +++---- sys-utils/prlimit.1 | 8 +++---- sys-utils/readprofile.8 | 50 +++++++++++++++++++------------------- sys-utils/renice.1 | 16 ++++++------- sys-utils/swapon.8 | 26 ++++++++++---------- sys-utils/tunelp.8 | 8 +++---- term-utils/script.1 | 38 ++++++++++++++--------------- text-utils/col.1 | 12 +++++----- text-utils/colcrt.1 | 20 ++++++++-------- text-utils/column.1 | 48 ++++++++++++++++++------------------- text-utils/hexdump.1 | 8 +++---- text-utils/ul.1 | 8 +++---- 32 files changed, 315 insertions(+), 315 deletions(-) commit ade04bb89cafe3d00feffceab75ce7354482ff7d Author: Michael Kerrisk (man-pages) Date: Thu May 21 09:28:21 2020 +0200 Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently There is value in ensuring that manual page sections use consistently named sections, as far as possible, and also that sections have a consistent order within manual pages. This is one of a series of patches to place manual page sections in a consistent order. In this patch, we ensure that the AUTHORS, COPYRIGHT, SEE ALSO, and AVAILABILITY sections are always placed at the end of the page. Testing that no gross editing mistake (causing accidental loss or addition of text) was performed as follows: $ cat $(grep '\.SH' -l $(find . -name '*.[1-9]') |sort) | sort > a [Apply patch] $ cat $(grep '\.SH' -l $(find . -name '*.[1-9]') |sort) | sort > b $ diff a b $ echo $? 0 Signed-off-by: Michael Kerrisk disk-utils/cfdisk.8 | 12 ++++++------ disk-utils/fdformat.8 | 4 ++-- disk-utils/fdisk.8 | 24 ++++++++++++------------ disk-utils/fsck.8 | 10 +++++----- disk-utils/partx.8 | 18 +++++++++--------- disk-utils/sfdisk.8 | 12 ++++++------ disk-utils/swaplabel.8 | 12 ++++++------ libuuid/man/uuid.3 | 8 ++++---- libuuid/man/uuid_clear.3 | 10 +++++----- libuuid/man/uuid_compare.3 | 10 +++++----- libuuid/man/uuid_copy.3 | 10 +++++----- libuuid/man/uuid_generate.3 | 8 ++++---- libuuid/man/uuid_is_null.3 | 10 +++++----- libuuid/man/uuid_parse.3 | 10 +++++----- libuuid/man/uuid_time.3 | 10 +++++----- libuuid/man/uuid_unparse.3 | 10 +++++----- login-utils/chfn.1 | 4 ++-- login-utils/chsh.1 | 4 ++-- login-utils/last.1 | 10 +++++----- login-utils/login.1 | 16 ++++++++-------- login-utils/lslogins.1 | 4 ++-- login-utils/newgrp.1 | 8 ++++---- login-utils/nologin.8 | 8 ++++---- login-utils/runuser.1 | 8 ++++---- login-utils/su.1 | 8 ++++---- login-utils/vipw.8 | 10 +++++----- misc-utils/blkid.8 | 4 ++-- misc-utils/findfs.8 | 6 +++--- misc-utils/hardlink.1 | 12 ++++++------ misc-utils/kill.1 | 16 ++++++++-------- misc-utils/logger.1 | 8 ++++---- misc-utils/look.1 | 6 +++--- misc-utils/lsblk.8 | 10 +++++----- misc-utils/namei.1 | 4 ++-- misc-utils/wipefs.8 | 6 +++--- schedutils/chrt.1 | 16 ++++++++-------- schedutils/taskset.1 | 12 ++++++------ sys-utils/ctrlaltdel.8 | 6 +++--- sys-utils/dmesg.1 | 6 +++--- sys-utils/fsfreeze.8 | 6 +++--- sys-utils/fstab.5 | 10 +++++----- sys-utils/ipcmk.1 | 6 +++--- sys-utils/ipcs.1 | 20 ++++++++++---------- sys-utils/ldattach.8 | 6 +++--- sys-utils/lsipc.1 | 20 ++++++++++---------- sys-utils/mount.8 | 36 ++++++++++++++++++------------------ sys-utils/mountpoint.1 | 6 +++--- sys-utils/nsenter.1 | 8 ++++---- sys-utils/prlimit.1 | 8 ++++---- sys-utils/renice.1 | 8 ++++---- sys-utils/setpriv.1 | 8 ++++---- sys-utils/setsid.1 | 4 ++-- sys-utils/swapon.8 | 18 +++++++++--------- sys-utils/switch_root.8 | 10 +++++----- sys-utils/umount.8 | 8 ++++---- sys-utils/unshare.1 | 10 +++++----- sys-utils/zramctl.8 | 8 ++++---- term-utils/mesg.1 | 10 +++++----- term-utils/script.1 | 14 +++++++------- term-utils/scriptlive.1 | 14 +++++++------- term-utils/scriptreplay.1 | 26 +++++++++++++------------- term-utils/setterm.1 | 4 ++-- term-utils/wall.1 | 8 ++++---- term-utils/write.1 | 8 ++++---- text-utils/col.1 | 8 ++++---- text-utils/colcrt.1 | 12 ++++++------ text-utils/colrm.1 | 8 ++++---- text-utils/column.1 | 4 ++-- text-utils/more.1 | 18 +++++++++--------- text-utils/pg.1 | 16 ++++++++-------- text-utils/ul.1 | 14 +++++++------- 71 files changed, 367 insertions(+), 367 deletions(-) commit 88aefd4c461713977f2f6f86c4a0209f5925e5b6 Author: Karel Zak Date: Fri May 22 10:22:12 2020 +0200 agetty: ignore ^C Danc86 wrote: With agetty 2.32.1 and earlier, ^C at the login prompt is ignored. I noticed when upgrading to agetty 2.34, typing ^C now causes agetty to stop responding for 10 seconds and then it dies (and gets restarted by system and a new login prompt is printed). It logs this message: agetty[46048]: ttyS0: invalid character 0x3 in login name Previously the !isprint(ascval) condition would have caused control characters like ^C (\x03) to be discarded, whereas now it falls through to trying to decode it as part of a UTF-8 sequence, and then fails. Fixes: http://github.com/karelzak/util-linux/commit/5de9751997cf490088f62f41fd92be57cf7ceea4 Addresses: https://github.com/karelzak/util-linux/issues/1046 Signed-off-by: Karel Zak term-utils/agetty.c | 3 +++ 1 file changed, 3 insertions(+) commit 2c12297400859d012b101c049e328eb19f705fe8 Author: Etienne Mollier Date: Thu May 21 17:20:18 2020 +0200 bash-completion/umount: shell charaters escape This patch brings support for automatic dangerous shell characters escape in umount autocompletion. Due to the very peculiar way for bash to handle autocompletion routines, proper escaping of the shell sequences only worked properly inside a function: _umount_point_list, which will add to the user's namespace at the next umount attempt of autocompleting mount point. It also translates calls of gensub to the portable alternatives sub and gsub, in order to allow the use of various awk implementations (mawk, Gnu, Busybox, etc), and as such kind of undoes a recent change to enforce the use of Gnu awk. The whole story landed into the Debian BTS initially: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933934 PS: It's been a few months since the patch is available, sorry for the delay; I only got myself a Github account quite recently... Signed-off-by: Étienne Mollier bash-completion/umount | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-) commit 83fdb880b953164fec7cc603c4ece11cb78762db Author: Karel Zak Date: Thu May 21 15:37:59 2020 +0200 libfdisk: (dos) fix default partition start The current code implements the default start as first free space, but it does not check if the space is large enough. Addresses: https://github.com/karelzak/util-linux/issues/1044 Signed-off-by: Karel Zak libfdisk/src/alignment.c | 6 ++-- libfdisk/src/dos.c | 81 +++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 79 insertions(+), 8 deletions(-) commit 3dde0d076d903af75b85c0ee465c56fdda6401d9 Author: Gabriel de Perthuis Date: Wed May 20 19:55:17 2020 +0200 Add to the list of pseudo-filesystem types Useful commands for maintaining the list: grep -w ^nodev /proc/filesystems |sort In a Linux source checkout: git grep -wl file_system_type '*.c' |xargs grep -L FS_REQUIRES_DEV |xargs grep -wA12 file_system_type |grep -F '.name' |uniq |column -t libmount/src/utils.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit a87f49f6621885ae4e46abf0f510ea21ff90e6c2 Author: Michael Kerrisk (man-pages) Date: Tue May 19 14:54:07 2020 +0200 Manual pages: use the term "exit status" The manual pages currently use a multitude of terms--"exit code", "error code", "return code", "exit code", and so on--when what is always meant is "exit status" (the POSIX term). This patch fixes as many of these erroneous terms as I could find. Signed-off-by: Michael Kerrisk disk-utils/fsck.8 | 8 ++++---- disk-utils/fsck.minix.8 | 6 +++--- disk-utils/mkfs.8 | 2 +- disk-utils/mkfs.bfs.8 | 2 +- disk-utils/mkfs.cramfs.8 | 2 +- disk-utils/mkfs.minix.8 | 2 +- login-utils/nologin.8 | 2 +- misc-utils/blkid.8 | 12 ++++++------ misc-utils/kill.1 | 2 +- misc-utils/logger.1 | 2 +- sys-utils/chcpu.8 | 2 +- sys-utils/chmem.8 | 2 +- sys-utils/fallocate.1 | 2 +- sys-utils/flock.1 | 10 +++++----- sys-utils/mount.8 | 2 +- sys-utils/setpriv.1 | 2 +- sys-utils/setsid.1 | 4 ++-- term-utils/script.1 | 4 ++-- 18 files changed, 34 insertions(+), 34 deletions(-) commit 7e765c93dc931950f9635bae78603395f742c2f0 Author: Michael Kerrisk (man-pages) Date: Tue May 19 14:53:21 2020 +0200 Manual pages: Standardize on EXIT STATUS as section title There is quite some value (in terms of readability and user expectations) if consistent names are used for the sections within manual pages. This patch is one of a series to bring about this consistency. Currently we have EXIT STATUS (18), EXIT CODES (3), RETURN CODE (7), RETURN CODES (1), or RETURN VALUE (4 instances in pages that document commands, rather than functions). Let's standardize on the EXIT STATUS (which is also what is suggested in man-pages(7), and is the POSIX terminology). A subsequent patch will clean up corresponding miswordings in manual page text. Signed-off-by: Michael Kerrisk disk-utils/fsck.minix.8 | 2 +- disk-utils/mkfs.bfs.8 | 2 +- disk-utils/mkfs.minix.8 | 2 +- misc-utils/blkid.8 | 2 +- misc-utils/kill.1 | 2 +- misc-utils/logger.1 | 2 +- misc-utils/lsblk.8 | 2 +- sys-utils/chcpu.8 | 2 +- sys-utils/chmem.8 | 2 +- sys-utils/fstrim.8 | 2 +- sys-utils/losetup.8 | 2 +- sys-utils/mount.8 | 2 +- sys-utils/switch_root.8 | 2 +- sys-utils/zramctl.8 | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) commit 4259cff22eb68cae0ebf7f6d33ee5cbb21d6c5fe Author: Michael Kerrisk (man-pages) Date: Tue May 19 14:52:51 2020 +0200 Manual pages: Standardize on ENVIRONMENT as section title There is quite some value (in terms of readability and user expectations) if consistent names are used for the sections within manual pages. This patch is one of a series to bring about this consistency. But, let's make sure that the section is consistently titled across pages. Currently we have ENVIRONMENT (many) or ENVIRONMENT VARIABLES (3). Let's standardize on ENVIRONMENT (which is also what is suggested in man-pages(7)). Signed-off-by: Michael Kerrisk disk-utils/fsck.8 | 2 +- login-utils/sulogin.8 | 2 +- text-utils/pg.1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 8715ec4d3a61a118d4f22b013cf4c612cd108956 Author: Michael Kerrisk (man-pages) Date: Tue May 19 14:52:34 2020 +0200 Manual pages: Standardize on OPTIONS as section title There is quite some value (in terms of readability and user expectations) if consistent names are used for the sections within manual pages. This patch is one of a series to bring about this consistency. Currently we have OPTIONS (many) or OPTION (1 page, setpriv(1), which actually supports multiple options!). Let's standardize on OPTIONS (which is also what is suggested in man-pages(7)). Signed-off-by: Michael Kerrisk sys-utils/setpriv.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ef293e185eb026726d69448be790f089a3b215ba Author: Michael Kerrisk (man-pages) Date: Tue May 19 14:52:20 2020 +0200 Manual pages: Standardize on CONFORMING TO as section title There is quite some value (in terms of readability and user expectations) if consistent names are used for the sections within manual pages. This patch is one of a series to bring about this consistency. Currently we have STANDARDS (3) or CONFORMING TO (6). Let's standardize on the latter (which is also what is suggested in man-pages(7)). Signed-off-by: Michael Kerrisk misc-utils/logger.1 | 2 +- text-utils/col.1 | 2 +- text-utils/hexdump.1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit bc281b099187424e453b258957a552e8dc7952ff Author: Michael Kerrisk (man-pages) Date: Tue May 19 14:51:48 2020 +0200 Manual pages: Standardize on EXAMPLE as section title There is quite some value (in terms of readability and user expectations) if consistent names are used for the sections within manual pages. This patch is one of a series to bring about this consistency. Currently we have EXAMPLE (10) or EXAMPLES (23). Let's standardize on the EXAMPLE (which is also what is suggested in man-pages(7)) and used consistently across a large number of pages in the Linux man-pages project. (I realize the choice to go EXAMPLE, rather than EXAMPLES, may be debatable. If necessary, I'd write a patch that instead goes the other way, but I'd prefer to follow man-pages(7).) Signed-off-by: Michael Kerrisk disk-utils/partx.8 | 2 +- lib/terminal-colors.d.5 | 2 +- misc-utils/findmnt.8 | 2 +- misc-utils/logger.1 | 2 +- misc-utils/rename.1 | 2 +- misc-utils/uuidgen.1 | 2 +- misc-utils/wipefs.8 | 4 ++-- schedutils/ionice.1 | 2 +- sys-utils/chmem.8 | 2 +- sys-utils/flock.1 | 2 +- sys-utils/pivot_root.8 | 2 +- sys-utils/prlimit.1 | 2 +- sys-utils/readprofile.8 | 2 +- sys-utils/renice.1 | 2 +- sys-utils/rfkill.8 | 2 +- sys-utils/setarch.8 | 2 +- sys-utils/unshare.1 | 4 ++-- term-utils/agetty.8 | 2 +- text-utils/colcrt.1 | 2 +- text-utils/column.1 | 2 +- text-utils/hexdump.1 | 2 +- 21 files changed, 23 insertions(+), 23 deletions(-) commit a8d0d330cf15ffe79307cd8a1689b19e7565f92e Author: Michael Kerrisk (man-pages) Date: Tue May 19 14:51:28 2020 +0200 Manual pages: Standardize on AUTHORS as section title There is quite some value (in terms of readability and user expectations) if consistent names are used for the sections within manual pages. This patch is one of a series to bring about this consistency. In the Linux man-pages project, I long ago did away with the AUTHOR(S) section, but I realize some projects like to keep this. But, let's make sure that the section is consistently titled across pages. Currently we have AUTHOR (47) or AUTHORS (41). Let's standardize on the latter (which is also what is suggested in man-pages(7)). Signed-off-by: Michael Kerrisk disk-utils/blockdev.8 | 2 +- disk-utils/cfdisk.8 | 2 +- disk-utils/fdformat.8 | 2 +- disk-utils/raw.8 | 2 +- disk-utils/sfdisk.8 | 2 +- disk-utils/swaplabel.8 | 2 +- libblkid/libblkid.3 | 2 +- libuuid/man/uuid.3 | 2 +- libuuid/man/uuid_clear.3 | 2 +- libuuid/man/uuid_compare.3 | 2 +- libuuid/man/uuid_copy.3 | 2 +- libuuid/man/uuid_generate.3 | 2 +- libuuid/man/uuid_is_null.3 | 2 +- libuuid/man/uuid_parse.3 | 2 +- libuuid/man/uuid_time.3 | 2 +- libuuid/man/uuid_unparse.3 | 2 +- login-utils/chfn.1 | 2 +- login-utils/chsh.1 | 2 +- login-utils/last.1 | 2 +- login-utils/login.1 | 2 +- login-utils/newgrp.1 | 2 +- login-utils/sulogin.8 | 2 +- login-utils/utmpdump.1 | 2 +- misc-utils/blkid.8 | 2 +- misc-utils/findfs.8 | 2 +- misc-utils/hardlink.1 | 2 +- misc-utils/namei.1 | 2 +- misc-utils/uuidgen.1 | 2 +- misc-utils/wipefs.8 | 2 +- schedutils/taskset.1 | 2 +- sys-utils/blkdiscard.8 | 2 +- sys-utils/chcpu.8 | 2 +- sys-utils/ctrlaltdel.8 | 2 +- sys-utils/flock.1 | 2 +- sys-utils/fsfreeze.8 | 2 +- sys-utils/fstrim.8 | 2 +- sys-utils/ipcmk.1 | 2 +- sys-utils/ipcs.1 | 2 +- sys-utils/ldattach.8 | 2 +- sys-utils/lscpu.1 | 2 +- sys-utils/lsmem.1 | 2 +- sys-utils/mountpoint.1 | 2 +- sys-utils/setarch.8 | 2 +- sys-utils/setpriv.1 | 2 +- sys-utils/setsid.1 | 2 +- term-utils/scriptlive.1 | 2 +- term-utils/scriptreplay.1 | 2 +- 47 files changed, 47 insertions(+), 47 deletions(-) commit 5a82980632a855bdb840316323572f703461ca75 Author: Michael Kerrisk (man-pages) Date: Tue May 19 10:31:19 2020 +0200 docs: (man) remove double quotes (") in .SH lines Using double quotes in .SH lines containing multiple words is unneeded, and in any case is not consistently done in the util-linux manual pages, where double quotes are used in only around half of the cases. (This usage was long ago elminated in the man-pages project, with no ill effects reported to date.) Remove these quotes, so that .SH lines are more uniform, in preparation for some (more easily) scripted doiscovery of consistency problems in (and possibly global fixes to) the manual pages. Other than stripping the double quotes, this patch makes no changes to the content of the manual pages. Signed-off-by: Michael Kerrisk disk-utils/cfdisk.8 | 2 +- disk-utils/fdformat.8 | 2 +- disk-utils/fdisk.8 | 4 ++-- disk-utils/fsck.cramfs.8 | 4 ++-- disk-utils/fsck.minix.8 | 4 ++-- disk-utils/isosize.8 | 2 +- disk-utils/mkfs.bfs.8 | 4 ++-- disk-utils/mkfs.cramfs.8 | 4 ++-- disk-utils/mkfs.minix.8 | 4 ++-- disk-utils/mkswap.8 | 2 +- disk-utils/sfdisk.8 | 8 ++++---- lib/terminal-colors.d.5 | 6 +++--- libblkid/libblkid.3 | 2 +- libuuid/man/uuid.3 | 4 ++-- libuuid/man/uuid_clear.3 | 2 +- libuuid/man/uuid_compare.3 | 2 +- libuuid/man/uuid_copy.3 | 2 +- libuuid/man/uuid_generate.3 | 4 ++-- libuuid/man/uuid_is_null.3 | 2 +- libuuid/man/uuid_parse.3 | 4 ++-- libuuid/man/uuid_time.3 | 4 ++-- libuuid/man/uuid_unparse.3 | 4 ++-- login-utils/chfn.1 | 4 ++-- login-utils/chsh.1 | 6 +++--- login-utils/last.1 | 2 +- login-utils/login.1 | 2 +- login-utils/newgrp.1 | 2 +- login-utils/runuser.1 | 2 +- login-utils/su.1 | 2 +- login-utils/utmpdump.1 | 2 +- misc-utils/blkid.8 | 2 +- misc-utils/fincore.1 | 2 +- misc-utils/findfs.8 | 2 +- misc-utils/hardlink.1 | 12 ++++++------ misc-utils/look.1 | 2 +- misc-utils/lslocks.8 | 2 +- misc-utils/mcookie.1 | 2 +- misc-utils/namei.1 | 2 +- misc-utils/rename.1 | 4 ++-- misc-utils/uuidgen.1 | 2 +- misc-utils/uuidparse.1 | 2 +- misc-utils/whereis.1 | 2 +- schedutils/chrt.1 | 2 +- sys-utils/adjtime_config.5 | 2 +- sys-utils/chcpu.8 | 2 +- sys-utils/ctrlaltdel.8 | 2 +- sys-utils/flock.1 | 4 ++-- sys-utils/fstab.5 | 2 +- sys-utils/ipcmk.1 | 14 +++++++------- sys-utils/ldattach.8 | 2 +- sys-utils/lscpu.1 | 2 +- sys-utils/lsns.8 | 2 +- sys-utils/mount.8 | 10 +++++----- sys-utils/pivot_root.8 | 2 +- sys-utils/prlimit.1 | 2 +- sys-utils/rfkill.8 | 2 +- sys-utils/setarch.8 | 2 +- sys-utils/setsid.1 | 2 +- sys-utils/switch_root.8 | 2 +- sys-utils/umount.8 | 6 +++--- term-utils/mesg.1 | 2 +- term-utils/scriptlive.1 | 14 +++++++------- term-utils/scriptreplay.1 | 14 +++++++------- term-utils/setterm.1 | 2 +- term-utils/write.1 | 2 +- text-utils/column.1 | 2 +- text-utils/hexdump.1 | 2 +- text-utils/line.1 | 2 +- text-utils/pg.1 | 4 ++-- 69 files changed, 120 insertions(+), 120 deletions(-) commit e327a7acd60c736c9628264bea844ddac1802a4a Author: Karel Zak Date: Tue May 19 10:55:20 2020 +0200 agetty: extend --issue-file to support multiple paths The current default behavior is to print the first issue file/dir and all alternative locations are used as a backup solution only. If something is found than the rest is ignored. The --issue-file allow to overwrite this default behavior, but currently it supports only one file/dir. This patch extend --issue-file to support ':' separated list of paths and *all* the files (if exist and no empty) in the list are printed. agetty --issue-file=/etc/issue:/etc/issue.d:/run/issue:/run/issue.d:/usr/lib/issue:/usr/lib/issue.d Addresses: https://github.com/karelzak/util-linux/issues/1041 Signed-off-by: Karel Zak login-utils/login.1 | 2 +- term-utils/agetty.8 | 15 ++++++++------- term-utils/agetty.c | 39 ++++++++++++++++++++++++++------------- 3 files changed, 35 insertions(+), 21 deletions(-) commit 10016339916c27a4f5ba7d3e3f07644107bf182f Author: Karel Zak Date: Mon May 18 14:13:33 2020 +0200 libfdisk: (dos) be more robust about max number of partitions It seems the previous MAXIMUM_PARTS bug fix has not been generic enough. Let's use the check for all dos_add_partition(). This patch also remove libfdisk attempt to be smart and search for unused primary partition. If you need more than 60 partition in MBR than you have a different problem that cannot be solved by libfdisk ... References: http://github.com/karelzak/util-linux/commit/b80fb30a5b79ce2cc8c7486e1435ec061aa79e2f Addresses: https://github.com/karelzak/util-linux/issues/1022 Signed-off-by: Karel Zak libfdisk/src/dos.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) commit 191836bec292547393e8dd5e8d5148e8dbfa210b Author: Karel Zak Date: Mon May 18 13:34:55 2020 +0200 lib/strutils: fix parse_size() for large numbers For example ./test_strutils --size '1.0000000000000000000000000000018000000000000000010M' ./test_strutils --size '1.18446744073709551615M' ends with infinite loop due to frac_div variable overflow. Addresses: https://github.com/karelzak/util-linux/issues/1023 Signed-off-by: Karel Zak lib/strutils.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) commit 9cdd10e82a0197f3545c6877e6f116a375048542 Merge: 5fdb08669 26f98e734 Author: Karel Zak Date: Mon May 18 11:21:22 2020 +0200 Merge branch 'cal_column' of https://github.com/utix/util-linux * 'cal_column' of https://github.com/utix/util-linux: cal: Remove todo cal: Add test, all are checked against ncal cal: Update man page cal: Add column mode cal: Add helper functions for left align cal: Add weekdays into cal_control commit 5fdb0866964f0911224ea37b6e42d7ff763138b8 Author: Yannick Le Pennec Date: Sun May 17 23:13:22 2020 +0800 docs: Fix dead references to kernel documentation Most date back to reorganisation of the Documentation/ tree in 2016, new paths based on v5.7-rc5: fdisk.8: Documentation/{,admin-guide/}devices.txt eject.c: Documentation/{,userspace-api/}ioctl/cdrom.rst mount.8: Documentation/filesystems/adfs.{txt,rst} rfkill.8: Documentation/{rfkill.txt,driver-api/rfkill.rst} tunelp.8: Documentation/{parport.txt,admin-guide/parport.rst} zramctl.8: Documentation/{blockdev/zram.txt,admin-guide/blockdev/zram.rst} Signed-off-by: Yannick Le Pennec disk-utils/fdisk.8 | 2 +- sys-utils/eject.c | 2 +- sys-utils/mount.8 | 2 +- sys-utils/rfkill.8 | 2 +- sys-utils/tunelp.8 | 2 +- sys-utils/zramctl.8 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) commit ae4ab16031315b95d170012d2f744e94599bf3a6 Author: Michael Kerrisk Date: Sat May 16 09:45:11 2020 +0200 ipcs.1: ipcs no longer needs read permission on IPC resources With changes starting around util-linux commit 058e81540fbb0d2b78 that switched from using IPC_STAT to parsing /proc/sysvipc/*, ipcs now shows all IPC objects rather than just the objects for which the user has read permission. Update the page to reflect this fact, and also add a NOTES section describing the historical and fallback behavior where /proc is not available. Signed-off-by: Michael Kerrisk sys-utils/ipcs.1 | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) commit c5178f27968da09f206722cbcf73c1d4d534005f Author: Bjarni Ingi Gislason Date: Thu May 14 23:51:29 2020 +0000 docs: Some minor fixes in some manuals Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z [ "test-groff" is a developmental version of "groff" ] Input file is ././misc-utils/kill.1 <./misc-utils/kill.1>:173 (macro BR): only 1 argument, but more are expected Input file is ././misc-utils/lsblk.8 troff: backtrace: '/home/bg/git/groff/build/s-tmac/an-old.tmac':478: macro 'BR' troff: backtrace: file '<./misc-utils/lsblk.8>':122 troff: <./misc-utils/lsblk.8>:122: warning: trailing space Input file is ././sys-utils/mount.8 an-old.tmac: <./sys-utils/mount.8>:2427 (.RE): warning: extra .RE or .RS is missing before it; "an-RS-open" is 0. Input file is ././sys-utils/unshare.1 <./sys-utils/unshare.1>:176 (macro BR): only 1 argument, but more are expected <./sys-utils/unshare.1>:181 (macro BR): only 1 argument, but more are expected <./sys-utils/unshare.1>:240 (macro BR): only 1 argument, but more are expected <./sys-utils/unshare.1>:246 (macro BR): only 1 argument, but more are expected Input file is ././term-utils/agetty.8 troff: backtrace: file '<./term-utils/agetty.8>':130 troff: <./term-utils/agetty.8>:130: warning: trailing space Input file is ././text-utils/more.1 troff: backtrace: file '<./text-utils/more.1>':91 troff: <./text-utils/more.1>:91: warning: macro 'b' not defined The output from nroff and troff is unchanged, except for the word "number" in text-utils/more.1, that was missing. Signed-off-by: Bjarni Ingi Gislason misc-utils/kill.1 | 2 +- misc-utils/lsblk.8 | 2 +- sys-utils/mount.8 | 1 - sys-utils/unshare.1 | 8 ++++---- term-utils/agetty.8 | 2 +- text-utils/more.1 | 4 ++-- 6 files changed, 9 insertions(+), 10 deletions(-) commit 366e163961add54f4822541f3d660b4e0578b207 Author: Gaël PORTAY Date: Fri May 15 08:52:06 2020 -0400 sfdisk: (man) fix typo disk-utils/sfdisk.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7a2602f629fef10be7254ad8fb58c52fc373ec29 Author: Johannes Thumshirn Date: Fri May 15 17:41:33 2020 +0900 blkzone: deny destructive ioctls on busy blockdev If a user submits a zone management ioctl from user-space, like a zone reset and a file-system (like zonefs or f2fs) is mounted on the zoned block device, the zone will get reset and the file-system's cached value of the zone's write-pointer becomes invalid. Subsequent writes to this zone from the file-system will result in unaligned writes and the drive will error out. Open the block device file in exclusive mode for submitting these ioctls. If a file-system is mounted the kernel will return -EBUSY and we can't continue issuing the ioctl. [kzak@redhat.com: - remove unnecessary error message] Reported-by: Coly Li Cc: Damien Le Moal Signed-off-by: Johannes Thumshirn Signed-off-by: Karel Zak sys-utils/blkzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6390860d71b63ce569f419d886b98a89e106de99 Author: Karel Zak Date: Fri May 15 12:09:43 2020 +0200 libmount: (umount) fix FD leak References: http://github.com/karelzak/util-linux/commit/7065cc0e5312cafc5ae3e4c342f78f264300fb5f Signed-off-by: Karel Zak libmount/src/context_umount.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) commit c8487d854ba5cf5bfcae78d8e5af5587e7622351 Author: Ritika Srivastava Date: Wed May 13 15:06:10 2020 -0700 lsblk: Ignore hidden devices Lsblk throws the following error for nvmeNcXnY devices. lsblk: nvme1c1n1: unknown device name This is because nvmeNcXnY devices are hidden and do not have the file /sys/block//dev. Following patch was added https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=d51f05bfecb299a830897106460bf395be440c0a Which made lsblk read from /sys/block//device/dev which do exist for nvmeNcXnY devices. After the above patch, the unknown error goes away. However, another error is encountered in the very next step. nvme1c1n1: failed to initialize sysfs handler This is because lsblk looks for /sys/dev/block/242:1 (nvmeNcXnY major:minor) pathname which usually exists for other block devices but not for the nvmeNcXnY devices as they are hidden. Below patch does not even print this error for hidden devices and exits silently. [kzak@redhat.com: - add prefix to make sysfs_devname_is_hidden() usable for /sys dumps - use the function in initialize_device() more early] Signed-off-by: Ritika Srivastava Signed-off-by: Karel Zak include/sysfs.h | 3 +++ lib/sysfs.c | 29 +++++++++++++++++++++++++++++ misc-utils/lsblk.c | 5 +++++ 3 files changed, 37 insertions(+) commit 72b155ea6e25730d7c01d345cc2df269c2c47635 Author: Karel Zak Date: Tue May 12 15:37:39 2020 +0200 login: keep default MOTD_FILE= backwardly compatible It seems that directories like /etc/motd.d are already used by PAM or by another stuff. Let's keep it in admin/distro hands and do not change the current default. Signed-off-by: Karel Zak include/pathnames.h | 2 +- login-utils/login.1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 9789d21a96be47fdd9b2c330b640e23254a22194 Author: Karel Zak Date: Tue May 12 15:21:21 2020 +0200 login: add MOTD_FIRSTONLY= This login.defs option allow to configure login to be more compatible with pam_motd. Addresses: https://github.com/karelzak/util-linux/issues/1034 Signed-off-by: Karel Zak login-utils/login.1 | 19 +++++++++++++++++++ login-utils/login.c | 17 ++++++++++++----- 2 files changed, 31 insertions(+), 5 deletions(-) commit 5a528e2c6ff9735266fc2607c359e925b074bf2c Author: Karel Zak Date: Tue May 12 14:20:54 2020 +0200 login: add support for directories in MOTD_FILE= The current standard is to use directories to make it easy for distributions to share resources. This patch also add /etc/motd.d and /run/motd.d to the default MOTD_FILE=. Addresses: https://github.com/karelzak/util-linux/issues/10341 Signed-off-by: Karel Zak include/pathnames.h | 2 +- login-utils/login.1 | 13 ++++++-- login-utils/login.c | 96 ++++++++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 92 insertions(+), 19 deletions(-) commit 1f861935a7292acbecc4d1618657e740e46175d9 Author: Sami Kerola Date: Wed May 6 20:19:23 2020 +0100 more: make page and arrow up/down to update view Aim was to introduce page and arrow up/down keys to more(1), but that also required merging colon_command() and more_key_command() functions. The more_key_commands enum is pointless from computers point of view. The command identification performed in read_command() inline with more_key_command() execution -- but that would be hard for humans, and source code ought to serve both parties. Reference: https://github.com/karelzak/util-linux/pull/1003 Signed-off-by: Sami Kerola text-utils/more.c | 379 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 238 insertions(+), 141 deletions(-) commit 09070e1a658e70ec203150e4fa5f486b32771858 Author: Sami Kerola Date: Wed May 6 20:19:22 2020 +0100 more: use libmagic to identify binary files As the old commend said: 'This code would best be shared with the file(1) program or, perhaps, more should not try to be so smart'. Now at configure time one can choose whether more(1) is sharing code with file(1), or not. Addresses: http://bugs.debian.org/139205 Signed-off-by: Sami Kerola configure.ac | 12 +++++++++++ text-utils/Makemodule.am | 2 +- text-utils/more.c | 52 ++++++++++++++++++++++++++++++------------------ 3 files changed, 46 insertions(+), 20 deletions(-) commit 9bf751716245359d58b29c1595e9bcaad8abda3c Author: Wolfram Sang Date: Mon May 11 18:10:48 2020 +0200 sfdisk: avoid unneeded empty lines with '--list-free' Similar to commit 4a52959d1 ("(s)fdisk: avoid unneeded empty lines with '--list'"), there were also two superfluous empty lines when /dev/sr0 didn't contain a medium. Refactor the '--list-free' code the same way as in the mentioned commit. Signed-off-by: Wolfram Sang disk-utils/fdisk-list.c | 14 ++++++++------ disk-utils/fdisk-list.h | 2 +- disk-utils/sfdisk.c | 10 +++------- 3 files changed, 12 insertions(+), 14 deletions(-) commit f821f63fceca1d8480da3c724f7d3b383e6d7bd1 Author: Karel Zak Date: Tue May 12 09:16:49 2020 +0200 libblkid: fix fstatat() use in blkid__scan_dir() Addresses: https://github.com/karelzak/util-linux/issues/1037 References: http://github.com/karelzak/util-linux/commit/2208b3ccb298be2675cf005b761b1668f8cd576f Signed-off-by: Karel Zak libblkid/src/devno.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 26f98e734e45c3da46cdbe6eed544bf2e08874ea Author: Aurelien LAJOIE Date: Thu May 7 22:14:34 2020 +0200 cal: Remove todo Documentation/TODO | 2 -- 1 file changed, 2 deletions(-) commit f8d76efe97f15f496c472b5ad545209e092d02ef Author: Aurelien LAJOIE Date: Wed May 6 22:53:29 2020 +0200 cal: Add test, all are checked against ncal ncal -M 09 2006 September 2006 Mo 4 11 18 25 Tu 5 12 19 26 We 6 13 20 27 Th 7 14 21 28 Fr 1 8 15 22 29 Sa 2 9 16 23 30 Su 3 10 17 24 cal -mv 09 2006 September 2006 Mo 4 11 18 25 Tu 5 12 19 26 We 6 13 20 27 Th 7 14 21 28 Fr 1 8 15 22 29 Sa 2 9 16 23 30 Su 3 10 17 24 For example `vertical-3sjv` `ncal -wjA2 08 2006` The differences are 3 letters days when julian calendar with cal Trailing spaces tests/expected/cal/vertical-1mjv | 9 + tests/expected/cal/vertical-1mjwv | 10 + tests/expected/cal/vertical-1mv | 9 + tests/expected/cal/vertical-1mwv | 10 + tests/expected/cal/vertical-1sjv | 9 + tests/expected/cal/vertical-1sjwv | 10 + tests/expected/cal/vertical-1sv | 9 + tests/expected/cal/vertical-1swv | 10 + tests/expected/cal/vertical-3mjv | 9 + tests/expected/cal/vertical-3mjwv | 10 + tests/expected/cal/vertical-3mv | 9 + tests/expected/cal/vertical-3mwv | 10 + tests/expected/cal/vertical-3sjv | 9 + tests/expected/cal/vertical-3sjwv | 10 + tests/expected/cal/vertical-3sv | 9 + tests/expected/cal/vertical-3swv | 10 + tests/expected/cal/vertical-vSn201 | 603 +++++++++++++++++++++++++++++++++++++ tests/expected/cal/vertical-vSn21 | 63 ++++ tests/expected/cal/vertical-vSn3 | 9 + tests/expected/cal/vertical-vSn51 | 153 ++++++++++ tests/ts/cal/vertical | 72 +++++ 21 files changed, 1052 insertions(+) commit 29d3a8f3463a8810118433c67c08850298198395 Author: Aurelien LAJOIE Date: Mon May 11 17:41:33 2020 +0200 cal: Update man page misc-utils/cal.1 | 3 +++ 1 file changed, 3 insertions(+) commit 27fafcf8a8e4c0360e772ec768a675cd11de8ca5 Author: Aurelien LAJOIE Date: Mon Apr 13 22:15:30 2020 +0200 cal: Add column mode Add`-v` `--vertical` option to get a vertical output Add it into relative bash-completion For example `cal -yv` 2020 January February March Su 5 12 19 26 2 9 16 23 1 8 15 22 29 Mo 6 13 20 27 3 10 17 24 2 9 16 23 30 Tu 7 14 21 28 4 11 18 25 3 10 17 24 31 We 1 8 15 22 29 5 12 19 26 4 11 18 25 Th 2 9 16 23 30 6 13 20 27 5 12 19 26 Fr 3 10 17 24 31 7 14 21 28 6 13 20 27 Sa 4 11 18 25 1 8 15 22 29 7 14 21 28 April May June Su 5 12 19 26 3 10 17 24 31 7 14 21 28 Mo 6 13 20 27 4 11 18 25 1 8 15 22 29 Tu 7 14 21 28 5 12 19 26 2 9 16 23 30 We 1 8 15 22 29 6 13 20 27 3 10 17 24 Th 2 9 16 23 30 7 14 21 28 4 11 18 25 Fr 3 10 17 24 1 8 15 22 29 5 12 19 26 Sa 4 11 18 25 2 9 16 23 30 6 13 20 27 July August September Su 5 12 19 26 2 9 16 23 30 6 13 20 27 Mo 6 13 20 27 3 10 17 24 31 7 14 21 28 Tu 7 14 21 28 4 11 18 25 1 8 15 22 29 We 1 8 15 22 29 5 12 19 26 2 9 16 23 30 Th 2 9 16 23 30 6 13 20 27 3 10 17 24 Fr 3 10 17 24 31 7 14 21 28 4 11 18 25 Sa 4 11 18 25 1 8 15 22 29 5 12 19 26 October November December Su 4 11 18 25 1 8 15 22 29 6 13 20 27 Mo 5 12 19 26 2 9 16 23 30 7 14 21 28 Tu 6 13 20 27 3 10 17 24 1 8 15 22 29 We 7 14 21 28 4 11 18 25 2 9 16 23 30 Th 1 8 15 22 29 5 12 19 26 3 10 17 24 31 Fr 2 9 16 23 30 6 13 20 27 4 11 18 25 Sa 3 10 17 24 31 7 14 21 28 5 12 19 26 bash-completion/cal | 1 + misc-utils/cal.c | 146 +++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 141 insertions(+), 6 deletions(-) commit 4de7efb505bc2c05bf8230e428f9d972249af9b6 Author: Aurelien LAJOIE Date: Mon Apr 13 21:55:24 2020 +0200 cal: Add helper functions for left align misc-utils/cal.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit 0c440bd7a275b306c47281102a83ef166f4874d6 Author: Aurelien LAJOIE Date: Mon Apr 13 22:00:08 2020 +0200 cal: Add weekdays into cal_control misc-utils/cal.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) commit 4a52959d18ecd57a90680961fc1e3c57c34bf145 Author: Wolfram Sang Date: Wed May 6 12:39:21 2020 +0200 (s)fdisk: avoid unneeded empty lines with '--list' On my system, I got two superfluous empty lines because /dev/sr0 didn't contain a medium. Refactor the code to handle the seperator within print_device_pt() and print it only when assigning the device worked. This unifies handling between print_all_devices_pt and (s)fdisk because the latter did not consider the return code for the seperator while the former did. Also, it saves some lines of code. Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814184 (first part) Signed-off-by: Wolfram Sang disk-utils/fdisk-list.c | 14 ++++++++------ disk-utils/fdisk-list.h | 2 +- disk-utils/fdisk.c | 9 ++------- disk-utils/sfdisk.c | 10 +++------- 4 files changed, 14 insertions(+), 21 deletions(-) commit b3a3b7eb1a15c5633ae890bec00fe5691b784d99 Author: Anatoly Pugachev Date: Thu May 7 12:17:47 2020 +0300 docs: Correct ChangeLog URL to history log. Debian is using this to make URL with tagged release, and with the old URL it does return an empty page. $ apt info util-linux | grep -i version Version: 2.35.1-2 $ zcat /usr/share/doc/util-linux/changelog.gz See version control history. http://git.kernel.org/?p=utils/util-linux/util-linux.git;a=log;h=2.35.1 ^^ empty page Signed-off-by: Anatoly Pugachev ChangeLog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 17c57e250991b47f1882dfe74386aab56076607f Author: Anthony Iliopoulos Date: Tue May 5 16:31:45 2020 +0200 libblkid: add dax capability detection in topology probing The dax (direct access) blockdev capability is exposed via sysfs, add it to the list of topology values to be obtained while probing. Expose blkid_topology_get_dax() symbol that programs can link against for querying the capability. Reorder the idinfos array to give precedence to the sysfs over ioctl so that the dax probe has a chance to be executed, as there is no ioctl interface for it. Signed-off-by: Anthony Iliopoulos libblkid/samples/topology.c | 2 ++ libblkid/src/blkid.h.in | 2 ++ libblkid/src/libblkid.sym | 4 ++++ libblkid/src/topology/sysfs.c | 1 + libblkid/src/topology/topology.c | 21 ++++++++++++++++++++- libblkid/src/topology/topology.h | 1 + 6 files changed, 30 insertions(+), 1 deletion(-) commit 885336d9dcab213d3c1694142611a7dfb4cd85c0 Author: Karel Zak Date: Wed May 6 15:18:52 2020 +0200 wipefs: fix man page --no-headings short option Addresses: https://github.com/karelzak/util-linux/issues/1029 Signed-off-by: Karel Zak misc-utils/wipefs.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f708d71aef7d6fe5a8ab530b5c3e8864b84d906f Author: Wolfram Sang Date: Wed May 6 12:38:04 2020 +0200 fdisk: better wording for '-B' in the man page Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814184 (second part) Signed-off-by: Wolfram Sang disk-utils/fdisk.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7eeb2c827c8c0e5a7ff07ff35407c06c7c1ae412 Author: Wolfram Sang Date: Wed May 6 12:37:50 2020 +0200 fdisk: specify in '--help' that we can have multiple devices with '-l' Matches it with the man-page. Adresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756187 Signed-off-by: Wolfram Sang disk-utils/fdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 89547e4767a975a8a0b08393a7ea4c7645bc96ef Author: Mark Hindley Date: Tue May 5 21:28:55 2020 +0200 tests: Fix for misc/fallocate test build failure. This was already a known possible failure case. However, in the migration to a clearer separation of stdout and stderr in the testsuite, the logfile used to detect the failure was not updated. Signed-off-by: Mark Hindley tests/ts/misc/fallocate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b239651bba87d72738f32a926ea1f03cf03c7210 Author: Anthony Iliopoulos Date: Tue May 5 16:31:44 2020 +0200 lsblk: add dax (direct access) capability column Signed-off-by: Anthony Iliopoulos misc-utils/lsblk.c | 5 +++++ 1 file changed, 5 insertions(+) commit 29f170df8204115f4917a331aa55693b06d310cc Merge: 6a4d53ce6 b220fad41 Author: Karel Zak Date: Wed May 6 15:04:28 2020 +0200 Merge branch 'scriptlive' of https://github.com/jwilk-forks/util-linux * 'scriptlive' of https://github.com/jwilk-forks/util-linux: scriptlive: fix typo scriptlive: fix man page formatting commit 6a4d53ce6466fc97c0ee13846cd1bf7bdd7bfef0 Author: Karel Zak Date: Wed May 6 13:32:46 2020 +0200 libfdisk: fix partition calculation for BLKPG_* ioctls The include/partx.h interface we use in util-linux uses 512-byte sectors, but libfdisk uses real sector sizes. Signed-off-by: Karel Zak libfdisk/src/context.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit b220fad41eebf785886e2295f9131758da806ea1 Author: Jakub Wilk Date: Tue May 5 14:17:55 2020 +0200 scriptlive: fix typo Signed-off-by: Jakub Wilk term-utils/scriptlive.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 140f586389cab0f79086c6d7bd793aa20f8729e4 Author: Jakub Wilk Date: Tue May 5 14:16:52 2020 +0200 scriptlive: fix man page formatting Signed-off-by: Jakub Wilk term-utils/scriptlive.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0d855a83095adc953cc9a0df8998a2f916242695 Author: Karel Zak Date: Mon May 4 12:27:42 2020 +0200 agetty: save the original speed on --keep-baud agetty cycling through the baud rates specified on command line (triggered by BREAK). Unfortunately, the original baud rate (probably the best one) is tried only first time on --keep-baud. Addresses: https://github.com/karelzak/util-linux/issues/1025 Signed-off-by: Karel Zak term-utils/agetty.8 | 6 ++++-- term-utils/agetty.c | 14 +++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) commit f52eed867ae8cfed6ef31cc849efb69026a51391 Author: Karel Zak Date: Mon May 4 11:44:03 2020 +0200 docs: add swap to 1st fstab field Addresses: https://github.com/karelzak/util-linux/issues/1027 Signed-off-by: Karel Zak sys-utils/fstab.5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e81d0f80068086147434fa947a4f723c00318772 Author: Sven Wiltink Date: Fri May 1 16:35:40 2020 +0200 lsblk: Fall back to ID_SERIAL In some cases ID_SERIAL_SHORT isn't provided by libudev, but ID_SERIAL is. An example of this are virtio devices. See the output of udevadm info: P: /devices/pci0000:00/0000:00:06.0/virtio2/block/vdb N: vdb S: disk/by-id/virtio-08491434ee711d3420e9 S: disk/by-path/pci-0000:00:06.0 S: disk/by-path/virtio-pci-0000:00:06.0 E: DEVLINKS=/dev/disk/by-id/virtio-08491434ee711d3420e9 /dev/disk/by-path/pci-0000:00:06.0 /dev/disk/by-path/virtio-pci-0000:00:06.0 E: DEVNAME=/dev/vdb E: DEVPATH=/devices/pci0000:00/0000:00:06.0/virtio2/block/vdb E: DEVTYPE=disk E: ID_PATH=pci-0000:00:06.0 E: ID_PATH_TAG=pci-0000_00_06_0 E: ID_SERIAL=08491434ee711d3420e9 E: MAJOR=252 E: MINOR=16 E: SUBSYSTEM=block E: TAGS=:systemd: E: USEC_INITIALIZED=1403804 [kzak@redhat.com: - add ID_SERIAL also to get_properties_by_file()] Signed-off-by: Karel Zak misc-utils/lsblk-properties.c | 3 +++ 1 file changed, 3 insertions(+) commit 0d5260b66c5581c8a5855a5f49e298e48e8baf82 Author: michael-dev Date: Wed Apr 15 23:16:53 2020 +0200 unshare: Fix PID and TIME namespace persistence After unshare(...) is called, /proc/self/ns/pid does not change. Instead, only /proc/self/ns/pid_for_children is affected. So bind-mounting /proc/self/ns/pid results in the original namespace getting bind-mounted. Fix this by instead bind-mounting ns/pid_for_children. [kzak@redhat.com: - add ns/time_for_children - remove C++ comments - resolve commit conflicts] Signed-off-by: Michael Braun Signed-off-by: Karel Zak sys-utils/unshare.1 | 4 ++++ sys-utils/unshare.c | 68 ++++++++++++++++++++++++++++++----------------------- 2 files changed, 43 insertions(+), 29 deletions(-) commit 76f969fe6ff149c7748894dcf881218f84873d67 Author: Wolfram Sang Date: Tue Apr 28 09:13:15 2020 +0200 bash-completion: umount explicitly needs gawk gensub() is a gawk extension, so use it explicitly. Otherwise users will get an error if their 'awk' defaults to something else. Fixes: 3ebfc8d37 ("bash-completion: umount support relative path and ~ as home shorthands") Signed-off-by: Wolfram Sang bash-completion/umount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 89c0297bcc313b69347ee110c422e84857bd3265 Author: Karel Zak Date: Wed Apr 29 11:10:54 2020 +0200 libfdisk: fix alignment logic for tiny partitions Addresses: https://github.com/karelzak/util-linux/issues/1018 (second case) Signed-off-by: Karel Zak libfdisk/src/alignment.c | 10 ++++++---- libfdisk/src/dos.c | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) commit b80fb30a5b79ce2cc8c7486e1435ec061aa79e2f Author: Karel Zak Date: Tue Apr 28 12:58:42 2020 +0200 libfdisk: make sure we check for maximal number of partitions Addresses: https://github.com/karelzak/util-linux/issues/1018 Signed-off-by: Karel Zak libfdisk/src/dos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 1186cdf336e9d29089de54ff59dba6d2ee1bd803 Author: Karel Zak Date: Tue Apr 28 12:28:59 2020 +0200 lib/strutils: fix floating point exception Addresses: https://github.com/karelzak/util-linux/issues/1017 Signed-off-by: Karel Zak lib/strutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f1a2e9c3a9f13dbdfce337855bc1e9303c77028c Merge: 31b3a523e dac72b6e7 Author: Karel Zak Date: Tue Apr 28 12:13:58 2020 +0200 Merge branch 'ups/fstrim-condition-fstab' of https://github.com/lucab/util-linux * 'ups/fstrim-condition-fstab' of https://github.com/lucab/util-linux: fstrim: run service and timer only if /etc/fstab is present commit 31b3a523eca2fc7e5876ec5fd89094208fed0899 Author: Roberto Bergantinos Corpas Date: Mon Apr 27 15:46:02 2020 +0200 libmount: fix mount -a EBUSY for cifs fstab: //rhel73/myshare/sub/path /mnt cifs after mount in mountinfo: # grep cifs /proc/self/mountinfo 47 39 0:40 /sub/path /mnt rw,relatime shared:60 - cifs //rhel73/myshare/sub/path ... ^^^^^^^^^ or: # grep cifs /proc/self/mountinfo 47 39 0:40 / /mnt rw,relatime shared:60 - cifs //rhel73/myshare/sub/path ... ^ That is so since on kernel cifs code, cifs_get_root (which returns the entry associated with mnt_root) return s_root if CIFS_MOUNT_USE_PREFIX_PATH is set, no questions asked. This situation can occurr often on CIFS mounts, as CIFS servers limit frequently scope of access to the root path. [kzak@redhat.com: - add more info to the commit message, - clean up variable names] Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1826719 Signed-off-by: Roberto Bergantinos Corpas Signed-off-by: Karel Zak libmount/src/tab.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit dac72b6e7e64844afb686d5d4b640df50028ddbb Author: Luca BRUNO Date: Mon Apr 27 10:06:07 2020 +0000 fstrim: run service and timer only if /etc/fstab is present The timer and service units run `fstrim --fstab`, which strictly depends on `/etc/fstab` being present in the OS. This adds relevant condition statements to the units, in order to skip them and avoid runtime failures. Ref: https://github.com/karelzak/util-linux/issues/673#issuecomment-409246816 Ref: https://github.com/coreos/bugs/issues/2591 Ref: https://github.com/coreos/fedora-coreos-tracker/issues/468 Signed-off-by: Luca BRUNO sys-utils/fstrim.service.in | 1 + sys-utils/fstrim.timer | 1 + 2 files changed, 2 insertions(+) commit 32ff1494e3bbf995199ad6d4bde911a3bab7ccf6 Author: Stephen Kitt Date: Thu Apr 23 10:37:02 2020 +0200 docs: nsenter(1): fix further details in PID namespace section The "Further details" sentence in the PID namespace section got merged with the surrounding text; this patch moves it to the end, to match the other namespace sections, and adds the missing clone(2) reference. Fixes: 894efece9eb89 ("Provide better cross references for namespace concepts") Signed-off-by: Stephen Kitt sys-utils/nsenter.1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 243fff1dc6c3d59d9c3eb9ced472584b5ae8bbd2 Author: Karel Zak Date: Mon Apr 27 11:15:00 2020 +0200 libfdisk: (script) fix partno_from_devname() Addresses: https://github.com/karelzak/util-linux/issues/1015 Signed-off-by: Karel Zak libfdisk/src/script.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) commit 79ef974a68d4e70b1ad69a18d70d8a04c9d00bd5 Author: Karel Zak Date: Wed Apr 22 14:57:33 2020 +0200 sfdisk: only report I/O errors on --move-data Now sfdisk stops everything on I/O error when moving data. It seems better to report the error to user and continue as it's better to have one bad sector in the partition than inconsistent all partition. Addresses: https://github.com/karelzak/util-linux/issues/984 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 58 ++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 27 deletions(-) commit 64cb2da8dca18e00893bcf7aa2955d93fd9acac9 Author: Tycho Andersen Date: Thu Jan 9 16:52:41 2020 -0700 libmount: do not unnecessarily chmod utab.lock Before ecfeae90a294 ("libmount: Ensure utab.lock mode 644"), you could do something like: irc:/tmp umount --version umount from util-linux 2.27.1 (libmount 2.27.0: selinux, assert, debug) irc:/tmp mkdir foo bar irc:/tmp unshare -Urm irc:/tmp mount --bind foo bar irc:/tmp umount bar irc:/tmp echo $? 0 However, afterwards, you get: /tmp unshare -Urm /tmp mount --bind foo bar /tmp umount bar umount: /tmp/bar: filesystem was unmounted, but failed to update userspace mount table. Because of the chmod failing: fchmod(3, 0644)                         = -1 EPERM (Operation not permitted) Let's figure out whether the chmod is necessary before doing it, and only do it if it is necessary. This won't fix cases where the system is already broken, but at least on healthy systems umount will behave as before. Signed-off-by: Tycho Andersen libmount/src/lock.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit 2292d0baf950e87ab4f4b8019fbf822cc15da01d Author: Karel Zak Date: Wed Apr 22 12:24:33 2020 +0200 libsmartcols: don't calculate with encoding on scols_table_enable_noencoding() Old: $ echo -e "$(tput smul)A$(tput rmul) B\nC D" | column --table A B C D Fixed: $ echo -e "$(tput smul)A$(tput rmul) B\nC D" | ./column --table A B C D Addresses: https://github.com/karelzak/util-linux/issues/1011 Signed-off-by: Karel Zak libsmartcols/src/buffer.c | 4 ++-- libsmartcols/src/calculate.c | 15 ++++++++++++--- libsmartcols/src/column.c | 12 ++++++++---- libsmartcols/src/print.c | 13 ++++++++++--- 4 files changed, 32 insertions(+), 12 deletions(-) commit 0957fdca6ac5b41fa95f4a08d06f402e53d7e324 Author: Karel Zak Date: Wed Apr 22 12:22:29 2020 +0200 lib/mbsalign: add function to calculate width We already have mbs_safe_nwidth() but it assumes that all "bad" chars will be encoded by \x. Now we need also function that do not care about encoding. Signed-off-by: Karel Zak include/mbsalign.h | 3 +++ lib/mbsalign.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 64 insertions(+), 3 deletions(-) commit 7c16238c069f171f376731c93435655be6df916b Author: Karel Zak Date: Wed Apr 22 10:32:49 2020 +0200 eject: fix compiler warning [-Wformat-overflow] Signed-off-by: Karel Zak sys-utils/eject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9faba2114ab08a7b695364cfeb39614935291e54 Author: Karel Zak Date: Wed Apr 22 10:27:12 2020 +0200 include/nls: remove unnecessary declaration Signed-off-by: Karel Zak include/nls.h | 2 -- lib/env.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) commit 69fe4f4ba62a0f028b241067a8117b6aef44855c Merge: e2aedec8d ad5249801 Author: Karel Zak Date: Wed Apr 22 10:07:51 2020 +0200 Merge branch 'clang' of https://github.com/neheb/util-linux * 'clang' of https://github.com/neheb/util-linux: [clang-tidy] fix misleading identation [clang-tidy] use ceil [clang-tidy] fix wrong *cmp usage [clang-tidy] do not use else after return [clang-tidy] do not return in void functions [clang-tidy] fix mismatching declarations commit e2aedec8d1aa4fd9b50e0248b6dc86d2a8776fd8 Author: Karel Zak Date: Wed Apr 22 09:44:47 2020 +0200 pylibmount: cleanup and sync UL_RaiseExc Addresses: https://github.com/karelzak/util-linux/issues/1013 Signed-off-by: Karel Zak libmount/python/pylibmount.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) commit ad52498014dd53584ccc8abc727916fec52f6df8 Author: Rosen Penev Date: Sat Apr 18 22:24:27 2020 -0700 [clang-tidy] fix misleading identation Found with readability-misleading-indentation Signed-off-by: Rosen Penev disk-utils/fdisk-list.c | 7 ++++--- lib/timeutils.c | 2 +- sys-utils/tunelp.c | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) commit ed23cbce644987eb41c0de3bef47ac7e7a32f03a Author: Rosen Penev Date: Sat Apr 18 22:34:55 2020 -0700 [clang-tidy] use ceil Found with bugprone-incorrect-roundings Signed-off-by: Rosen Penev sys-utils/hwclock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit ad296391f932764de697dd0bfcfa6f529b69a6cb Author: Rosen Penev Date: Sat Apr 18 22:32:29 2020 -0700 [clang-tidy] fix wrong *cmp usage Found with bugprone-suspicious-string-compare Signed-off-by: Rosen Penev disk-utils/fsck.c | 10 +++++----- disk-utils/fsck.minix.c | 8 ++++---- disk-utils/partx.c | 2 +- lib/ismounted.c | 2 +- lib/loopdev.c | 2 +- lib/swapprober.c | 2 +- lib/sysfs.c | 2 +- libblkid/src/devname.c | 14 +++++++------- libblkid/src/partitions/atari.c | 2 +- libblkid/src/superblocks/ntfs.c | 4 ++-- libblkid/src/superblocks/vfat.c | 2 +- libblkid/src/tag.c | 2 +- libfdisk/src/sgi.c | 2 +- libmount/src/context.c | 2 +- libmount/src/context_umount.c | 2 +- libmount/src/optmap.c | 2 +- libmount/src/optstr.c | 2 +- libmount/src/tab_diff.c | 2 +- libmount/src/tab_parse.c | 2 +- login-utils/login.c | 2 +- login-utils/su-common.c | 2 +- misc-utils/findmnt.c | 2 +- misc-utils/hardlink.c | 2 +- misc-utils/lsblk-properties.c | 2 +- sys-utils/chmem.c | 6 +++--- sys-utils/lscpu-arm.c | 2 +- sys-utils/lscpu.c | 4 ++-- sys-utils/lsmem.c | 4 ++-- sys-utils/setarch.c | 10 +++++----- term-utils/agetty.c | 4 ++-- term-utils/write.c | 2 +- tests/helpers/test_strerror.c | 2 +- text-utils/hexdump-display.c | 2 +- 33 files changed, 56 insertions(+), 56 deletions(-) commit 042f62dfc514da177c148c257e4dcb32e5f8379d Author: Rosen Penev Date: Sat Apr 18 22:16:22 2020 -0700 [clang-tidy] do not use else after return Found with readability-else-after-return Signed-off-by: Rosen Penev disk-utils/cfdisk.c | 10 ++++-- disk-utils/fsck.c | 4 +-- disk-utils/fsck.cramfs.c | 9 +++-- disk-utils/fsck.minix.c | 6 ++-- disk-utils/mkfs.cramfs.c | 6 ++-- disk-utils/partx.c | 4 ++- disk-utils/sfdisk.c | 12 +++++-- lib/blkdev.c | 4 +-- lib/encode.c | 4 ++- lib/loopdev.c | 4 +-- lib/strutils.c | 19 +++++------ lib/ttyutils.c | 4 +-- libblkid/src/partitions/gpt.c | 2 +- libblkid/src/probe.c | 4 ++- libblkid/src/superblocks/befs.c | 23 +++++++------ libblkid/src/superblocks/luks.c | 24 +++++++------- libblkid/src/superblocks/minix.c | 3 +- libblkid/src/superblocks/swap.c | 4 ++- libblkid/src/superblocks/udf.c | 2 +- libfdisk/src/context.c | 18 +++++----- libfdisk/src/dos.c | 8 +++-- libfdisk/src/partition.c | 8 +++-- libfdisk/src/sgi.c | 8 +++-- libmount/python/context.c | 20 +++++------ libmount/python/fs.c | 12 +++++-- libmount/python/tab.c | 4 ++- libmount/src/cache.c | 7 ++-- libmount/src/context.c | 4 ++- libmount/src/context_mount.c | 8 +++-- libmount/src/context_umount.c | 18 +++++++--- libmount/src/lock.c | 34 +++++++++---------- libmount/src/monitor.c | 4 ++- libmount/src/optmap.c | 2 +- libmount/src/optstr.c | 4 +-- libmount/src/utils.c | 30 +++++++++-------- libsmartcols/src/calculate.c | 2 +- libsmartcols/src/cell.c | 2 +- libuuid/src/parse.c | 3 +- libuuid/src/predefined.c | 13 +++++--- login-utils/islocal.c | 29 ++++++++-------- login-utils/logindefs.c | 5 +-- login-utils/utmpdump.c | 15 ++++----- misc-utils/cal.c | 4 +-- misc-utils/findmnt-verify.c | 2 +- misc-utils/getopt.c | 4 +-- misc-utils/kill.c | 2 +- misc-utils/rename.c | 4 +-- misc-utils/uuidd.c | 3 +- sys-utils/eject.c | 11 +++--- sys-utils/hwclock-rtc.c | 72 ++++++++++++++++++++-------------------- sys-utils/hwclock.c | 8 +++-- sys-utils/ipcutils.c | 12 +++---- sys-utils/lsipc.c | 12 +++---- sys-utils/lsns.c | 5 ++- sys-utils/prlimit.c | 4 ++- sys-utils/unshare.c | 2 +- sys-utils/zramctl.c | 4 ++- term-utils/agetty.c | 4 ++- term-utils/scriptlive.c | 8 ++--- term-utils/setterm.c | 33 +++++++++--------- text-utils/more.c | 9 +++-- text-utils/pg.c | 59 ++++++++++++++++---------------- text-utils/ul.c | 4 +-- 63 files changed, 372 insertions(+), 300 deletions(-) commit bd89499e07a85b399a345e319e61d0afc5f3088c Author: Rosen Penev Date: Sat Apr 18 21:23:13 2020 -0700 [clang-tidy] do not return in void functions Found with readability-redundant-control-flow Signed-off-by: Rosen Penev disk-utils/fsck.c | 2 -- disk-utils/fsck.minix.c | 4 ---- lib/idcache.c | 1 - lib/randutils.c | 1 - libblkid/src/devname.c | 1 - libblkid/src/devno.c | 1 - libblkid/src/probe.c | 1 - libblkid/src/read.c | 1 - login-utils/chfn.c | 2 -- login-utils/lslogins.c | 1 - misc-utils/kill.c | 1 - misc-utils/whereis.c | 9 --------- sys-utils/ipcs.c | 3 --- sys-utils/ldattach.c | 1 - sys-utils/swapon.c | 1 - term-utils/setterm.c | 2 -- text-utils/hexdump-display.c | 1 - 17 files changed, 33 deletions(-) commit 13ae0352111c67c5a01b5b079c4af2ce48369523 Author: Rosen Penev Date: Sat Apr 18 21:14:25 2020 -0700 [clang-tidy] fix mismatching declarations Found with readability-inconsistent-declaration-parameter-name Signed-off-by: Rosen Penev include/md5.h | 6 +++--- libblkid/src/blkidP.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) commit 75c7684724ea203f85bdb60fb0cf28a653ffe85a Merge: f12d5ad27 987550cbe Author: Karel Zak Date: Fri Apr 17 11:02:29 2020 +0200 Merge branch 'map-user' of https://github.com/mat8913/util-linux * 'map-user' of https://github.com/mat8913/util-linux: unshare: Support names for map-user/group options lib/pwdutils: add xgetgrnam unshare: allow custom uid/gid mappings in userns commit f12d5ad279f248b2fb63394331010f2c835b1a74 Author: Karel Zak Date: Fri Apr 17 10:21:56 2020 +0200 lib/strutils: fix uint64_t overflow Addresses: https://github.com/karelzak/util-linux/issues/998 Signed-off-by: Karel Zak lib/strutils.c | 5 ++++- tests/expected/misc/strtosize | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) commit 316617e84848da418aee413abe1d26a2f6a8fde7 Author: Karel Zak Date: Thu Apr 16 12:19:16 2020 +0200 tests: update fdisk outputs due to sizes rounding change References: b38c20e13a51acb7e3bb388e9cc17d5fc905e7d9 Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 2 +- tests/expected/blkid/md-raid1-whole | 2 +- tests/expected/fdisk/align-512-4K-md | 2 +- tests/expected/fdisk/bsd_0_64.BE | 4 ++-- tests/expected/fdisk/bsd_0_64.LE | 4 ++-- tests/expected/fdisk/bsd_0_64_alpha.LE | 4 ++-- tests/expected/fdisk/bsd_1_0.BE | 4 ++-- tests/expected/fdisk/bsd_1_0.LE | 4 ++-- tests/expected/fdisk/mbr-dos-mode | 10 +++++----- tests/expected/fdisk/sunlabel | 18 +++++++++--------- tests/expected/partx/partx-image-dos+bsd | 2 +- 11 files changed, 28 insertions(+), 28 deletions(-) commit b38c20e13a51acb7e3bb388e9cc17d5fc905e7d9 Author: Karel Zak Date: Wed Apr 15 15:01:12 2020 +0200 ilib/strutils: fix rounding in size_to_human_string() Thanks to bub75 for the idea. The patch adds SIZE_DECIMAL_2DIGITS into regression tests. Addresses: https://github.com/karelzak/util-linux/issues/998 Signed-off-by: Karel Zak lib/strutils.c | 43 ++++++++++++++++++++++++++--------- tests/expected/misc/strtosize | 52 +++++++++++++++++++++---------------------- 2 files changed, 58 insertions(+), 37 deletions(-) commit 987550cbe857062456a120536bb16a67845b255b Author: Matthew Harm Bekkema Date: Wed Apr 15 23:05:16 2020 +1000 unshare: Support names for map-user/group options The --map-user and --map-group options can now be specified by either uid/gid or user/group name. Signed-off-by: Matthew Harm Bekkema sys-utils/unshare.1 | 4 ++-- sys-utils/unshare.c | 45 +++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 43 insertions(+), 6 deletions(-) commit dc96ca29d872a611801bdfd671c43c10c045cd3a Author: Matthew Harm Bekkema Date: Wed Apr 15 22:49:54 2020 +1000 lib/pwdutils: add xgetgrnam Signed-off-by: Matthew Harm Bekkema include/pwdutils.h | 2 ++ lib/pwdutils.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) commit a8906113576b96a8943ed9f5e6a8582745134b1d Author: Karel Zak Date: Wed Apr 15 13:24:23 2020 +0200 mount: support "-o move" on command line Addresses: https://github.com/karelzak/util-linux/issues/997 Signed-off-by: Karel Zak sys-utils/mount.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit 7084db77e6f876df2dc7f6ec0c68ba6140de7bb5 Author: Lukas Czerner Date: Wed Apr 15 09:08:12 2020 +0200 blkdiscard: (man) offset and length must be sector aligned Update blkdiscard manual page. Length and offset values must be aligned to the device sector size. Signed-off-by: Lukas Czerner Reported-by: Patrick Oppenlander sys-utils/blkdiscard.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f48c407c9abac158ada0353c0bbdb2c3a80602a3 Author: Karel Zak Date: Tue Apr 14 11:40:38 2020 +0200 scriptlive, scriptreplay: cleanup --maxdelay man page description Addresses: https://github.com/karelzak/util-linux/issues/1004 Signed-off-by: Karel Zak term-utils/scriptlive.1 | 4 ++-- term-utils/scriptreplay.1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit d3c08f44098dd04473394a3a67842d95314a2061 Merge: 7fa6e8678 ed292a08d Author: Karel Zak Date: Tue Apr 14 11:29:25 2020 +0200 Merge branch '2020wk13' of https://github.com/kerolasa/util-linux * '2020wk13' of https://github.com/kerolasa/util-linux: include: add remove_entry() to env.h tests: add sanitize_env() check more: fix moving backwards so that it can reach begining of the file more: use getopt_long() to parse options more: remove underlining related code more: fix SIGSTOP and SIGCONT handling more: make execute() more robust and timely more: target all standard streams when calling fflush() more: remove kill_line() in favor of erase_prompt() more: avoid defining special characters locally more: use off_t and cc_t to clarify what variables attempt to represent more: do not reset parent process terminal in execute() more: use single exit path to ensure resource freeing is unified commit 7fa6e867892cea778333c95e209feb20cebd250e Author: Disconnect3d Date: Mon Apr 13 16:14:10 2020 +0200 Fix off by one when checking "/dev/mapper/" path This PR fixes an off by one in `strncmp(dev->bid_name, "/dev/mapper/", 11)` check. The `"/dev/mapper/"` string literal has a length of 12 and without this fix paths like `"/dev/mapperSOMETHING"` would also be accepted. libblkid/src/devname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ed292a08dd8c3b11630d3699488fe9f53426aeb7 Author: Sami Kerola Date: Sun Apr 12 08:53:32 2020 +0100 include: add remove_entry() to env.h A function to remove an command-line option argument, or environment variable. Requested-by: Karel Zak Reference: https://github.com/karelzak/util-linux/pull/1003#discussion_r403988092 Signed-off-by: Sami Kerola include/env.h | 6 ++++++ lib/env.c | 11 ++++++----- text-utils/more.c | 4 ++-- 3 files changed, 14 insertions(+), 7 deletions(-) commit 3d6fa8da69f7884dc35d2c701aa67c234f53ce89 Author: Sami Kerola Date: Sun Apr 12 19:45:53 2020 +0100 tests: add sanitize_env() check Signed-off-by: Sami Kerola lib/Makemodule.am | 4 ++++ lib/env.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) commit 837f49c6bf0db1de7b85cb20e2c19a6232717adc Author: Sami Kerola Date: Sun Mar 29 14:52:19 2020 +0100 more: fix moving backwards so that it can reach begining of the file Moving backwards has worked fine until reaching start of file. At that point more printout had one line too much in output causing more seemingly never to be able to reach the start. That is now fixed, with clean ups to skip_backwards() making it less confusing. Signed-off-by: Sami Kerola text-utils/more.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) commit e3cb27f5358ccdd8c4a10ccf13e0f37ab9953332 Author: Sami Kerola Date: Sat Mar 28 15:09:00 2020 +0000 more: use getopt_long() to parse options This commit also includes fix to how initial skip lines and search are instructed in the code. Earlier version was pretty close impossible to make work with getopt_long() and had minor flaw - if both initial skip lines and search were defined at the same time the skipping did not happen. That is now corrected. Signed-off-by: Sami Kerola bash-completion/more | 21 +++- text-utils/Makemodule.am | 2 +- text-utils/more.1 | 32 ++++--- text-utils/more.c | 243 +++++++++++++++++++++++++---------------------- 4 files changed, 172 insertions(+), 126 deletions(-) commit 94bece3c229082758ec1f59f9eb4f3567ec523eb Author: Sami Kerola Date: Sat Mar 28 11:08:13 2020 +0000 more: remove underlining related code Linux terminal handles underlining just fine without more executable needing to do anything extra. Signed-off-by: Sami Kerola text-utils/more.1 | 3 +- text-utils/more.c | 128 +----------------------------------------------------- 2 files changed, 4 insertions(+), 127 deletions(-) commit 6dcaaa9ef512c6b8261f2219db2a7cab24c1a65f Author: Sami Kerola Date: Sat Mar 28 10:17:46 2020 +0000 more: fix SIGSTOP and SIGCONT handling When suspending only the more process. Sending signal to process group makes signal destination unnecessarily vague. After the suspend is over SIGCONT is expected, and it needs to ensure output terminal settings are what more needs. Signed-off-by: Sami Kerola text-utils/more.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) commit c366ebc7ef8909e5d7e6d769b4e952a0124ef338 Author: Sami Kerola Date: Sat Mar 28 10:00:08 2020 +0000 more: make execute() more robust and timely The wait() is now a little more robust by being more tolerate rogue SIGCHLDs and unblocked signals. The repeated fork() and sleep() is removed, if first try does not success give up without delay to provide user timely feedback. Signed-off-by: Sami Kerola text-utils/more.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) commit f3c044eeed896a8edd2294ef71fdf7355dbd1037 Author: Sami Kerola Date: Sat Mar 21 17:45:47 2020 +0000 more: target all standard streams when calling fflush() If streams need to be flushed do not try to be clever, just flush all of them. That lead to finding unnecessary print out in run_shell() that is removed in this commit. Signed-off-by: Sami Kerola text-utils/more.c | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) commit 21d096239cda48b8c1d1c84b3d66e8de93bfb8a7 Author: Sami Kerola Date: Sat Mar 21 16:53:15 2020 +0000 more: remove kill_line() in favor of erase_prompt() These functions did similar things, so there is no need for both of them. Signed-off-by: Sami Kerola text-utils/more.c | 74 ++++++++++++++++++++++++++----------------------------- 1 file changed, 35 insertions(+), 39 deletions(-) commit 508b2d79df446058b6d06d7f5a7480a6c9c07e03 Author: Sami Kerola Date: Sat Mar 21 15:59:04 2020 +0000 more: avoid defining special characters locally The sys/ttydefaults.h can be used for CTRL() and rubout that is CERASE. For alarm it's best to keep things simple and call printf() alarm modifier. QUIT was not in use, so it is just deleted. Signed-off-by: Sami Kerola text-utils/more.c | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) commit ba105bb5eb0052ee7d85d0903ad4ae9e87114930 Author: Sami Kerola Date: Sat Mar 21 13:15:19 2020 +0000 more: use off_t and cc_t to clarify what variables attempt to represent As a minor robustness improvement use ftello() to find out file position rather than add and substract from old value. Signed-off-by: Sami Kerola text-utils/more.c | 71 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) commit 437cec386f19b6f17b2ba3fa455838a99d9643bb Author: Sami Kerola Date: Sat Mar 21 12:34:15 2020 +0000 more: do not reset parent process terminal in execute() Only the terminal of the child process, that is the command being executed, needs the reset. Signed-off-by: Sami Kerola text-utils/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 73ff5a9561475deba3dc45d95554ca5daeaa086d Author: Sami Kerola Date: Sat Mar 21 09:30:57 2020 +0000 more: use single exit path to ensure resource freeing is unified And be a little more complete all the allocations that can be released are, but there is a small catch. As mentioned in ncurses FAQ some leaks are intentional, and that's the way they are. Reference: https://invisible-island.net/ncurses/ncurses.faq.html#config_leaks Reference: http://man7.org/linux/man-pages/man3/_nc_free_tinfo.3x.html Signed-off-by: Sami Kerola text-utils/more.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 6e837b5a385ad88405327ce83e1a573eed4984ee Author: Matthew Harm Bekkema Date: Sat Jan 4 09:11:30 2020 +1100 unshare: allow custom uid/gid mappings in userns Two new options are added: `--map-user=` and `--map-group=` for custom user and group mappings respectively. These are just generalizations of the existing `--map-root-user` and `--map-current-user` options. As a side effect of this commit, specifying both `--map-root-user` and `--map-current-user` no longer causes an error. Instead, the last occurrence takes precedence. Addresses: https://github.com/karelzak/util-linux/issues/885 Signed-off-by: Matthew Harm Bekkema sys-utils/unshare.1 | 12 ++++++++++ sys-utils/unshare.c | 66 ++++++++++++++++++++++++----------------------------- 2 files changed, 42 insertions(+), 36 deletions(-) commit ea4dcdc788f2736c0f36cc59e79fb421e5bef915 Author: Karel Zak Date: Mon Apr 6 15:33:23 2020 +0200 tests: add zonefs blkid test Thanks to Damien Le Moal for the image. Signed-off-by: Karel Zak tests/expected/blkid/low-probe-zonefs | 3 +++ tests/ts/blkid/images-fs/zonefs.img.xz | Bin 0 -> 784 bytes 2 files changed, 3 insertions(+) commit d6cfb75428bf6f5f214ea8f99940e04147a0d668 Author: Jann Horn Date: Sun Apr 5 07:55:14 2020 +0200 docs: renice(1): Add chrt(1) to SEE ALSO A user who wants to change the niceness of a process is likely to also be interested in changing the scheduler class and/or RT priority. Signed-off-by: Jann Horn sys-utils/renice.1 | 1 + 1 file changed, 1 insertion(+) commit 3168ba091f2b0cbd85253440ef11d27b46f34380 Author: Karel Zak Date: Mon Apr 6 11:58:29 2020 +0200 libmount: use mnt_stat_mountpoint() on more places Signed-off-by: Karel Zak libmount/src/context_mount.c | 8 ++++---- libmount/src/mountP.h | 1 + libmount/src/utils.c | 10 ++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) commit 7065cc0e5312cafc5ae3e4c342f78f264300fb5f Author: Fabian Vogt Date: Wed Apr 1 13:15:13 2020 +0200 libmount: Avoid triggering autofs in lookup_umount_fs_by_statfs Currently, umount /foo results in a statfs("/foo") call, which triggers autofs. This can create another mountpoint on /foo, which is then unmounted later instead of the actual /foo at the time umount was called. This is especially an issue for umount -R /bar, which just fails with -EBUSY as the accidental mountpoint is never accounted for and so it tries to umount /bar before /bar/someautofs. Replace the direct statfs call with open(path, O_PATH) + fstatfs, which sees the autofs mount directly, without triggering it. libmount/src/context_umount.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit bee464006776203a8cb545a35c86234181c7a55a Author: Karel Zak Date: Wed Apr 1 10:21:58 2020 +0200 libuuid: remove function alias It seems the 'alias' attribute is not portable enough. libuuid/src/unparse.c:72:17: error: only weak aliases are supported on darwin __attribute__((alias("uuid_unparse_lower"))); Signed-off-by: Karel Zak libuuid/src/unparse.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit a5e322f4f403af970092dad73b95cbaa54045a3d Author: Aurelien LAJOIE Date: Sat Mar 28 23:33:41 2020 +0100 cal: correctly set the week width There is seven values but only 6 spaces between them, that why the -1 The value is always used with a minus one, just set it correctly instead of always fix when used Signed-off-by: Aurelien LAJOIE misc-utils/cal.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit b90829918891af8a3207bdc54a25326481b2fa6e Author: Aurelien LAJOIE Date: Sat Mar 28 23:33:40 2020 +0100 cal: Correctly center the year Signed-off-by: Aurelien LAJOIE misc-utils/cal.c | 7 +++---- tests/expected/cal/weeknum-ymjw | 14 +++++++------- tests/expected/cal/weeknum-ysjw | 14 +++++++------- tests/expected/cal/year-ymj | 2 +- tests/expected/cal/year-ymjw | 2 +- tests/expected/cal/year-ysj | 2 +- tests/expected/cal/year-ysjw | 2 +- 7 files changed, 21 insertions(+), 22 deletions(-) commit c1f143931657d8c0226e7f788a36d70108cf7918 Author: Aurelien LAJOIE Date: Sat Mar 28 23:33:39 2020 +0100 cal: use a const char* A put string function should not modify the char* Signed-off-by: Aurelien LAJOIE misc-utils/cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2f81213e269655728bc7971cbc09d5db20e2b855 Author: Aurelien LAJOIE Date: Thu Mar 26 15:38:27 2020 +0100 libuuid: improve uuid_unparse() performance There is 2 improvements: * remove useless uuid_unpack, * directly print the hexa format from memory without using printf we can do this as the bytes order is the network byte order https://tools.ietf.org/html/rfc4122#section-4.1.2 even the spatially unique node identifier(the last 6 bytes) The improvement is important, some results for 1000000 uuid_unparse calls: Little Endian Ubuntu: before took 382623 us after took 36740 us Big Endian OpenBSD: before took 3138172 us after took 180116 us Signed-off-by: Aurelien LAJOIE libuuid/src/unparse.c | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) commit be0044b812849ad8624c494f18f14f1e851f8942 Merge: cd52e392a 5cd455025 Author: Karel Zak Date: Tue Mar 31 13:17:20 2020 +0200 Merge branch 'more' of https://github.com/kerolasa/util-linux * 'more' of https://github.com/kerolasa/util-linux: more: refactor and clarify code more: add display_file() to show files and stdin more: simplify initterm() more: move currently open file to control structure more: move code blocks from more_key_command() to functions more: move runtime usage output to a function more: restructure print_buf() if-else with continue more: tell in run time help what the 'v' will execute as editor more: drop setuid permissions before executing anything more: do not allocate shell command buffer from stack more: replace siglongjmp() and signal() calls with signalfd() commit cd52e392acc6d5114d76e121c54e55675d43b6bf Author: Karel Zak Date: Tue Mar 31 13:12:11 2020 +0200 lslogins: remove unnecessary brackets Just to be consistent with the rest of the code. Signed-off-by: Karel Zak login-utils/lslogins.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 737b972fbc3f8eac3dc9042dcb688b3d05620de3 Merge: 16debd23e 3434ac972 Author: Karel Zak Date: Tue Mar 31 13:05:53 2020 +0200 Merge branch '2020wk12' of https://github.com/kerolasa/util-linux * '2020wk12' of https://github.com/kerolasa/util-linux: lslogins: use lastlog as wtmp fallback login: avoid lseek() with pread() and pwrite() libuuid: ensure variable is initialized [cppcheck] ctrlaltdel: display error message indicated by errno commit 16debd23e804f27a9287c85e31158e86c7c5020c Merge: ef89802e8 6cb8af7be Author: Karel Zak Date: Tue Mar 31 12:54:58 2020 +0200 Merge branch 'mips' of https://github.com/FlyGoat/util-linux * 'mips' of https://github.com/FlyGoat/util-linux: lscpu: Adapt MIPS cpuinfo commit ef89802e833acadf7ba37448ef1a64b7e0a76bf8 Author: Karel Zak Date: Tue Mar 31 12:26:54 2020 +0200 fstrim: rename --quite to --quite-unsupported We use --verbose together with --quite in service files. It seems confusing, let's make the option more descriptive. Addresses: https://github.com/karelzak/util-linux/issues/1001 Signed-off-by: Karel Zak bash-completion/fstrim | 2 +- sys-utils/fstrim.8 | 7 ++++--- sys-utils/fstrim.c | 30 +++++++++++++++--------------- sys-utils/fstrim.service.in | 2 +- 4 files changed, 21 insertions(+), 20 deletions(-) commit 3434ac972054ffb0315786df76c885949259926f Author: Sami Kerola Date: Sun Mar 29 20:40:48 2020 +0100 lslogins: use lastlog as wtmp fallback The wtmp file tends to rotate higher rate than lastlog, so use the later as fallback in when wtmp tells nothing in LAST-LOGIN column. Signed-off-by: Sami Kerola bash-completion/lslogins | 3 ++- login-utils/lslogins.1 | 3 +++ login-utils/lslogins.c | 61 ++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 61 insertions(+), 6 deletions(-) commit 370734a7ebd9288a4a670ce0add2cc0970de869b Author: Sami Kerola Date: Sun Mar 22 20:54:00 2020 +0000 login: avoid lseek() with pread() and pwrite() This makes code a little less complicated by avoiding couple system calls. Signed-off-by: Sami Kerola login-utils/login.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) commit 3c92864ecd755286b8a743d8ac3388e67ae8598c Author: Sami Kerola Date: Sat Feb 29 08:51:53 2020 +0000 libuuid: ensure variable is initialized [cppcheck] This fix has a little bit of a feel of making a static analyzer to be happy instead of real progress. If I read the preprocessor directives correctly it should be impossible hit uninitialized variable. Then again if a bug creeps into these ifdef's in that case it is nice to have robust code that doesn't immediately go wrong. libuuid/src/gen_uuid.c:200:20: error: Uninitialized variable: a [uninitvar] memcpy(node_id, a, 6); ^ libuuid/src/gen_uuid.c:197:8: error: Uninitialized variable: a [uninitvar] if (!a[0] && !a[1] && !a[2] && !a[3] && !a[4] && !a[5]) ^ Signed-off-by: Sami Kerola libuuid/src/gen_uuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit dcb87944c28105fcd718625d9477c3518d26875b Author: Sami Kerola Date: Tue Feb 25 21:30:19 2020 +0000 ctrlaltdel: display error message indicated by errno Signed-off-by: Sami Kerola sys-utils/ctrlaltdel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5cd45502516263fc50a851b8a30263490e3a7f6c Author: Sami Kerola Date: Wed Mar 18 20:13:16 2020 +0000 more: refactor and clarify code Use the backspace provided dy terminfo, and if that is not possible use fallback. Simplify entering and exiting standard mode. Now when these std_enter and std_exit variables are initialized correctly they do not need to be checked quite as complex way as earlier. Do not call prepare_line_buffer() unnecessarily. The line buffer needs only to be prepared only at times of more(1) initialization and when terminal size changes. Add a function to print various separators, that is better than static strings. Signed-off-by: Sami Kerola text-utils/more.c | 154 +++++++++++++++++++++++++++--------------------------- 1 file changed, 76 insertions(+), 78 deletions(-) commit 63f96f682f7ee1f78ff0dbf0925aaee6814f94e8 Author: Sami Kerola Date: Sat Mar 28 07:50:43 2020 +0000 more: add display_file() to show files and stdin Earlier main() inline code implemented input files and stdin displaying separately. With small restructuring this code can be shared. Signed-off-by: Sami Kerola text-utils/more.c | 156 +++++++++++++++++++++++++----------------------------- 1 file changed, 72 insertions(+), 84 deletions(-) commit 22ff9a38cb265006e02497c68c4fd0428496c64f Author: Sami Kerola Date: Wed Mar 18 20:13:10 2020 +0000 more: simplify initterm() Return rather than use long 'else' statement. Also unwind some overly compact variable set and test code, that can be best observed how underlining settings are now handled. Signed-off-by: Sami Kerola text-utils/more.c | 182 ++++++++++++++++++++++++++---------------------------- 1 file changed, 89 insertions(+), 93 deletions(-) commit 82129a6fca440fe48ce41705890f83c7a85df4ae Author: Sami Kerola Date: Wed Mar 18 20:13:08 2020 +0000 more: move currently open file to control structure Currently open file is needed a bit here and there. Move it to control structure to avoid passing it around. This also makes fixing memory leak at more_exit() very easy. Signed-off-by: Sami Kerola text-utils/more.c | 142 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 73 insertions(+), 69 deletions(-) commit 1f5d21ec3393c4ef824fb7f4e0546dfcd8a1114a Author: Sami Kerola Date: Wed Mar 18 20:13:06 2020 +0000 more: move code blocks from more_key_command() to functions The more_key_command() was overly long. Signed-off-by: Sami Kerola text-utils/more.c | 208 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 107 insertions(+), 101 deletions(-) commit b6818219fb53bb0a338510e850dd9f928088bb76 Author: Sami Kerola Date: Wed Mar 18 20:13:02 2020 +0000 more: move runtime usage output to a function This change also removes a ghost prompt that was left in place when printing help. When looking old commits the output fluke has been around at least since util-linux v2.2. Signed-off-by: Sami Kerola text-utils/more.c | 61 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 28 deletions(-) commit f53edc0ee6ef12588ba3565a935417eccf7ded65 Author: Sami Kerola Date: Wed Mar 18 20:13:00 2020 +0000 more: restructure print_buf() if-else with continue Replacing long 'else' with 'continue' allows dropping one level of indentation. Main aim is to improve code readability by reducing complexity one needs to keep track while looking the code. Signed-off-by: Sami Kerola text-utils/more.c | 87 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 43 deletions(-) commit f8492042f52198265a5a2423ac63e4e99a05fc0f Author: Sami Kerola Date: Wed Mar 18 20:12:59 2020 +0000 more: tell in run time help what the 'v' will execute as editor In same go use well known paths from system include file. Signed-off-by: Sami Kerola text-utils/more.c | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) commit 8fb5fe304a20b12960422d8885647db7434f0d25 Author: Sami Kerola Date: Wed Mar 18 20:12:57 2020 +0000 more: drop setuid permissions before executing anything Pagers are not expected to have setuid or setgid bits, but assuming such mistake has taken place try to avoid privilege escalation. Signed-off-by: Sami Kerola text-utils/more.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 6cb8af7be2d76cfd9201f141fa2d69fa2ed32deb Author: Jiaxun Yang Date: Sat Mar 28 12:19:42 2020 +0800 lscpu: Adapt MIPS cpuinfo MIPS have slightly different layout of cpuinfo. Signed-off-by: Jiaxun Yang sys-utils/lscpu.c | 2 ++ 1 file changed, 2 insertions(+) commit 474c61c0a8f4051727e7cad3bee6499162c5d797 Author: Sami Kerola Date: Wed Mar 18 20:12:54 2020 +0000 more: do not allocate shell command buffer from stack This change has three possitive effects: Avoid expansion code when it is not needed. Stop wasting memory from stack for something rarely needed. When command buffer is needed stop limiting it's size artificially. Signed-off-by: Sami Kerola text-utils/more.c | 54 ++++++++++++++++++++---------------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) commit 823ef319b67ea232c87dc0fdb40ddb1570e1e9ad Author: Sami Kerola Date: Wed Mar 18 20:12:51 2020 +0000 more: replace siglongjmp() and signal() calls with signalfd() From man siglongjmp(3) 'longjmp() and siglongjmp() make programs hard to understand and maintain. If possible, an alternative should be used.' That manual page remark summarizes quite well why more(1) needs to move away from jumping around. Signed-off-by: Sami Kerola configure.ac | 1 + text-utils/more.c | 262 ++++++++++++++++++++++++++---------------------------- 2 files changed, 128 insertions(+), 135 deletions(-) commit a971746370b5ec3f923f31dcc2ab51e2975ef6fb Author: Karel Zak Date: Fri Mar 27 11:34:12 2020 +0100 libmount: make mnt_context_find_umount_fs() more extendable Signed-off-by: Karel Zak libmount/src/context_umount.c | 77 ++++++++++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 27 deletions(-) commit 4ce77c625a2e87c021a87d306a66ec1f3942d430 Author: Karel Zak Date: Fri Mar 27 11:10:26 2020 +0100 libmount: (umount) FS lookup refactoring Let's split lookup to more function to make it easy to add another lookup method. Signed-off-by: Karel Zak libmount/src/context_umount.c | 142 ++++++++++++++++++++++++------------------ 1 file changed, 83 insertions(+), 59 deletions(-) commit 46cf662532ef4e924a3478f2e474b619caf141df Author: Damien Le Moal Date: Thu Mar 26 11:27:50 2020 +0100 blkzone: ioctl related code refactoring [kzak@redhat.com: - generate patch from Damien's v3 - make commands[] initialization more robust] Signed-off-by: Aravind Ramesh Signed-off-by: Damien Le Moal Signed-off-by: Karel Zak sys-utils/blkzone.c | 84 ++++++++++++++++++++++------------------------------- 1 file changed, 34 insertions(+), 50 deletions(-) commit 0cecae9c03b4d197279fe96899722088d389bdce Author: Aravind Ramesh Date: Tue Mar 24 19:02:17 2020 +0900 blkzone: add open/close/finish commands Introduce blkzone open, close and finish commands, issuing BLKOPENZONE, BLKCLOSEZONE and BLKFINISHZONE ioctl commands to open, close or finish a range of zones of a zoned block device. Since these three commands are similar to the existing zone reset command, the existing zone reset command implementation is changed into the generic blkzone_action() internal handler function for processing all zone actions. The BLKOPENZONE, BLKCLOSEZONE and BLKFINISHZONE ioctl commands codes are defined in linux/blkzoned.h starting with kernel version 5.5. To ensure that the blkzone utility compiles even with older blkzoned.h kernel header versions, these ioctl commands are internally defined if the blkzoned.h header definition is not present. Execution of these commands on kernels older than 5.5 will result in a -ENOTTY error (missing ioctl). Signed-off-by: Aravind Ramesh Signed-off-by: Damien Le Moal Tested-by: Hans Holmberg Reviewed-by: Hans Holmberg sys-utils/blkzone.8 | 27 ++++++++++++++++--- sys-utils/blkzone.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 91 insertions(+), 10 deletions(-) commit e7db499f1c12712f31aaaf5f8b0d594b3b8c40de Author: Karel Zak Date: Tue Mar 24 14:30:16 2020 +0100 tests: cleanup fdisk based stuff * use fdisk --noauto-pt to avoid re-creation of the default architecture specific PT * use more verbose "Created a new" messages in the output Signed-off-by: Karel Zak tests/expected/blkid/md-raid0-whole | 4 ++-- tests/expected/blkid/md-raid1-part | 7 ++++--- tests/expected/blkid/md-raid1-whole | 4 ++-- tests/expected/fdisk/align-512-4K | 17 +++++++++-------- tests/expected/fdisk/align-512-4K-63 | 17 +++++++++-------- tests/expected/fdisk/align-512-4K-md | 13 +++++++------ tests/expected/fdisk/align-512-512 | 17 +++++++++-------- tests/expected/fdisk/align-512-512-topology | 17 +++++++++-------- tests/expected/fdisk/gpt-resize | 6 +++--- .../expected/fdisk/mbr-nondos-mode-first-sector-at-end | 2 +- tests/expected/fdisk/sunlabel | 2 +- tests/expected/libfdisk/gpt-all-defaults | 6 +++--- tests/expected/libfdisk/gpt-all-defaults-with-typo | 6 +++--- tests/expected/libfdisk/mkpart-full-gpt | 16 ++++++++-------- tests/expected/libfdisk/mkpart-full-gpt-err-overlap | 8 ++++---- tests/expected/libfdisk/mkpart-full-gpt-nopartno | 16 ++++++++-------- tests/expected/libfdisk/mkpart-full-gpt-partno-gap | 16 ++++++++-------- tests/expected/libfdisk/mkpart-full-gpt-space-gap | 12 ++++++------ tests/expected/libfdisk/mkpart-full-mbr-err-logical | 12 ++++++------ tests/expected/libfdisk/mkpart-full-mbr-err-nospace | 6 +++--- tests/expected/libfdisk/mkpart-full-mbr-err-primary | 6 +++--- tests/expected/libfdisk/mkpart-full-mbr-logical | 16 ++++++++-------- tests/expected/libfdisk/mkpart-full-mbr-nopartno | 16 ++++++++-------- tests/expected/libfdisk/mkpart-full-mbr-primary | 10 +++++----- .../expected/libfdisk/mkpart-full-mbr-primary-nopartno | 10 +++++----- tests/expected/libfdisk/mkpart-full-mbr-space-gap | 8 ++++---- tests/expected/libfdisk/mkpart-gpt | 16 ++++++++-------- tests/expected/libfdisk/mkpart-mbr | 10 +++++----- tests/expected/libfdisk/mkpart-mbr-logic | 16 ++++++++-------- tests/expected/libfdisk/mkpart-mbr-nopartno | 16 ++++++++-------- tests/expected/sfdisk/dos-dump-gaps | 6 +++--- tests/expected/sfdisk/dos-dump-old | 4 ++-- tests/expected/sfdisk/dos-explicit-size | 16 ++++++++-------- tests/expected/sfdisk/dos-read-dump | 14 +++++++------- tests/expected/sfdisk/dos-read-dump-case | 4 ++-- tests/expected/sfdisk/dos-simple-commas | 14 +++++++------- tests/expected/sfdisk/dos-simple-space | 8 ++++---- tests/expected/sfdisk/dump-current | 10 +++++----- tests/expected/sfdisk/dump-v2.32 | 10 +++++----- tests/expected/sfdisk/dump-v2.35 | 10 +++++----- tests/expected/sfdisk/gpt-all-defaults | 12 ++++++------ tests/expected/sfdisk/gpt-read-dump | 10 +++++----- tests/expected/sfdisk/gpt-reorder | 10 +++++----- tests/expected/sfdisk/resize-dos-unsorted | 14 +++++++------- tests/expected/sfdisk/script-quotes | 10 +++++----- tests/expected/sfdisk/script-separator | 10 +++++----- tests/expected/sfdisk/script-type-and-id | 10 +++++----- tests/expected/sfdisk/wipe-fs-to-dos | 4 ++-- tests/expected/sfdisk/wipe-gpt-to-dos | 8 ++++---- tests/expected/sfdisk/wipe-gpt-to-dos-auto | 8 ++++---- tests/expected/sfdisk/wipe-partition | 8 ++++---- tests/functions.sh | 3 ++- tests/ts/blkid/md-raid0-whole | 2 +- tests/ts/blkid/md-raid1-part | 3 ++- tests/ts/blkid/md-raid1-whole | 2 +- tests/ts/eject/umount | 2 +- tests/ts/fdisk/align-512-4K | 3 ++- tests/ts/fdisk/align-512-4K-63 | 3 ++- tests/ts/fdisk/align-512-4K-md | 3 ++- tests/ts/fdisk/align-512-512 | 3 ++- tests/ts/fdisk/align-512-512-topology | 3 ++- tests/ts/fdisk/bsd | 2 +- tests/ts/fdisk/gpt | 2 +- tests/ts/fdisk/mbr-dos-mode | 2 +- tests/ts/fdisk/mbr-nondos-mode | 4 ++-- tests/ts/fdisk/mbr-sort | 2 +- tests/ts/fdisk/sunlabel | 2 +- tests/ts/fsck/ismounted | 1 - tests/ts/libmount/context | 2 +- tests/ts/libmount/context-py | 2 +- tests/ts/libmount/context-utab | 2 +- tests/ts/libmount/context-utab-py | 2 +- tests/ts/mount/fstab-all | 2 +- tests/ts/mount/umount-alltargets | 2 +- tests/ts/mount/umount-recursive | 2 +- tests/ts/sfdisk/dump | 1 - tests/ts/sfdisk/script | 1 - 77 files changed, 298 insertions(+), 288 deletions(-) commit 53a808562d5e19ae91fd37bbe49336472fb3f8ca Author: Karel Zak Date: Tue Mar 24 12:00:28 2020 +0100 fdisk: make sure label defined for some menu entries Signed-off-by: Karel Zak disk-utils/fdisk-menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit f2229320a9f79a414464958c4fb73b83aa20213e Author: Karel Zak Date: Tue Mar 24 11:17:34 2020 +0100 fdisk: add --noauto-pt The default partition table depends on system arch, for example on Sparc it's SUN and on x86_64 it's MBR. This option forces fdisk to keep the device empty and allow user to create non-default PT in more elegant way. Addresses: https://github.com/karelzak/util-linux/pull/994 Signed-off-by: Karel Zak disk-utils/fdisk.8 | 6 +++++- disk-utils/fdisk.c | 12 +++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) commit ca6e434a7d2ee1110b70c0847c4cab1b22f94fb7 Author: Karel Zak Date: Tue Mar 24 10:52:54 2020 +0100 libfdisk: remove unwanted assert() Signed-off-by: Karel Zak libfdisk/src/label.c | 1 - 1 file changed, 1 deletion(-) commit f3c90e91727e137980805daaace67124fe110302 Author: Karel Zak Date: Tue Mar 24 10:48:55 2020 +0100 Revert "tests: fixes fdisk/align-512-* tests" This reverts commit 25f5c514b95e1bf55d5f4bb1717fe2ec7e09d63b. tests/expected/fdisk/align-512-4K | 5 ----- tests/expected/fdisk/align-512-4K-63 | 5 ----- tests/expected/fdisk/align-512-512 | 5 ----- tests/expected/fdisk/align-512-512-topology | 5 ----- tests/ts/fdisk/align-512-4K | 1 - tests/ts/fdisk/align-512-4K-63 | 1 - tests/ts/fdisk/align-512-512 | 1 - tests/ts/fdisk/align-512-512-topology | 1 - 8 files changed, 24 deletions(-) commit 6d9c15887382f9742e7df5a21f351d81da525e01 Merge: ba481a28a 25f5c514b Author: Karel Zak Date: Mon Mar 23 16:35:32 2020 +0100 Merge branch 'fdisk-sparc' of https://github.com/mator/util-linux * 'fdisk-sparc' of https://github.com/mator/util-linux: tests: fixes fdisk/align-512-* tests commit 25f5c514b95e1bf55d5f4bb1717fe2ec7e09d63b Author: Anatoly Pugachev Date: Mon Mar 23 17:23:01 2020 +0300 tests: fixes fdisk/align-512-* tests write 'MSDOS' partition table before test Signed-off-by: Anatoly Pugachev tests/expected/fdisk/align-512-4K | 5 +++++ tests/expected/fdisk/align-512-4K-63 | 5 +++++ tests/expected/fdisk/align-512-512 | 5 +++++ tests/expected/fdisk/align-512-512-topology | 5 +++++ tests/ts/fdisk/align-512-4K | 1 + tests/ts/fdisk/align-512-4K-63 | 1 + tests/ts/fdisk/align-512-512 | 1 + tests/ts/fdisk/align-512-512-topology | 1 + 8 files changed, 24 insertions(+) commit ba481a28a8ec46d266177e31801553c5d2a203dd Author: Karel Zak Date: Mon Mar 23 15:21:48 2020 +0100 libblkid: remove unnecessary uuid.h Addresses: https://github.com/karelzak/util-linux/issues/993 Signed-off-by: Karel Zak libblkid/src/superblocks/zonefs.c | 1 - 1 file changed, 1 deletion(-) commit 5c52c75803b67b103769d4c784a4d3d2808fd892 Merge: 9d691cbc9 d4dc0fcf8 Author: Karel Zak Date: Mon Mar 23 12:14:57 2020 +0100 Merge branch 'eject-sparc' of https://github.com/mator/util-linux * 'eject-sparc' of https://github.com/mator/util-linux: tests: fixes mount tests on SPARC tests: fixes libmount/ on SPARC tests: fixes eject/umount on SPARC commit 9d691cbc9479a69269ec815fc1574e99671e180a Author: Damien Le Moal Date: Fri Mar 20 13:55:43 2020 +0900 libblkid: Add support for zonefs The zonefs filesystem was added to upstream linux kernel 5.6. This patch add support for probing zonefs formatted zoned block devices so that other file system formatting tool can detect its presence on a device. [kzak@redhat.com: - use standard integer types] Signed-off-by: Damien Le Moal Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/superblocks.c | 3 +- libblkid/src/superblocks/superblocks.h | 1 + libblkid/src/superblocks/zonefs.c | 88 ++++++++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+), 1 deletion(-) commit 6cc3a256c4dbd11133af752c82c80e99299c3843 Merge: d044e49f1 735fd5ed2 Author: Karel Zak Date: Mon Mar 23 10:28:16 2020 +0100 Merge branch 'man-kill' of https://github.com/kerolasa/util-linux * 'man-kill' of https://github.com/kerolasa/util-linux: docs: kill.1 add note about shell-internal kill implementations commit d044e49f1b25b2357bdd37071808da1f981bb295 Merge: 9a7dc8411 e368d0ad5 Author: Karel Zak Date: Mon Mar 23 10:27:53 2020 +0100 Merge branch 'libfdisk-script-fix-segmentation-fault' of https://github.com/gportay/util-linux * 'libfdisk-script-fix-segmentation-fault' of https://github.com/gportay/util-linux: lib/mangle: check for the NULL string argument libfdisk: (script) fix segmentation fault commit 735fd5ed2bf8c8366bb8ab0dd9299b61f629f917 Author: Sami Kerola Date: Sun Mar 22 09:37:41 2020 +0000 docs: kill.1 add note about shell-internal kill implementations Requested-by: Ilia Baryshnikov Reference: https://github.com/karelzak/util-linux/issues/991#issuecomment-602108648 Signed-off-by: Sami Kerola misc-utils/kill.1 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit e368d0ad5da392d35afdff8699089346e824d7ac Author: Gaël PORTAY Date: Fri Mar 20 16:21:58 2020 -0400 lib/mangle: check for the NULL string argument This patch prevents to call the function strlen() with a NULL string argument that leads to a segmentation fault. Signed-off-by: Gaël PORTAY include/mangle.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 3468dda9c34b1860d4b64f590651aab718b0cc5e Author: Gaël PORTAY Date: Fri Mar 20 16:10:35 2020 -0400 libfdisk: (script) fix segmentation fault This patch fixes a segmentation fault that occurs if the name value is empty (i.e. name=). Signed-off-by: Gaël PORTAY libfdisk/src/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 9a7dc84118c02eca2a48ad877bf5078e96b08b4d Author: Mark Barbone Date: Thu Mar 19 18:13:46 2020 -0400 Fix typo in the mount (8) man page sys-utils/mount.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f205a073633cc2f72662777c5feb302f2f53b60b Author: Karel Zak Date: Mon Mar 16 10:53:55 2020 +0100 build-sys: fix chfn-chsh configure help text Signed-off-by: Karel Zak configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 36d80cb6c11b3064ed9fb29c7c8b101e3f266441 Author: Karel Zak Date: Wed Mar 11 18:38:09 2020 +0100 libmount: smb2 is unsupported alias Kenneth D'souza wrote: # grep -w MODULE_ALIAS_FS fs/cifs/cifsfs.c MODULE_ALIAS_FS("cifs"); 112/112│MODULE_ALIAS_FS("smb3"); Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1812118 Signed-off-by: Karel Zak libmount/src/tab.c | 1 - libmount/src/utils.c | 1 - 2 files changed, 2 deletions(-) commit d4dc0fcf83a8658d0ec6d56285e8802be2abd6ce Author: Anatoly Pugachev Date: Wed Mar 11 01:05:50 2020 +0300 tests: fixes mount tests on SPARC fdisk partition table fix for writting "msdos" label before the test Signed-off-by: Anatoly Pugachev tests/ts/mount/fstab-all | 1 + tests/ts/mount/umount-alltargets | 1 + tests/ts/mount/umount-recursive | 1 + 3 files changed, 3 insertions(+) commit 356ed88a56e8937b6d3f4a04ec6a4c2929e9f6a6 Author: Anatoly Pugachev Date: Tue Mar 10 20:24:40 2020 +0300 tests: fixes libmount/ on SPARC fdisk partition table fix for writting "msdos" label before test Signed-off-by: Anatoly Pugachev tests/ts/libmount/context | 1 + tests/ts/libmount/context-py | 1 + tests/ts/libmount/context-utab | 1 + tests/ts/libmount/context-utab-py | 1 + 4 files changed, 4 insertions(+) commit f97c20f4a463eea0705c2a3b9866bfdab064c2c8 Author: Anatoly Pugachev Date: Tue Mar 10 19:16:01 2020 +0300 tests: fixes eject/umount on SPARC Since SPARC is using 'sun' partition table by default, make test not to assume that disk has 'dos' partition table, so write 'dos' partition table on disk, before proceeding any further. Signed-off-by: Anatoly Pugachev tests/ts/eject/umount | 1 + 1 file changed, 1 insertion(+) commit b7ff4134beea53688ab3c01484cf59b2ce2d9ce9 Author: Karel Zak Date: Wed Mar 11 10:38:37 2020 +0100 libmount: improve smb{2,3} support It seems kernel can use smb3 as fstype in mountinfo. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1812118 Signed-off-by: Karel Zak libmount/src/tab.c | 6 +++++- libmount/src/utils.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) commit a775c4a4a422af08047499cfce223fed9b079318 Author: Karel Zak Date: Tue Mar 10 20:55:00 2020 +0100 agetty: (man) fix typo Signed-off-by: Karel Zak term-utils/agetty.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 14e7e40314787b70d9c9793b5acee2bf4d22db47 Author: Karel Zak Date: Tue Mar 10 12:33:35 2020 +0100 agetty: (man) add "white" color name Addresses: https://github.com/karelzak/util-linux/issues/979 Signed-off-by: Karel Zak term-utils/agetty.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0a4035ff2e4fd5b5ae0cf8f8665696c2aff53b75 Author: Karel Zak Date: Tue Mar 10 11:43:16 2020 +0100 include: cleanup pidfd inckudes Signed-off-by: Karel Zak include/pidfd-utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit d52786aab7fa7d8ce717ad9fe8fbf84bc746c75a Author: Zbigniew Jędrzejewski-Szmek Date: Tue Feb 25 13:29:08 2020 +0100 fsck.cramfs: fix macro usage Autotoolz does not define HAVE_LCHOWN when the condition is false, so it is appropriate to use #ifdef/#ifndef as everywhere else. Signed-off-by: Karel Zak disk-utils/fsck.cramfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ac660b80fd50cddbfb8605ed18a8229b76a9858e Author: Zbigniew Jędrzejewski-Szmek Date: Sat Feb 22 21:19:26 2020 +0100 build-sys: rename automake variable to match define name Just to make things a bit more consistent. Signed-off-by: Karel Zak configure.ac | 4 ++-- lib/Makemodule.am | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) commit 2f8bfcccf199cb1ce42a87fa473e0dc16459dc7b Author: Zbigniew Jędrzejewski-Szmek Date: Fri Jan 31 07:44:36 2020 +0100 build-sys: remove unneeded include of generated file Signed-off-by: Karel Zak lib/mbsalign.c | 2 -- 1 file changed, 2 deletions(-) commit 53829df2e351ce5879071b05ee0f3afa7b012742 Author: Karel Zak Date: Tue Mar 10 09:45:33 2020 +0100 lib/color-names: add "white" between human-readable Addresses: https://github.com/karelzak/util-linux/issues/979 Signed-off-by: Karel Zak lib/color-names.c | 1 + 1 file changed, 1 insertion(+) commit 8797cb31b94e249e20e25d1e99f318c70905107e Merge: f218fd978 7f1f0584c Author: Karel Zak Date: Tue Mar 10 09:40:34 2020 +0100 Merge branch 'nsenter' of https://github.com/adrianreber/util-linux commit 7f1f0584c24a77909a7c96e62e30f63f4c1b10ad Author: Adrian Reber Date: Mon Mar 9 13:02:45 2020 +0000 nsenter: add support for the time namespace Just as with unshare and lsns this adds time namespace support to nsenter. In contrast to unshare nsenter does not have the options '--boottime' and '--monotonic' as that offset can only be set as long as there have no processes being started in the corresponding time namespace. Signed-off-by: Adrian Reber sys-utils/nsenter.1 | 18 ++++++++++++++++++ sys-utils/nsenter.c | 11 ++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) commit f218fd97847498f505ebb31888261d8cccfcc28b Author: Adrian Reber Date: Mon Mar 9 12:20:51 2020 +0000 unshare: use '-T' for time namespace instead of '-t' While working on getting time namespace support into 'nsenter' it was not possible to use '-t' to enter a time namespace as '-t' is the short option for '--target'. Fortunately '-T' is still available in 'nsenter' and 'unshare' and therefore let's change 'unshare' to use the same flag for the time namespace as 'nsenter'. Signed-off-by: Adrian Reber sys-utils/unshare.1 | 2 +- sys-utils/unshare.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) commit 40c28f51c98877d3cfff1eadbca1225c3bdb71c7 Author: Karel Zak Date: Mon Mar 9 11:07:48 2020 +0100 docs: add rev(1) to TODO Addresses: https://github.com/karelzak/util-linux/issues/972 Signed-off-by: Karel Zak Documentation/TODO | 6 ++++++ 1 file changed, 6 insertions(+) commit 5b9b6d2a74625002a1972d76401e20c49836c3c0 Author: Karel Zak Date: Mon Mar 9 11:03:30 2020 +0100 rev: (man) add note about limitations Addresses: https://github.com/karelzak/util-linux/issues/972 Signed-off-by: Karel Zak text-utils/rev.1 | 4 ++++ 1 file changed, 4 insertions(+) commit c2e82a4aaa8be0b8f922c9eb99f5de55f2f1fa00 Author: Karel Zak Date: Mon Mar 9 10:54:28 2020 +0100 hexdump: fix typo, dcl instead of dc1 Addresses: https://github.com/karelzak/util-linux/issues/976 Signed-off-by: Karel Zak text-utils/hexdump-conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ef0341c9be441b834848d260ba0dbeb47a20f7a3 Merge: d99d822d6 be7df01a6 Author: Karel Zak Date: Mon Mar 9 10:31:45 2020 +0100 Merge branch 'time-namespace' of https://github.com/adrianreber/util-linux * 'time-namespace' of https://github.com/adrianreber/util-linux: unshare: support the time namespace unshare: fix help message indentation commit d99d822d6e79825010e306d15d2e7c9eecafd8b1 Merge: a8fe698c4 96dc4f800 Author: Karel Zak Date: Mon Mar 9 10:29:32 2020 +0100 Merge branch 'lsns' of https://github.com/adrianreber/util-linux * 'lsns' of https://github.com/adrianreber/util-linux: lsns: add time namespace support commit a8fe698c45dc2b3e0555f86b3566bc24c24d8cb3 Merge: e0e297599 fef6fa7d4 Author: Karel Zak Date: Mon Mar 9 10:25:48 2020 +0100 Merge branch 'topic/irq' commit 96dc4f800d0f18d4218cfaf33df94b3a494abb09 Author: Adrian Reber Date: Mon Mar 9 09:16:07 2020 +0000 lsns: add time namespace support # ./lsns -t time NS TYPE NPROCS PID USER COMMAND 4026531834 time 102 1 root /usr/lib/systemd/systemd --switched-root --system --deserialize 29 4026532246 time 1 54797 root sleep 1000 Signed-off-by: Adrian Reber sys-utils/lsns.8 | 4 ++-- sys-utils/lsns.c | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) commit be7df01a62d1284debc6dbe8a77677795b6876ea Author: Adrian Reber Date: Fri Mar 6 12:05:00 2020 +0100 unshare: support the time namespace This adds support to unshare for time namespaces. With the newly added options '-t, --time' and '--monotonic' and '--boottime' it is now possible to change CLOCK_MONOTONIC and CLOCK_BOOTTIME in a new time namespace. The time namespace has been merged in kernel version 5.6 and an easy way to test it is using CLOCK_BOOTTIME and the uptime command: # uptime 11:08:26 up 20:28, 1 user, load average: 0.00, 0.00, 0.00 # ./unshare --fork --time --boottime 100000000 uptime 11:08:29 up 1158 days, 6:15, 1 user, load average: 0.00, 0.00, 0.00 Signed-off-by: Adrian Reber bash-completion/unshare | 3 +++ include/namespace.h | 3 +++ sys-utils/unshare.1 | 29 ++++++++++++++++++++++++++ sys-utils/unshare.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 89 insertions(+), 1 deletion(-) commit 6671501cfa2c49f201d3928d65dd538d3ef5c9cc Author: Adrian Reber Date: Fri Mar 6 12:03:50 2020 +0100 unshare: fix help message indentation A few lines of the help message were unaligned in the output because of mixes use of tabs and space. This removes all tabs and replaces them with spaces. Signed-off-by: Adrian Reber sys-utils/unshare.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit fef6fa7d4059ad9e01b651e2e658bf43bc1ab2c3 Author: Sami Kerola Date: Fri Mar 6 20:34:06 2020 +0000 docs: fix spacing in irqtop and lsirq manual pages And convert font changing macros to ones used in howto-man-page.txt Signed-off-by: Sami Kerola sys-utils/irqtop.1 | 26 +++++++++++++++++--------- sys-utils/lsirq.1 | 21 +++++++++++++-------- 2 files changed, 30 insertions(+), 17 deletions(-) commit 968a50b30ebd75c56930b6a46e4a75a17476c433 Author: Sami Kerola Date: Fri Mar 6 20:14:06 2020 +0000 lsirq: mark --json and --pairs options mutually exclusive Before this change --pairs option would always win over --json. That is unnecessarily confusing, it is much better to disallow combination that does not make sense. Notice that the --noheadings in combination with --json or --pairs will not cause any effect. In strictest possible understanding --noheadings should also be exclusive. Looking from more relaxed point of view neither --json nor --pairs has heading, so excluding is not necessary because --noheading is happening already. Signed-off-by: Sami Kerola sys-utils/lsirq.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 723ec12457d44d78e2ee6d7ca4f522aaf4f74353 Author: Sami Kerola Date: Fri Mar 6 19:49:34 2020 +0000 bash-completion: update irqtop and lsirq completions Signed-off-by: Sami Kerola bash-completion/Makemodule.am | 3 +++ bash-completion/irqtop | 8 +++----- bash-completion/lsirq | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 5 deletions(-) commit 5a20c0dec3ce4c15f95863ce3529621c9394c1d3 Author: Karel Zak Date: Fri Mar 6 16:34:51 2020 +0100 lsirq: add -P option Signed-off-by: Karel Zak sys-utils/irq-common.c | 1 + sys-utils/irq-common.h | 5 +++-- sys-utils/lsirq.1 | 4 ++++ sys-utils/lsirq.c | 7 ++++++- 4 files changed, 14 insertions(+), 3 deletions(-) commit dd52c4fa011d5fe5c4cd82908ec5fee18843b06e Author: Karel Zak Date: Fri Mar 6 16:26:06 2020 +0100 lsirq: add -n option Signed-off-by: Karel Zak sys-utils/lsirq.1 | 5 ++++- sys-utils/lsirq.c | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) commit a0f62b0b2002c85809933e23e13b885e510a3dbb Author: Karel Zak Date: Fri Mar 6 16:21:10 2020 +0100 lsirq: add new command Signed-off-by: Karel Zak .gitignore | 1 + configure.ac | 14 ++++++ sys-utils/Makemodule.am | 10 ++++ sys-utils/irq-common.c | 7 ++- sys-utils/irq-common.h | 2 +- sys-utils/irqtop.c | 2 +- sys-utils/lsirq.1 | 47 ++++++++++++++++++ sys-utils/lsirq.c | 128 ++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 207 insertions(+), 4 deletions(-) commit cb267d2a295beac6c4b8187a41785c6a8dbf5756 Author: Karel Zak Date: Fri Mar 6 16:16:38 2020 +0100 irqtop: cleanup man page Signed-off-by: Karel Zak sys-utils/irqtop.1 | 47 ++++++++++++++++++++--------------------------- 1 file changed, 20 insertions(+), 27 deletions(-) commit 44e39c9940e3e2fbd66b3ec219d4b164cf03720f Author: Karel Zak Date: Fri Mar 6 15:28:57 2020 +0100 irqtop: cleanup sort stuff * user "cmp" in the function names (it does not sort) * keep all in irq-common.c * use column names on command line (e.g. --sort NAME) * hardcode default to sort_result() Signed-off-by: Karel Zak sys-utils/irq-common.c | 64 ++++++++++++++++++++++++++++++++++++++++++-------- sys-utils/irq-common.h | 33 ++++---------------------- sys-utils/irqtop.c | 25 +++++++------------- 3 files changed, 66 insertions(+), 56 deletions(-) commit e925cf378f23ba49d831bcf7072670dc8eed36d2 Author: Karel Zak Date: Fri Mar 6 14:55:19 2020 +0100 irqtop: small cleanup in main() sys-utils/irqtop.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 77f57b90f7d78d9e5473104fa2e1f91ab32404b0 Author: Karel Zak Date: Fri Mar 6 14:49:53 2020 +0100 irqtop: cleanup struct irq_stat use Signed-off-by: Karel Zak sys-utils/irq-common.c | 51 +++++++++++++++++++++++++++----------------------- sys-utils/irq-common.h | 3 ++- sys-utils/irqtop.c | 4 ++-- 3 files changed, 32 insertions(+), 26 deletions(-) commit 9c0740fc644c338967d25f8810a4c07871817d73 Author: Karel Zak Date: Fri Mar 6 14:21:46 2020 +0100 irqtop: move WINDOW back to control struct Signed-off-by: Karel Zak sys-utils/irq-common.c | 2 +- sys-utils/irqtop.c | 34 +++++++++++++++++++--------------- 2 files changed, 20 insertions(+), 16 deletions(-) commit 02f2919e954e54193ba46a891116289a564b9df6 Author: Karel Zak Date: Fri Mar 6 14:11:30 2020 +0100 irqtop: minor cleanup Signed-off-by: Karel Zak sys-utils/irq-common.h | 11 ++++++++++- sys-utils/irqtop.c | 7 ++----- 2 files changed, 12 insertions(+), 6 deletions(-) commit 94e7e258a3bdc7e703132b83bd46aec4ed6eb6b6 Author: Karel Zak Date: Fri Mar 6 14:04:33 2020 +0100 irqtop: move independent code to irq-common.c Signed-off-by: Karel Zak sys-utils/Makemodule.am | 2 + sys-utils/irq-common.c | 362 +++++++++++++++++++++++++++++++++++++ sys-utils/irq-common.h | 75 ++++++++ sys-utils/irqtop.c | 460 +++--------------------------------------------- 4 files changed, 464 insertions(+), 435 deletions(-) commit c6ccf2ec963857b13d64d03434572d9052b38d19 Author: Karel Zak Date: Fri Mar 6 13:38:02 2020 +0100 irqtop: add struct irq_output * add irq_output to keep top-like stufff independent on data management * remove horrible "const" Signed-off-by: Karel Zak sys-utils/irqtop.c | 171 ++++++++++++++++++++++++++++------------------------- 1 file changed, 92 insertions(+), 79 deletions(-) commit 212ca752c1b835f530646e0ae2db594ba560586f Author: Karel Zak Date: Fri Mar 6 12:56:56 2020 +0100 irqtop: keep table in functions only Signed-off-by: Karel Zak sys-utils/irqtop.c | 64 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 28 deletions(-) commit a6fa6aad4b68f442513331a385e398f270209ea8 Author: Karel Zak Date: Fri Mar 6 12:46:45 2020 +0100 irqtop: remove dead code Signed-off-by: Karel Zak sys-utils/irqtop.c | 3 --- 1 file changed, 3 deletions(-) commit ec95b4365f073cf27c9a435a743ea3b6de4d2914 Author: Karel Zak Date: Fri Mar 6 12:44:16 2020 +0100 irqtop: separate normal and ncurses way Signed-off-by: Karel Zak sys-utils/irqtop.c | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-) commit d5280921becf98b7941f45166871f5b55350690c Author: Karel Zak Date: Fri Mar 6 12:36:41 2020 +0100 irqtop: remove unnecessary code * remove unused code smp_num_cpus * care about hostname and timer only real top-like output Signed-off-by: Karel Zak sys-utils/irqtop.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) commit 60794bd2c645c2f1fd1ffdcca0a37cea8d447b85 Author: Karel Zak Date: Fri Mar 6 12:32:39 2020 +0100 irqtop: keep WINDOW pointer in functions only Signed-off-by: Karel Zak sys-utils/irqtop.c | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) commit f675b0080308ea30f953433d37bd9096cdac1c07 Author: Karel Zak Date: Fri Mar 6 12:25:40 2020 +0100 irqtop: separate screen and scols code Signed-off-by: Karel Zak sys-utils/irqtop.c | 74 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 31 deletions(-) commit bd83424b8018e093f9832448df60c60098b76e6e Author: Karel Zak Date: Fri Mar 6 12:12:12 2020 +0100 irqtop: reorder function Move functions to make next changes more readable. Signed-off-by: Karel Zak sys-utils/irqtop.c | 146 ++++++++++++++++++++++++++--------------------------- 1 file changed, 73 insertions(+), 73 deletions(-) commit 487c7466388c29bc29aa4f001f8060f2db0ac33f Author: Karel Zak Date: Fri Mar 6 11:40:49 2020 +0100 irqtop: cleanup command line options * use -o for output columns (like we have in another tools) * support -o +COLUMN Signed-off-by: Karel Zak sys-utils/irqtop.c | 66 ++++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 34 deletions(-) commit b5886f298e6f5d35565b75afc8e77f8e6f9e8b1d Author: Sami Kerola Date: Wed Mar 4 21:39:07 2020 +0000 irqtop: trim white spaces from end of name field Excess white spaces were easiest to see in json output. $ irqtop --once --json { "interrupts": [ {"irq":"LOC", "total":7425148, "name":"Local timer interrupts "}, {"irq":"51", "total":1848384, "name":"IR-PCI-MSI 32768-edge i915 "}, {"irq":"RES", "total":1176665, "name":"Rescheduling interrupts "}, ... Signed-off-by: Sami Kerola sys-utils/irqtop.c | 1 + 1 file changed, 1 insertion(+) commit f5377ca454ebd6e7de5f4fbef41921a15069cdc3 Author: Karel Zak Date: Wed Mar 4 14:58:18 2020 +0100 irqtop: use -J for JSON * add -J to the man page * add note about default output * be compatible with another util-linux tools and use -J Signed-off-by: Karel Zak sys-utils/irqtop.1 | 8 ++++++++ sys-utils/irqtop.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) commit 0d8ead9327f5a7b7983c3cc87f316f0fe1b24e48 Author: Karel Zak Date: Wed Mar 4 14:51:12 2020 +0100 irqtop: don't print header for --once We don't use any extra header for lsblk, lsmem, ... so don't make it different. Signed-off-by: Karel Zak sys-utils/irqtop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 642f6cb0cb2bc3f4f56c55673c77edddbcee1f54 Author: Karel Zak Date: Wed Mar 4 14:47:20 2020 +0100 irqtop: simplify terminal resizing * don't care about term size and attrs when runs only once * explicitly define signals * resize immediately after SIGWINCH (to keep it nice for users) Signed-off-by: Karel Zak sys-utils/irqtop.c | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) commit 6f99d9d61367ca5856073b5e5db0f191c0de7b1e Author: Karel Zak Date: Wed Mar 4 14:17:27 2020 +0100 iqrtop: cleanup header * add '|' to make it more readable * use time string without 'T' Signed-off-by: Karel Zak sys-utils/irqtop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e0e29759981430e572087dfc27334939ec47fd24 Author: Karel Zak Date: Wed Mar 4 13:20:56 2020 +0100 rev: report line on error Signed-off-by: Karel Zak text-utils/rev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 8243036cae35c1be6992b0ef722d68585589d7d7 Author: Karel Zak Date: Wed Mar 4 12:54:24 2020 +0100 lscpu: use official name for HiSilicon tsv110 Addresses: https://github.com/karelzak/util-linux/issues/969 Signed-off-by: Karel Zak sys-utils/lscpu-arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e441601563d8d259653f0d6e517d4db42cbd9d4b Merge: 11b916cda 006607abb Author: Karel Zak Date: Tue Mar 3 16:22:10 2020 +0100 Merge branch 'topic/fdisk' commit 006607abb5c0bc40f1f94da94abb14f0668d8205 Author: Karel Zak Date: Tue Mar 3 16:10:02 2020 +0100 fdisk: add support for parttype aliases * add list of supported aliases to 'l' and 'L' output * support aliases in 't' dialog For example (use 'swap' to set 0x82 partition type): Command (m for help): t Selected partition 1 Hex code or alias (type L to list all): swap Changed type of partition 'Linux' to 'Linux swap / Solaris'. Note that the aliases are evaluated as the last possibility if user's input dues not match up with any partition type. This is necessary for backward compatibility. This patch does NOT introduce shortcuts (.e.g. 'S' for swap) to fdisk(8) due to collisions with already used dialog keys. Addresses: https://github.com/karelzak/util-linux/issues/958 Signed-off-by: Karel Zak disk-utils/fdisk.c | 50 +++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 9 deletions(-) commit 5839a4ea032b47813d4be6406e6d1ad7ee33afe1 Author: Karel Zak Date: Tue Mar 3 16:07:00 2020 +0100 sfdisk: extend --part-type, support aliases * add support for aliases to sfdisk scripts * add shortcuts and aliases to --part-type command Note that --part-type evaluates shortcuts and aliases as the last possibility (so after regular type string). This is necessary for backward compatibility. Example ('raid' type alias): # sfdisk --part-type /dev/sdc 1 raid # fdisk -l /dev/sdc ... Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 204799 202752 99M fd Linux raid autodetect Example ('L' type shortcut): # sfdisk --part-type /dev/sdc 1 L # fdisk -l /dev/sdc ... Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 204799 202752 99M 83 Linux Addresses: https://github.com/karelzak/util-linux/issues/958 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 47 +++++++++++++++++++++++++++++------------------ disk-utils/sfdisk.c | 7 +++++-- 2 files changed, 34 insertions(+), 20 deletions(-) commit f94e753b35cf7a8bdd3a27edb72e094917757334 Author: Karel Zak Date: Tue Mar 3 15:59:49 2020 +0100 libfdisk: add partition type aliases and shortcuts Now, the type shortcuts are supported for sfdisk scripts only. Unfortunately, the current implementation is not generic enough and it's also fragile as 'E' shortcut is in collision with 0x0E type for MBR. The another issue is 'L' which makes shortcuts useless for fdisk where 'L' is used for another purpose in dialogs. This patch introduces partition type aliases as extension to shortcuts. The definition of the shortcut is part of the label definition and it's not more hardcoded in sfdisk script code. This patch also introduces 'Ex' shortcut as replacement for (now deprecated) 'E'. Signed-off-by: Karel Zak libfdisk/src/dos.c | 16 +++ libfdisk/src/fdiskP.h | 17 ++++ libfdisk/src/gpt.c | 13 +++ libfdisk/src/libfdisk.h.in | 36 +++++++ libfdisk/src/libfdisk.sym | 3 + libfdisk/src/parttype.c | 236 +++++++++++++++++++++++++++++++++++++-------- libfdisk/src/script.c | 94 ++---------------- 7 files changed, 291 insertions(+), 124 deletions(-) commit 11b916cdabd9f57a4cddf10fd743af2165930dcd Author: Karel Zak Date: Tue Mar 3 11:39:10 2020 +0100 libmount: try read-only mount on write-protected superblock too The classic mount(8) behavior is to try read-only on write-protected devices if the first mount syscall attempt ends with EACCES. It seems we can implement this feature also for EBUSY if the same mount source is already mounted with "ro" superblock option. The typical use-case is iso image (always read-only) mounted on two places. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1809124 Signed-off-by: Karel Zak libmount/src/context_mount.c | 21 ++++++++++++++++++--- sys-utils/mount.8 | 13 +++++++++---- 2 files changed, 27 insertions(+), 7 deletions(-) commit acd229fc2afe0c402cca3b21e0490be71dec2725 Author: Karel Zak Date: Tue Mar 3 10:55:28 2020 +0100 libmount: move "already mounted" code to separate function Signed-off-by: Karel Zak libmount/src/context_mount.c | 54 +++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 18 deletions(-) commit ac762ed71f982468f4c83291158e97cf86281beb Author: Karel Zak Date: Mon Mar 2 14:41:39 2020 +0100 sfdisk: fix previous --append patch, improve man page - fix stupid typo (!has_container_or_unused(sf)) - use fdisk_is_partition_used() as fdisk_get_partition() returns nothing for unused partition - update tests - add more hints to the man page Addresses: https://github.com/calamares/calamares/issues/1332 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 8 ++++++++ disk-utils/sfdisk.c | 9 ++++++--- tests/expected/sfdisk/dos-dump-gaps | 2 +- tests/expected/sfdisk/dos-dump-old | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) commit fa3fface0f83dbf186f046210700473da7a4800b Author: Karel Zak Date: Mon Mar 2 12:27:36 2020 +0100 sfdisk: fix --append to PT with gaps sfdisk trying to be more smart than libfdisk when analyze if we can append to the current PT. libfdisk is able to use unused partition to create a new one (if partno not strictly specified), but sfdisk assumes that we can add partition to extended partition only. Addresses: https://github.com/calamares/calamares/issues/1332 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) commit 940928c9f172d75952a2d064056c35b56aa8e4e1 Author: Karel Zak Date: Thu Feb 27 14:56:46 2020 +0100 docs: add note about AsciiDocs Signed-off-by: Karel Zak Documentation/TODO | 1 + 1 file changed, 1 insertion(+) commit 079dc9ddcdd1d04f81b6372e5acb65ee4dcf789f Author: Karel Zak Date: Thu Feb 27 14:52:06 2020 +0100 libuuid: add uuid_parse_range() to man page and symbol-table Signed-off-by: Karel Zak libuuid/man/uuid_parse.3 | 14 +++++++++++++- libuuid/src/libuuid.sym | 9 +++++++++ libuuid/src/parse.c | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) commit ef59d1908dcd5228b585d3fe0e68ba0981dee56e Merge: 57b9d60cb e64a8f9cb Author: Karel Zak Date: Thu Feb 27 14:44:43 2020 +0100 Merge branch 'libuuid-range' of https://github.com/UQ-RCC/util-linux * 'libuuid-range' of https://github.com/UQ-RCC/util-linux: libuuid: add uuid_parse_range() commit 57b9d60cb547cf7ec4585d62f573ae4e07068efe Author: Karel Zak Date: Thu Feb 27 14:37:23 2020 +0100 su, runuser: (man) add more info about PATH and PAM Addresses: https://github.com/karelzak/util-linux/issues/964 Signed-off-by: Karel Zak login-utils/runuser.1 | 8 +++++++- login-utils/su.1 | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) commit 189edf1fe501ea39b35911337eab1740888fae7a Author: Karel Zak Date: Thu Feb 27 14:04:55 2020 +0100 hwclock: fix audit exit status According to audit_log_user_message(3) result 1 is "success" and 0 is "failed", we use standard EXIT_{SUCCESS,FAILURE} macros with reverse status. Addresses: https://github.com/karelzak/util-linux/issues/966 Signed-off-by: Karel Zak sys-utils/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1f47d4a2f0c582d2bbfeb33dc9b3b74c340dcd55 Author: Karel Zak Date: Thu Feb 27 13:54:05 2020 +0100 chsh: (man) fix default behavior description Addresses: https://github.com/karelzak/util-linux/issues/967 Signed-off-by: Karel Zak login-utils/chsh.1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit c6d8486aad9ba080504d9b1ab4ea396cb2f1b81a Author: Karel Zak Date: Thu Feb 27 10:02:39 2020 +0100 findmnt: make xalloc use mroe robust Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1807003 Signed-off-by: Karel Zak misc-utils/findmnt.c | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) commit 91b636b5654576d0b808d0030ca9d773099e1db9 Author: Karel Zak Date: Tue Feb 25 15:31:23 2020 +0100 lsblk: fix -P regression from v2.34 Since v2.34 --list prints devices only once to make the output user-readable. Unfortunately, it's regression for scripts/applications where we need to parse lsblk output. So, let's make --pairs and --raw backwardly compatible with versions before 2.34 and print all hierarchy. Addresses: https://github.com/ibm-s390-tools/s390-tools/issues/80 Signed-off-by: Karel Zak misc-utils/lsblk.8 | 10 ++++++---- misc-utils/lsblk.c | 9 +++++---- 2 files changed, 11 insertions(+), 8 deletions(-) commit ce8985cc712aaf0f7e166a6c06adcddf14a4cc22 Author: Karel Zak Date: Tue Feb 25 12:39:26 2020 +0100 libfdisk: (gpt) partition name default to empty string Just for backward compatibility, otherwise it's strange ;-) Signed-off-by: Karel Zak libfdisk/src/gpt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit f4189a087ad2b0faca38f6e0959b4186aa924776 Author: Karel Zak Date: Tue Feb 25 12:25:17 2020 +0100 libfdisk: add missing comments Signed-off-by: Karel Zak libfdisk/src/partition.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit 487b57f58b1010424bf3895a2e99fcfdb5a87261 Author: Karel Zak Date: Tue Feb 25 12:21:32 2020 +0100 libfdisk: use ul_encode_to_utf8() Signed-off-by: Karel Zak libfdisk/src/gpt.c | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) commit 81826929ebb74861dc909ae5605f980735c5000c Author: Karel Zak Date: Tue Feb 25 12:06:06 2020 +0100 libblkid: fix compiler warning [-Wsign-compare] libblkid/src/superblocks/exfat.c: In function ‘probe_exfat’: ./include/c.h:133:17: warning: comparison of distinct pointer types lacks a cast libblkid/src/superblocks/exfat.c:129:5: note: in expansion of macro ‘min’ ./include/c.h:134:8: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] Signed-off-by: Karel Zak libblkid/src/superblocks/exfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 35c6ed615f6f3ef68d26a6c4b655eeeb9d1f5d9e Author: Karel Zak Date: Tue Feb 25 12:00:27 2020 +0100 libblkid: move UTF encoding function to lib/ Let's consolidate the code, we need to use it in libfdisk too. It seems better to keep it generic and libblkid independent. This patch also removes blkid_encode_alloc(), this function is overkill. Signed-off-by: Karel Zak include/Makemodule.am | 1 + include/encode.h | 14 +++++++ lib/Makemodule.am | 1 + lib/encode.c | 77 ++++++++++++++++++++++++++++++++++ libblkid/src/blkidP.h | 11 +---- libblkid/src/encode.c | 71 ------------------------------- libblkid/src/partitions/gpt.c | 2 +- libblkid/src/partitions/partitions.c | 2 +- libblkid/src/superblocks/exfat.c | 2 +- libblkid/src/superblocks/f2fs.c | 2 +- libblkid/src/superblocks/hfs.c | 2 +- libblkid/src/superblocks/iso9660.c | 2 +- libblkid/src/superblocks/ntfs.c | 2 +- libblkid/src/superblocks/superblocks.c | 10 +++-- libblkid/src/superblocks/udf.c | 4 +- 15 files changed, 109 insertions(+), 94 deletions(-) commit e64a8f9cbfb0a8a5ba434523e030b807c5d48955 Author: Zane van Iperen Date: Tue Nov 5 17:21:17 2019 +1000 libuuid: add uuid_parse_range() For compatibility with C++'s std::string_view, et al. Signed-off-by: Zane van Iperen libuuid/src/parse.c | 23 ++++++++++++++++------- libuuid/src/uuid.h | 1 + 2 files changed, 17 insertions(+), 7 deletions(-) commit ebdb0c350af204129b66f5465d9291ffaa89f513 Author: Sami Kerola Date: Mon Feb 24 18:27:16 2020 +0000 docs: remove irqtop TODO item Signed-off-by: Sami Kerola Documentation/TODO | 6 ------ 1 file changed, 6 deletions(-) commit d7f9cdf5356bb930fe2016eb53d64b7807367209 Author: Sami Kerola Date: Mon Feb 24 18:26:38 2020 +0000 irqtop: tidy coding style and update usage() text Signed-off-by: Sami Kerola sys-utils/irqtop.c | 110 ++++++++++++++++++++++++++++------------------------- 1 file changed, 58 insertions(+), 52 deletions(-) commit cd781c405be82540484da3bfe3d3f17a39b8eb5c Author: J William Piggott Date: Fri Feb 21 20:03:47 2020 -0500 hwclock: make glibc 2.31 compatible ______________________________________________________ GNU C Library NEWS -- history of user-visible changes. Version 2.31 Deprecated and removed features, and other changes affecting compatibility: * The settimeofday function can still be used to set a system-wide time zone when the operating system supports it. This is because the Linux kernel reused the API, on some architectures, to describe a system-wide time-zone-like offset between the software clock maintained by the kernel, and the "RTC" clock that keeps time when the system is shut down. However, to reduce the odds of this offset being set by accident, settimeofday can no longer be used to set the time and the offset simultaneously. If both of its two arguments are non-null, the call will fail (setting errno to EINVAL). Callers attempting to set this offset should also be prepared for the call to fail and set errno to ENOSYS; this already happens on the Hurd and on some Linux architectures. The Linux kernel maintainers are discussing a more principled replacement for the reused API. After a replacement becomes available, we will change settimeofday to fail with ENOSYS on all platforms when its 'tzp' argument is not a null pointer. settimeofday itself is obsolescent according to POSIX. Programs that set the system time should use clock_settime and/or the adjtime family of functions instead. We may cease to make settimeofday available to newly linked binaries after there is a replacement for Linux's time-zone-like offset API. ______________________________________________________ hwclock(8) had one settimeofday(2) call where both args were set for --hctosys when the RTC was ticking UTC. This allowed setting the system time, timezone, and locking the warp_clock function with a single call. That operation now takes 3 calls of settimeofday(2). Although this common operation now takes three calls, the overall logic for the set_system_clock() function was simplified. Co-Author: Karel Zak Signed-off-by: J William Piggott sys-utils/hwclock.c | 71 ++++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) commit d5edb1003bf3f06c907ac5e3f342cef3e41bccf9 Author: Karel Zak Date: Mon Feb 24 13:02:09 2020 +0100 umount: don't try it as non-suid if not found mountinfo entry Addresses: https://github.com/karelzak/util-linux/issues/961 Signed-off-by: Karel Zak sys-utils/umount.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit d77e9e13ddb52b5a4bb34df5e02e1852b5786d88 Author: Sami Kerola Date: Sun Feb 23 07:39:11 2020 +0000 irqtop: do not use fixed size /proc/interrupts line buffer Allocating and freeing all the time is a little bit heavier, but it is also more robust. It is impossible to know if field lenghts stay fixed. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) commit 68afc56bcd7eab9a91de9cea6b7bc988efe56f83 Author: Sami Kerola Date: Sat Feb 22 16:42:56 2020 +0000 irqtop: add total and delta as own columns This commit add total and delta as separate columns rather than a toggle, making output generally more informative. When using command I found that sort order key bindings should match with first letter of column headers so that they are as easy as possible to remember, and therefore enhancing user experience. Requested-by: Karel Zak Signed-off-by: Sami Kerola bash-completion/irqtop | 17 +++++++- sys-utils/irqtop.1 | 18 ++++---- sys-utils/irqtop.c | 112 ++++++++++++++++++++++++++++--------------------- 3 files changed, 90 insertions(+), 57 deletions(-) commit 28ddd62bed4759539014a97ef01649f19d79f3a2 Author: Sami Kerola Date: Sat Feb 22 15:19:09 2020 +0000 irqtop: use name instead of desc as irq name field referal This matches with sort order n for name, and allows later usage of d for delta without needing to go around d for description. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) commit daee272009bccf45ad6cc60e3092ca009a07b1c4 Author: Sami Kerola Date: Sat Feb 22 14:48:55 2020 +0000 irqtop: improve header Change total to display delta or count depending on run mode. Add space in between header and irqtop body. Print only number of active CPU in header. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 47 +++++++++++++++++++---------------------------- 1 file changed, 19 insertions(+), 28 deletions(-) commit bf611f4034c26a8b34b220ead5a044dd9d379c99 Author: Sami Kerola Date: Sat Feb 22 08:12:59 2020 +0000 irqtop: hide cursor when in interactive mode Visible cursor is distraction. Secondly with visible cursor key commands can be visible adding unwanted characters to end of output. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 1 + 1 file changed, 1 insertion(+) commit 11b20fb29d96b2a93ccbda77d470634d10352e93 Author: Sami Kerola Date: Fri Feb 21 22:28:43 2020 +0000 irqtop: display number of new interupts in-between updates The rirst output is total count followed by number of interupts since previous screen update. This is how the irqtop worked before libsmartcols was added to the command. Signed-off-by: Sami Kerola sys-utils/irqtop.1 | 4 ++++ sys-utils/irqtop.c | 22 +++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) commit e11f242769153602f2c6c54e1a1a858ab7c95974 Author: Sami Kerola Date: Sat Feb 8 16:28:52 2020 +0000 irqtop: add bash-completion Signed-off-by: Sami Kerola bash-completion/Makemodule.am | 3 +++ bash-completion/irqtop | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) commit 050dc9f9230157022e7f745325b6759faf3b3cab Author: Sami Kerola Date: Sat Feb 8 16:03:07 2020 +0000 irqtop: add manual page Signed-off-by: Sami Kerola sys-utils/Makemodule.am | 1 + sys-utils/irqtop.1 | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) commit 8d8cef804595c3108543c04dcf2e908b4291fe36 Author: Sami Kerola Date: Sat Feb 8 16:00:20 2020 +0000 irqtop: use libsmartcols This makes output to be automatically be nicely adjusted to optimal width. In this commit also removes excess spaces from description strings. Signed-off-by: Sami Kerola sys-utils/Makemodule.am | 4 +- sys-utils/irqtop.c | 276 ++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 221 insertions(+), 59 deletions(-) commit a163d853c6d657f039100d891e2081c008afcb61 Author: Sami Kerola Date: Sun Jan 5 10:40:12 2020 +0000 irqtop: include hostname and timestamp to output header Having a when and from where information is useful in situations when output is examined later and possibly elsewhere. Typical example would be a screenshot or output copy-paste of a terminal to a ticketing system. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) commit fa8c5cd50359784b4c21739996b5a3895b9e48c0 Author: Sami Kerola Date: Sun Jan 5 09:27:19 2020 +0000 irqtop: use epoll event loop The event loop takes care of the standard screen updates, signals, and user inputs. Two nice things using even loop like this are; 1) no need for any global variables and 2) effect of user commands is immediate. Signed-off-by: Sami Kerola configure.ac | 1 + sys-utils/irqtop.c | 132 ++++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 95 insertions(+), 38 deletions(-) commit 29135b232057534903ded03c9ae5d821187bbcaf Author: Sami Kerola Date: Sun Jan 5 09:00:28 2020 +0000 irqtop: move screen update to a separate function The main() was too long. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 214 ++++++++++++++++++++++++++++------------------------- 1 file changed, 112 insertions(+), 102 deletions(-) commit bc90c16a789b01b71c1bd02aba5da2183fa36d1b Author: Sami Kerola Date: Sat Jan 4 09:35:19 2020 +0000 irqtop: fix open file descriptor leak With very short delay one can see irqfile file descriptors pile up rather quickly causing program to stop with too many open files error. This commit fixes that, and removes couple other memory leaks. With these the command should hopefully run fine for days if not even months. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 4e55ffbddece069810a53ad792abda78247bb1d1 Author: Sami Kerola Date: Sat Jan 4 08:32:42 2020 +0000 irqtop: change the update delay to use struct timeval The struct timeval is more expressive, and it allows use of fractional and subsecond intervals. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) commit a937ed0fd42185ee32d5cfea5474cbdbb6631125 Author: Sami Kerola Date: Sat Jan 4 08:08:17 2020 +0000 irqtop: use runtime control structure This is pretty standard util-linux way to avoid global variables, and pass runtime configuration around. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 109 +++++++++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 50 deletions(-) commit 465e279a2654b75ac0054c63f7dacf2c711d409e Author: Sami Kerola Date: Sat Jan 4 07:45:43 2020 +0000 irqtop: use lib/monotonic.c to determine uptime This should be functionally the same, and has the advantage of avoiding duplicated code. Signed-off-by: Sami Kerola sys-utils/Makemodule.am | 5 +++-- sys-utils/irqtop.c | 38 ++++---------------------------------- 2 files changed, 7 insertions(+), 36 deletions(-) commit 9aea73b3ba94dbf9311aea67ce3715d4e15bad4c Author: Sami Kerola Date: Sat Jan 4 07:40:49 2020 +0000 irqtop: use memory allocation that check errors Signed-off-by: Sami Kerola sys-utils/irqtop.c | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) commit a11660d155f371affe5964d9d4d90c4aecb66e05 Author: Sami Kerola Date: Sat Jan 4 07:33:01 2020 +0000 irqtop: avoid function like pre-processor definitions And simplify how terminal size determination. Signed-off-by: Sami Kerola sys-utils/irqtop.c | 46 ++++++++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 18 deletions(-) commit 57e3dc061bc1d0b946489929321c6251f50a42cf Author: Sami Kerola Date: Fri Jan 3 21:06:43 2020 +0000 irqtop: use util-linux libcommon facilities Including NLS support. Signed-off-by: Sami Kerola .gitignore | 1 + include/pathnames.h | 4 + sys-utils/Makemodule.am | 2 +- sys-utils/irqtop.c | 203 +++++++++++++++++++++++++----------------------- 4 files changed, 113 insertions(+), 97 deletions(-) commit 4f6610f5ca542ae6f017f6cc9063d874635f931a Author: Sami Kerola Date: Fri Jan 3 20:38:38 2020 +0000 irqtop: make util-linux build-system to build the command Signed-off-by: Sami Kerola configure.ac | 7 +++++++ sys-utils/Makemodule.am | 7 +++++++ 2 files changed, 14 insertions(+) commit 952690cfd29e792c462fc178305e7dcdb69a444e Author: Sami Kerola Date: Sat Feb 8 17:07:18 2020 +0000 irctop: move source code to sys-utils/ directory And remove files that util-linux does not need from the earlier repository. Signed-off-by: Sami Kerola Makefile | 11 ------- README.md | 73 ------------------------------------------ irqtop.c => sys-utils/irqtop.c | 0 3 files changed, 84 deletions(-) commit 2cd409cf71c9e0250e18da30c7f83ac843826593 Author: zhenwei pi Date: Wed Dec 25 17:56:07 2019 +0800 irqtop: fix all warnings use -Wall for compiling flags, and fix all warnings. Signed-off-by: zhenwei pi Makefile | 2 +- irqtop.c | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) commit 6ce44862724b01a35998fa12b3695d9291f71b40 Author: zhenwei pi Date: Mon Nov 11 20:51:12 2019 +0800 irqtop: init README add basic infomation in README Signed-off-by: zhenwei pi README.md | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) commit ae0dfe14124ab5b3bb999fd909dde5437c1c7335 Author: zhenwei pi Date: Mon Nov 11 20:48:59 2019 +0800 irqtop: implement a new utility to display kernel interrupt currently, there are usually 40/48/64/96 CPUs on a single server, and a lot of interrupts are enabled by multi-queues of a NIC. "/proc/interrupts" is not human readable any more. 'watch -d -n 1 "cat /proc/interrupts"' also can not work well. so implement irqtop to show the interrupts information, we can sort the interrupts by count(default), name and /proc/interrupts. irqtop - IRQ : 49, TOTAL : 2361705032, CPU : 8, ACTIVE CPU : 8 IRQ COUNT DESC CAL 21196 Function call interrupts LOC 13733 Local timer interrupts 154 1430 IR-PCI-MSI 32768-edge i915 127 1322 IR-PCI-MSI 327680-edge xhci_hcd RES 1224 Rescheduling interrupts 146 336 IR-PCI-MSI 520192-edge enp0s31f6 IWI 135 IRQ work interrupts 147 48 IR-PCI-MSI 31981569-edge nvme0q2 151 42 IR-PCI-MSI 31981573-edge nvme0q6 TLB 8 TLB shootdowns 150 7 IR-PCI-MSI 31981572-edge nvme0q5 152 5 IR-PCI-MSI 31981574-edge nvme0q7 156 4 IR-PCI-MSI 1572864-edge iwlwifi 148 3 IR-PCI-MSI 31981570-edge nvme0q3 153 2 IR-PCI-MSI 31981575-edge nvme0q8 NMI 2 Non-maskable interrupts PMI 2 Performance monitoring interrupts 0 0 IR-IO-APIC 2-edge timer 1 0 IR-IO-APIC 1-edge i8042 8 0 IR-IO-APIC 8-edge rtc0 9 0 IR-IO-APIC 9-fasteoi acpi 12 0 IR-IO-APIC 12-edge i8042 test on 4.14 & 4.19, work fine. test on bare metal & kvm virtual machine, work fine. hot-plug/hot-unplug virtual NIC during running irqtop, work fine. Signed-off-by: zhenwei pi Makefile | 11 ++ irqtop.c | 479 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 490 insertions(+) commit e14bd7d31711f7a784c51e587a204403f6a1aa42 Merge: 3c36438f0 1ad0b2fed Author: Karel Zak Date: Fri Feb 21 09:29:48 2020 +0100 Merge branch 'master' of https://github.com/benfrankel/util-linux * 'master' of https://github.com/benfrankel/util-linux: docs: Improve grammar commit 1ad0b2fedae28955bf49d9323c6e6c10b202269b Author: Ben Frankel Date: Thu Feb 20 16:46:47 2020 -0800 docs: Improve grammar sys-utils/lsns.8 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 3c36438f0bac82c344ff8dddec6c4a6b5188f4ca Author: Sami Kerola Date: Thu Feb 20 21:19:37 2020 +0000 fdisk: update expected test outputs with command outputs Reference; https://github.com/karelzak/util-linux/pull/959 Addresses: 5d271cefad0d7a5b4d2fb4fa0f26c1e341f1354c Signed-off-by: Sami Kerola tests/expected/fdisk/bsd_0_64.BE | 10 +++++----- tests/expected/fdisk/bsd_0_64.LE | 10 +++++----- tests/expected/fdisk/bsd_0_64_alpha.LE | 10 +++++----- tests/expected/fdisk/bsd_1_0.BE | 10 +++++----- tests/expected/fdisk/bsd_1_0.LE | 10 +++++----- 5 files changed, 25 insertions(+), 25 deletions(-) commit f6b6beaf6a559f2e5bb1c6e3a8073865288fafcb Author: Sami Kerola Date: Thu Feb 20 20:08:00 2020 +0000 various: fix more lgtm scan warnings The logger and rtwake time function changes continue the same fixes as previous commit - use thread safe functions. The libsmartcols condition removal is possible because width must be greater than tb->termwidth that is size_t and cannot be smaller than zero. And remove couple FIXME's that are old and unlikely ever to get fixed. Reference: 3160589d86470ce7d20c81090fb7f211b3822053 Signed-off-by: Sami Kerola lib/mbsalign.c | 5 ----- libblkid/src/read.c | 23 +---------------------- libsmartcols/src/calculate.c | 2 +- misc-utils/logger.c | 6 +++--- sys-utils/rtcwake.c | 5 +++-- 5 files changed, 8 insertions(+), 33 deletions(-) commit 5d271cefad0d7a5b4d2fb4fa0f26c1e341f1354c Author: Karel Zak Date: Thu Feb 20 15:27:05 2020 +0100 fdisk: improve list-types readability Signed-off-by: Karel Zak disk-utils/fdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4d755765b4bffeaa85846c287459a719351a8255 Author: Karel Zak Date: Thu Feb 20 15:26:28 2020 +0100 sfdisk: (man) add note about type and shortcuts collision Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit aa506f7cc51f9025e62ab2a58f8d5c101e56a062 Merge: 88dbec983 fb4ed8a51 Author: Karel Zak Date: Tue Feb 18 14:06:09 2020 +0100 Merge branch 'master' of https://github.com/pali/util-linux * 'master' of https://github.com/pali/util-linux: exfat: Fix parsing exfat label commit 88dbec98336e9b929ee8f80aff6db39cb9cc32ea Merge: 2fa786215 3cfde0370 Author: Karel Zak Date: Tue Feb 18 14:02:41 2020 +0100 Merge branch 'various-fixes' of https://github.com/kerolasa/util-linux * 'various-fixes' of https://github.com/kerolasa/util-linux: kill: include sys/types.h before checking SYS_pidfd_send_signal libfdisk: fix pointer wraparound warning hwclock: update yacc file script: fix minor warning getopt: use examples installation directory in man page fstrim: randomize timer start time across 100 minutes various: use threadsafe versions of time functions [lgtm scan] write: fix potential string overflow commit 2fa786215a907ae3c52d82289c8fead3779908b1 Merge: bdda35431 bc46ec194 Author: Karel Zak Date: Tue Feb 18 10:00:55 2020 +0100 Merge branch 'parttype-var' of https://github.com/nl6720/util-linux * 'parttype-var' of https://github.com/nl6720/util-linux: libfdisk: add Linux /var, /var/tmp and root verity GPT partition types commit bdda3543142f20a8801f74986ba22104f960c7fa Author: Karel Zak Date: Mon Feb 17 13:13:11 2020 +0100 lscpu: fix SIGSEGV on archs without drawers & books The drawers and books are optional and not supported on all architectures and in this case drawers/books relevant arrays are not allocated, so don't access it although user wants it (e.g.  "lscpu -p -y --output-all"). This patch also cleans up arrays allocation to make it more readable and robust against edit mistakes. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1801760 Signed-off-by: Karel Zak sys-utils/lscpu.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) commit 3cfde0370d3a8949df0c5bcf447cec6692910ed2 Author: Sami Kerola Date: Sat Feb 15 21:12:50 2020 +0000 kill: include sys/types.h before checking SYS_pidfd_send_signal Including sys/types.h must happen before SYS_pidfd_send_signal is checked, because that header defines variable in normal conditions. When sys/types.h does not have SYS_pidfd_send_signal then fallback is defined in config.h that is included by default, and has therefore worked fine before and after this change. Signed-off-by: Sami Kerola include/pidfd-utils.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) commit d8ed9e038c4fe9399698c629a848069eda5df057 Author: Sami Kerola Date: Thu Feb 13 21:28:37 2020 +0000 libfdisk: fix pointer wraparound warning libfdisk/src/gpt.c:1713:6: warning: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow] Signed-off-by: Sami Kerola libfdisk/src/gpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 8608be7c8c48f01ec86bc7c0f55f3c32a118e468 Author: Sami Kerola Date: Thu Feb 13 20:57:53 2020 +0000 hwclock: update yacc file $ bison --update sys-utils/hwclock-parse-date.y sys-utils/hwclock-parse-date.y:287.1-12: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ [-Wdeprecated] Signed-off-by: Sami Kerola sys-utils/hwclock-parse-date.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9565786cb0f7d43c1228195859cc774282a5d27a Author: Sami Kerola Date: Thu Feb 13 20:47:51 2020 +0000 script: fix minor warning ICO C does not allow extra ‘;’ outside of a function [-Wpedantic] Signed-off-by: Sami Kerola term-utils/script-playutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 44702f12f7efc0b14d918a1c7dcde7f52432a200 Author: Sami Kerola Date: Wed Feb 12 21:05:54 2020 +0000 getopt: use examples installation directory in man page Addresses: https://bugs.debian.org/913049 Signed-off-by: Sami Kerola Makefile.am | 1 + misc-utils/.gitignore | 1 + misc-utils/Makemodule.am | 1 + misc-utils/{getopt.1 => getopt.1.in} | 8 +++----- 4 files changed, 6 insertions(+), 5 deletions(-) commit f0158208a9ff5ca8c4d468c4e14cbcaa31d77d78 Author: Sami Kerola Date: Wed Feb 12 20:35:22 2020 +0000 fstrim: randomize timer start time across 100 minutes It should not matter when exactly fstrim runs, so spread these tasks across time to help server farms and such to simultanously get busy with io. Addresses: https://bugs.launchpad.net/bugs/1833593 Signed-off-by: Sami Kerola sys-utils/fstrim.timer | 1 + 1 file changed, 1 insertion(+) commit 3160589d86470ce7d20c81090fb7f211b3822053 Author: Sami Kerola Date: Sun Feb 9 22:14:56 2020 +0000 various: use threadsafe versions of time functions [lgtm scan] Deprecating calls to not-thread safe asctime(), ctime(), and localtime() calls is pretty close to pointless change. Lets do it to reduce lgtm scan warnings with justification it's nicer to use static analysis tools when they have very few positives. Signed-off-by: Sami Kerola include/timeutils.h | 1 + login-utils/last.c | 17 +++++++++++++---- login-utils/login.c | 6 +++++- misc-utils/cal.c | 16 ++++++++-------- misc-utils/logger.c | 8 ++++---- sys-utils/ipcs.c | 43 +++++++++++++++++++++++++------------------ sys-utils/rtcwake.c | 51 +++++++++++++++++++++++++++++++-------------------- term-utils/agetty.c | 19 ++++++++----------- term-utils/wall.c | 6 +++--- 9 files changed, 98 insertions(+), 69 deletions(-) commit cdf84bf65804873708b2b76551d64116123ac128 Author: Sami Kerola Date: Sat Feb 8 21:12:14 2020 +0000 write: fix potential string overflow Noticed when compiled with gcc verion 9.2.1 20200130. term-utils/write.c:182:7: warning: ‘strcmp’ argument 1 declared attribute ‘nonstring’ [-Wstringop-overflow=] 182 | if (strcmp(u->ut_line, ctl->src_tty_name) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/utmpx.h:31, from term-utils/write.c:60: /usr/include/bits/utmpx.h:59:8: note: argument ‘ut_line’ declared here 59 | char ut_line[__UT_LINESIZE] | ^~~~~~~ Signed-off-by: Sami Kerola term-utils/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fb4ed8a511dacfac40d5dc8fae6a7ee78c069e38 Author: Pali Rohár Date: Wed Feb 12 18:08:46 2020 +0100 exfat: Fix parsing exfat label According to released exfat specification, label is only 22 bytes long. libblkid/src/superblocks/exfat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit bc46ec19477bb59c5b6108912b9cb287bf709534 Author: nl6720 Date: Tue Feb 11 12:04:02 2020 +0200 libfdisk: add Linux /var, /var/tmp and root verity GPT partition types See https://github.com/systemd/systemd/pull/14390 and https://systemd.io/DISCOVERABLE_PARTITIONS/ . Also replace a stray tab with a space. include/pt-gpt-partnames.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 3239663361b9b009d7bf99f1529d60a18a1ea9d7 Merge: f88034e81 ef111c0b3 Author: Karel Zak Date: Mon Feb 10 13:51:23 2020 +0100 Merge branch 'master' of https://github.com/pali/util-linux * 'master' of https://github.com/pali/util-linux: tests: Add UDF hdd image with emoji label created by mkudffs 2.2 libblkid: Fix UTF-16 support in function blkid_encode_to_utf8() commit f88034e818387e8ac70f41300ec9ebdde10f485a Author: Karel Zak Date: Mon Feb 10 13:20:04 2020 +0100 tests: add sfdisk --dump test Signed-off-by: Karel Zak tests/expected/sfdisk/dump | 0 tests/expected/sfdisk/dump-current | 48 +++++++++++++++++++++ tests/expected/sfdisk/dump-v2.32 | 47 ++++++++++++++++++++ tests/expected/sfdisk/dump-v2.35 | 48 +++++++++++++++++++++ tests/ts/sfdisk/dump | 88 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 231 insertions(+) commit ef111c0b3e7fbe6394e92485bfeddc66a2137345 Author: Pali Rohár Date: Sun Feb 9 13:04:39 2020 +0100 tests: Add UDF hdd image with emoji label created by mkudffs 2.2 mkudffs 2.2 can create UDF filesystem which label contains Unicode code points above U+FFFF which cannot be represented by UCS-2 encoding and therefore UTF-16 needs to be used (via surrogate pairs). Unicode code points above U+FFFF are encoded in UTF-8 by four bytes and some example is emoji "😀". This is test case to check that libblkid correctly supports UTF-16 decoding. It was created by mkudffs 2.2: $ dd if=/dev/zero of=udf-hdd-mkudffs-2.2.img bs=1M count=10 $ mkudffs -l 😀 udf-hdd-mkudffs-2.2.img tests/expected/blkid/low-probe-udf-hdd-mkudffs-2.2 | 11 +++++++++++ tests/ts/blkid/images-fs/udf-hdd-mkudffs-2.2.img.xz | Bin 0 -> 2396 bytes 2 files changed, 11 insertions(+) commit f8b9b7439456c5ab8d95ad3c27f905ebd501685f Author: Pali Rohár Date: Sun Feb 9 13:04:34 2020 +0100 libblkid: Fix UTF-16 support in function blkid_encode_to_utf8() Function blkid_encode_to_utf8() says that is supports BLKID_ENC_UTF16LE and BLKID_ENC_UTF16BE encodings, but it is not truth and supports only UCS-2 (and not full UTF-16). As all places where BLKID_ENC_UTF16LE and BLKID_ENC_UTF16BE is used expects UTF-16 and not UCS-2, this patch changes implementation of encodings BLKID_ENC_UTF16LE and BLKID_ENC_UTF16BE to supports full UTF-16, including surrogate pairs and not only UCS-2. libblkid/src/encode.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) commit b7c015d1c518893c1254c03772bedb59e8487ba0 Author: Karel Zak Date: Wed Feb 5 14:50:05 2020 +0100 libfdisk: (docs) fix typos Signed-off-by: Karel Zak libfdisk/src/gpt.c | 6 +++--- libfdisk/src/label.c | 1 + libfdisk/src/libfdisk.h.in | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) commit ee5a16025046367dbb417a1110c646ab4683520e Author: Karel Zak Date: Wed Feb 5 14:40:45 2020 +0100 sfdisk: add --relocate command This command allows to relocate GPT backup header behind last partition (--relocate gpt-bak-mini) or to standard position (--relocate gpt-bak-std). Hint: use "fdisk --list-details" to see "Alternative LBA". Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 15 ++++++++++++++- disk-utils/sfdisk.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 63 insertions(+), 3 deletions(-) commit 387ac2771f1b16af00c417b226c697d08d1301fe Author: Karel Zak Date: Wed Feb 5 14:37:41 2020 +0100 libfdisk: (gpt) add functionality to move backup header - add fdisk_gpt_disable_relocation() to disable move backup header to standard location - add fdisk_gpt_enable_minimize() to move backup header behind last partition Note that fdisk_gpt_disable_relocation() has to be used before fdisk_assign_device(), because automatic relocation is done when libfdisk reads the header from the device. For example: lb = fdisk_get_label(cxt, "gpt"); fdisk_gpt_disable_relocation(lb, 1); fdisk_assign_device(cxt, devname, 0); For fdisk_gpt_enable_minimize() it's not important as recalculation is done before write, for example: fdisk_assign_device(cxt, devname, 0); fdisk_gpt_enable_minimize(fdisk_get_label(cxt, NULL), 1); ... add partition, etc ... fdisk_write_disklabel(cxt); Signed-off-by: Karel Zak libfdisk/docs/libfdisk-sections.txt | 2 + libfdisk/src/gpt.c | 132 +++++++++++++++++++++++++++++++++--- libfdisk/src/libfdisk.h.in | 3 + libfdisk/src/libfdisk.sym | 2 + 4 files changed, 129 insertions(+), 10 deletions(-) commit 99d78b2fefe340219059486b42a5acd141ec2642 Author: Karel Zak Date: Mon Feb 3 16:50:43 2020 +0100 fdisk: add --list-details Signed-off-by: Karel Zak disk-utils/fdisk.8 | 3 +++ disk-utils/fdisk.c | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) commit 36cd4b3c465744a8bc89eb846d44985b6a3a3dd2 Author: Karel Zak Date: Fri Jan 31 11:41:08 2020 +0100 libfdisk: (gpt) add GPT debug mask Signed-off-by: Karel Zak libfdisk/src/fdiskP.h | 1 + libfdisk/src/gpt.c | 64 ++++++++++++++++++++++++++------------------------- libfdisk/src/init.c | 3 ++- 3 files changed, 36 insertions(+), 32 deletions(-) commit afb27a8e4c311e621f9258f6e415fb8266fbd88f Author: Karel Zak Date: Fri Jan 31 11:29:12 2020 +0100 libfdisk: (gpt) cleanup and consolidate write code - add fsync after write - use write_all() - use the same code for all write steps Signed-off-by: Karel Zak libfdisk/src/gpt.c | 52 +++++++++++++++++++++------------------------------- 1 file changed, 21 insertions(+), 31 deletions(-) commit f1970cc557907a047da12202cf435ce03ca7b931 Author: Karel Zak Date: Wed Feb 5 11:01:36 2020 +0100 docs: improve size arguments description in --help output Let's add "Arguments:" section to the --help output and describe {K,M,G...}iB suffixes there. Addresses: https://github.com/karelzak/util-linux/pull/917 Co-Author: ed Signed-off-by: Karel Zak disk-utils/fdisk.c | 2 +- include/c.h | 5 +++++ misc-utils/blkid.c | 7 ++++++- misc-utils/mcookie.c | 4 ++++ misc-utils/wipefs.c | 3 +++ sys-utils/blkdiscard.c | 3 +++ sys-utils/blkzone.c | 3 +++ sys-utils/fallocate.c | 3 +++ sys-utils/fstrim.c | 4 ++++ sys-utils/ipcmk.c | 4 ++++ sys-utils/zramctl.c | 3 +++ text-utils/hexdump.c | 6 +++++- 12 files changed, 44 insertions(+), 3 deletions(-) commit 67f938bfbac442f6296704b4f68bc91506cdb0ff Author: Karel Zak Date: Tue Feb 4 11:20:16 2020 +0100 include/c: add USAGE_ARGUMENT Signed-off-by: Karel Zak include/c.h | 1 + 1 file changed, 1 insertion(+) commit ae63d7e8324c00771d1e754fb0c9304529c7cff3 Author: Karel Zak Date: Tue Feb 4 16:17:42 2020 +0100 fstrim: do not use Protect setting in systemd service The ProtectHome= and ProtectSystem= settings mounts all stuff for the service in read-only mode. The fstrim ioctl operates on read-only mountpoint file descriptor, but on some read-only filesystem the operation can fail, so since 2d22ac64e4 we check for read-only volumes and skip it. References: Upstream: http://github.com/karelzak/util-linux/commit/2d22ac64e4d6e6732640f38b7232b5bcdc84a877 Addresses: https://github.com/karelzak/util-linux/issues/948 Signed-off-by: Karel Zak sys-utils/fstrim.service.in | 2 -- 1 file changed, 2 deletions(-) commit da0debad5355fa39c30c9c4de73a19724de6e4b6 Author: Karel Zak Date: Tue Feb 4 15:54:53 2020 +0100 sfdisk: fix ref-counting for the script Signed-off-by: Karel Zak disk-utils/sfdisk.c | 1 + 1 file changed, 1 insertion(+) commit d74b16bdf1205e027eb0dab15845b071435f397a Author: Karel Zak Date: Tue Feb 4 15:54:10 2020 +0100 libfdisk: (script) fix memory leak Signed-off-by: Karel Zak libfdisk/src/script.c | 4 ++++ 1 file changed, 4 insertions(+) commit d8c68b52cc939a16f04ec976648a37f5f5de718c Author: Karel Zak Date: Tue Feb 4 15:11:19 2020 +0100 libfdisk: (script) accept sector-size, ignore unknown headers - add sector-size between supported headers (already in --dump output) - report unknown headers by -ENOTSUP - ignore ENOTSUP in sfdisk (but print warning) and in fdisk_script_read_file() Addresses: https://github.com/karelzak/util-linux/issues/949 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 6 +++++- libfdisk/src/script.c | 49 ++++++++++++++++++++++++++----------------------- 2 files changed, 31 insertions(+), 24 deletions(-) commit fcc3078754291d2f5121797eb91b364f8e24b2f1 Author: jonnyh64 <60403537+jonnyh64@users.noreply.github.com> Date: Wed Jan 29 22:24:16 2020 +0100 chrt: Use sched_setscheduler system call directly musl libc does not support the sched_setscheduler library function because the underlying Linux system call does not confirm to Posix; this patch makes chrt use the system call directly [kzak@redhat.com: - note that musl libc implements sched_setscheduler() but returns -ENOSYS all time... - add ifdefs to the patch - make sure we include syscall.h] References: http://git.musl-libc.org/cgit/musl/commit/src/sched/sched_setscheduler.c?id=1e21e78bf7a5c24c217446d8760be7b7188711c2 Addresses: https://github.com/karelzak/util-linux/issues/943 Signed-off-by: Karel Zak schedutils/chrt.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit caa37b6e18fdcd29e57ab82fe1d54b293fccbf3b Author: Karel Zak Date: Tue Jan 28 12:46:39 2020 +0100 libfdisk: fix __copy_partition() The code called free() for pointers copied from the source partition. Addresses: https://github.com/systemd/systemd/pull/14677 Signed-off-by: Karel Zak libfdisk/src/partition.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 3534b2c7c70776c7d4ed98b435949832981ac3aa Author: Karel Zak Date: Tue Jan 28 12:30:23 2020 +0100 lib/randutils: use explicit data types for bit ops ASAN is pretty unhappy with getpid() << 16, it seems better to save into unsigned int and than do the bit-op. Addresses: https://github.com/karelzak/util-linux/issues/942 Signed-off-by: Karel Zak lib/randutils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit dfe28f0e01df66e5d88f22f6affa305bcf5158aa Author: Karel Zak Date: Tue Jan 28 12:29:44 2020 +0100 libfdisk: make sure we use NULL after free Signed-off-by: Karel Zak libfdisk/src/context.c | 1 + 1 file changed, 1 insertion(+) commit 0683647c703d415d519348d98c991d78a756d170 Author: Karel Zak Date: Tue Jan 28 11:34:04 2020 +0100 lib/strutils: add test for strdup_to_struct_member() Signed-off-by: Karel Zak lib/strutils.c | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) commit 88f04bf9e637b14ff5274e4c4981e43ab2c40c2b Author: Karel Zak Date: Tue Jan 28 10:45:07 2020 +0100 libmount: fix x- options use for non-root users libmount returns EPERM for all X- and x- mount options for non-root users when evaluate X-mount.mkdir. It's bug, we need to be sensitive to only X-mount.mkdir and only if the target directory is missing. Addresses: https://github.com/karelzak/util-linux/issues/941 Signed-off-by: Karel Zak libmount/src/context.c | 41 ++++++++++++++++++++++------------------- sys-utils/mount.8 | 6 +++--- 2 files changed, 25 insertions(+), 22 deletions(-) commit e8c21c894e69ba0c72ecf69e8297cb20ec5f9c1e Author: Karel Zak Date: Mon Jan 27 16:17:10 2020 +0100 build-sys: add --disable-hwclock-gplv3 The currently used date/time parser (for hwclock --set --date ) is gnulib based code with GPLv3. This patch allows to avoid this code and replace it with minimalistic date/time parser. Addresses: https://github.com/karelzak/util-linux/issues/891 Reported-by: Carlos Santos Signed-off-by: Karel Zak configure.ac | 9 +++++++++ sys-utils/Makemodule.am | 5 ++++- sys-utils/hwclock.c | 17 ++++++++++++++--- 3 files changed, 27 insertions(+), 4 deletions(-) commit c2e33769bb81788dd523c7bb3bb7335c242b658f Merge: f0b3df38c 495ed36ad Author: Karel Zak Date: Thu Jan 23 15:57:37 2020 +0100 Merge branch 'master' of https://github.com/yurchor/util-linux * 'master' of https://github.com/yurchor/util-linux: po: update uk.po (from translationproject.org) commit f0b3df38c5d4b7517d30324b944501dc01f10db9 Merge: 704156ad6 dc62fffc0 Author: Karel Zak Date: Thu Jan 23 15:53:19 2020 +0100 Merge branch 'patch-2' of https://github.com/yurchor/util-linux * 'patch-2' of https://github.com/yurchor/util-linux: Fix minor typo: aliast -> alias commit 704156ad63197a4b4f6187dc0b47ab905ddfc624 Merge: b1bc5ae39 760ecc361 Author: Karel Zak Date: Thu Jan 23 15:52:44 2020 +0100 Merge branch 'patch-1' of https://github.com/yurchor/util-linux * 'patch-1' of https://github.com/yurchor/util-linux: Fix minor typo: ussuported -> unsupported commit b1bc5ae39ee6b90da53d7e17b1e6fbe0341433fa Author: Karel Zak Date: Thu Jan 16 14:28:31 2020 +0100 libfdisk: (gpt) cleanup entries array size calculations - move all calculations to inline functions - remove duplicate code - keep the same names for the same stuff Signed-off-by: Karel Zak libfdisk/src/gpt.c | 156 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 108 insertions(+), 48 deletions(-) commit 3c3b7648c98dc51426b852ffb825b5dba978016c Author: Karel Zak Date: Thu Jan 16 12:56:18 2020 +0100 libfdisk: fix const char mess Signed-off-by: Karel Zak libfdisk/src/dos.c | 11 ++++++----- libfdisk/src/gpt.c | 8 +++++--- 2 files changed, 11 insertions(+), 8 deletions(-) commit 65e27d545cb54ac63536a8b6e7d5def180ddb5b7 Author: Karel Zak Date: Tue Jan 14 11:50:46 2020 +0100 sfdisk: add --disk-id to change disk UUID/ID Addresses: https://github.com/karelzak/util-linux/issues/916 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 5 +++++ disk-utils/sfdisk.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) commit e5f31446166de7212213c62a019945afb8e197ef Author: Karel Zak Date: Tue Jan 14 11:43:24 2020 +0100 libfdisk: add fdisk_set_disklabel_id_from_string() We have fdisk_set_disklabel_id(), but it's old ask-API based function. It's not comfortable if you want to avoid dialog or template. Addresses: https://github.com/karelzak/util-linux/issues/916 Signed-off-by: Karel Zak libfdisk/docs/libfdisk-sections.txt | 1 + libfdisk/src/dos.c | 29 ++++++++++++++++++----------- libfdisk/src/fdiskP.h | 2 +- libfdisk/src/gpt.c | 18 ++++++++++-------- libfdisk/src/label.c | 19 ++++++++++++++++++- libfdisk/src/libfdisk.h.in | 1 + libfdisk/src/libfdisk.sym | 3 +++ 7 files changed, 52 insertions(+), 21 deletions(-) commit 34fed3ff1740aded9c2aae6b5d67a4eb696f738e Author: Karel Zak Date: Thu Jan 9 11:03:51 2020 +0100 blkdiscard: use O_EXCL, add --force Let's make it more robust and safe. O_EXCL is an elegant way how to avoid unwanted discard on mounted device. Addresses: https://github.com/karelzak/util-linux/issues/915 Signed-off-by: Karel Zak sys-utils/blkdiscard.8 | 5 +++++ sys-utils/blkdiscard.c | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) commit e3e7cd659ec001cb2c2ebaa55d08231ad819deda Merge: 5db212c03 123b1a670 Author: Karel Zak Date: Thu Jan 23 15:47:15 2020 +0100 Merge branch 'dmverity_sig' of https://github.com/bluca/util-linux * 'dmverity_sig' of https://github.com/bluca/util-linux: libmount: add support for signed verity devices commit 5db212c033855cdd1e46eacb44e830504dde885e Author: Karel Zak Date: Thu Jan 23 15:43:23 2020 +0100 flock: make examples in man page more readable Signed-off-by: Karel Zak sys-utils/flock.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 304323fed17e3436601c9b4572b1ceebab2515e7 Merge: 9fabc6d5f 966bcac37 Author: Karel Zak Date: Thu Jan 23 15:39:42 2020 +0100 Merge branch 'Jookia-patch-1' of https://github.com/Jookia/util-linux * 'Jookia-patch-1' of https://github.com/Jookia/util-linux: flock: Add new example using shell IO redirection commit 9fabc6d5fae3da9106d41c40af6fbef6265ae11b Author: Karel Zak Date: Thu Jan 23 15:07:32 2020 +0100 sfdisk: remove broken step alignment for --move * remove unnecessary and broken step alignment * improve reported information in move log * improve final progress bar update Addresses: https://github.com/karelzak/util-linux/issues/938 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) commit 2b26438c4bf90b7836111cc49d847ee89e49bfa8 Author: Karel Zak Date: Thu Jan 23 12:44:58 2020 +0100 sfdisk: make sure we do not overlap on --move The area we need to move does not have to be aligned to optimal I/O size (step size) -- we need to be sure we do not move data after/before the area. Addresses: https://github.com/karelzak/util-linux/issues/938 Signed-off-by: Karel Zak disk-utils/sfdisk.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit 966bcac37a95837011cf3bf5c588509b56994eda Author: Jookia Date: Thu Jan 23 04:55:35 2020 +0000 flock: Add new example using shell IO redirection sys-utils/flock.1 | 8 ++++++++ 1 file changed, 8 insertions(+) commit 495ed36ad77cf7b1e823c2f24725a9fc244fd74a Author: Yuri Chornoivan Date: Wed Jan 22 20:52:11 2020 +0200 po: update uk.po (from translationproject.org) po/uk.po | 956 ++++++++++++++++++++++++++++----------------------------------- 1 file changed, 429 insertions(+), 527 deletions(-) commit 123b1a6708c37e84c939d63e9f380b81ad1146d3 Author: Luca Boccassi Date: Wed Dec 4 15:06:55 2019 +0000 libmount: add support for signed verity devices A new API was added to libcryptsetup to make use of the kernel's new CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG feature, which allows to sign root hashes. Add a verity.roothashsig option to use it. Device reuse will be allowed only if signatures are used by all, or by none. configure.ac | 9 +++++++ libmount/docs/libmount-sections.txt | 1 + libmount/python/pylibmount.c | 1 + libmount/src/context_veritydev.c | 48 ++++++++++++++++++++++++++++++++++--- libmount/src/libmount.h.in | 1 + libmount/src/optmap.c | 1 + sys-utils/mount.8 | 10 +++++++- 7 files changed, 67 insertions(+), 4 deletions(-) commit dc62fffc05ed3f39622493fd53f1aa3801170b32 Author: Yuri Chornoivan Date: Wed Jan 8 18:43:22 2020 +0200 Fix minor typo: aliast -> alias term-utils/scriptreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 760ecc3613e771d2de4a7802b5905e60f18d9f46 Author: Yuri Chornoivan Date: Wed Jan 8 18:26:14 2020 +0200 Fix minor typo: ussuported -> unsupported term-utils/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b6b7348eeeb1c5e973840f11f44c9fbe9dcf4d88 Author: Thorsten Kukuk Date: Wed Sep 4 14:59:25 2019 +0200 Adjust test output to pass test suite login-utils/logindefs.c | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) commit 9e584ff32428b9832470d19a54bba4838f3a6c34 Author: Thorsten Kukuk Date: Tue Sep 3 15:04:43 2019 +0200 Add support for libeconf configure.ac | 27 +++++++ login-utils/Makemodule.am | 36 +++++++++ login-utils/logindefs.c | 195 +++++++++++++++++++++++++++++++++++++++++++--- login-utils/su-common.c | 7 ++ 4 files changed, 254 insertions(+), 11 deletions(-)