Changes between v2.39-rc3 and v2.39 -------------------------------------------- commit 2dccaae42bfdd0f1e34da11f2023480655308e1b Author: Karel Zak Date: Wed May 17 11:58:48 2023 +0200 build-sys: release++ (v2.39) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit 9a15010a607ed7a73f9c8133be1297963c6faf43 Author: Karel Zak Date: Wed May 17 11:57:07 2023 +0200 docs: update v2.39-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.39-ReleaseNotes | 74 +++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) commit 01b3ed1b260b76fa68177e440c7b905be3ab193d Author: Karel Zak Date: Wed May 17 11:54:01 2023 +0200 po-man: merge changes Signed-off-by: Karel Zak po-man/cs.po | 1098 +- po-man/de.po | 27243 ++++++++++++++++++++------ po-man/es.po | 1098 +- po-man/fr.po | 45424 +++++++++++++++++++++++++++++++++++--------- po-man/pt_BR.po | 1098 +- po-man/sr.po | 33858 +++++++++++++++++++++++++-------- po-man/uk.po | 23914 ++++++++++++++++++----- po-man/util-linux-man.pot | 1098 +- 8 files changed, 105824 insertions(+), 29007 deletions(-) commit 2b8a07897c2f2b434f6e7dffe6da45a712841919 Author: Karel Zak Date: Wed May 17 11:53:42 2023 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 138 ++++++++++++++++++++--------------------- po/cs.po | 181 +++++++++++++++++++++++++++--------------------------- po/da.po | 138 ++++++++++++++++++++--------------------- po/de.po | 181 +++++++++++++++++++++++++++--------------------------- po/es.po | 138 ++++++++++++++++++++--------------------- po/et.po | 138 ++++++++++++++++++++--------------------- po/eu.po | 138 ++++++++++++++++++++--------------------- po/fi.po | 138 ++++++++++++++++++++--------------------- po/fr.po | 181 +++++++++++++++++++++++++++--------------------------- po/gl.po | 138 ++++++++++++++++++++--------------------- po/hr.po | 181 +++++++++++++++++++++++++++--------------------------- po/hu.po | 138 ++++++++++++++++++++--------------------- po/id.po | 138 ++++++++++++++++++++--------------------- po/it.po | 138 ++++++++++++++++++++--------------------- po/ja.po | 138 ++++++++++++++++++++--------------------- po/ko.po | 181 +++++++++++++++++++++++++++--------------------------- po/nl.po | 138 ++++++++++++++++++++--------------------- po/pl.po | 181 +++++++++++++++++++++++++++--------------------------- po/pt.po | 138 ++++++++++++++++++++--------------------- po/pt_BR.po | 138 ++++++++++++++++++++--------------------- po/ru.po | 138 ++++++++++++++++++++--------------------- po/sk.po | 138 ++++++++++++++++++++--------------------- po/sl.po | 138 ++++++++++++++++++++--------------------- po/sr.po | 138 ++++++++++++++++++++--------------------- po/sv.po | 138 ++++++++++++++++++++--------------------- po/tr.po | 138 ++++++++++++++++++++--------------------- po/uk.po | 181 +++++++++++++++++++++++++++--------------------------- po/util-linux.pot | 140 ++++++++++++++++++++--------------------- po/vi.po | 138 ++++++++++++++++++++--------------------- po/zh_CN.po | 138 ++++++++++++++++++++--------------------- po/zh_TW.po | 138 ++++++++++++++++++++--------------------- 31 files changed, 2280 insertions(+), 2301 deletions(-) commit 1dbf17ad63442ef9891d9882261e9086eb1a81f4 Author: Yuri Chornoivan Date: Wed May 17 11:45:41 2023 +0200 po-man: update uk.po (from translationproject.org) po-man/uk.po | 23031 ++++++++++++--------------------------------------------- 1 file changed, 4857 insertions(+), 18174 deletions(-) commit 19be168ed1b1c26a42b2607fc0a8ff68986e3406 Author: Мирослав Николић Date: Wed May 17 11:45:41 2023 +0200 po-man: update sr.po (from translationproject.org) po-man/sr.po | 36080 +++++++++++++-------------------------------------------- 1 file changed, 8328 insertions(+), 27752 deletions(-) commit 37f0e5793b7dbf2c885f63ba0ee253921e66a1ae Author: Frédéric Marchal Date: Wed May 17 11:45:41 2023 +0200 po-man: update fr.po (from translationproject.org) po-man/fr.po | 44436 +++++++++++---------------------------------------------- 1 file changed, 8128 insertions(+), 36308 deletions(-) commit a17a5110e21f129603578a429ce678b6c024b14c Author: Mario Blättermann Date: Wed May 17 11:45:41 2023 +0200 po-man: update de.po (from translationproject.org) po-man/de.po | 26356 +++++++++++---------------------------------------------- 1 file changed, 5012 insertions(+), 21344 deletions(-) commit b6467a72582cffb5f751117b734f4f7fe2f0b781 Author: Petr Písař Date: Wed May 17 11:45:41 2023 +0200 po-man: update cs.po (from translationproject.org) po-man/cs.po | 19334 +++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 14605 insertions(+), 4729 deletions(-) commit 1539605a99efff05095024edfeb1c1068754b948 Author: Yuri Chornoivan Date: Wed May 17 11:44:17 2023 +0200 po: update uk.po (from translationproject.org) po/uk.po | 71 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 35 insertions(+), 36 deletions(-) commit 2c5f434116e212030ef4004e043ca39dff501d4f Author: Jakub Bogusz Date: Wed May 17 11:44:17 2023 +0200 po: update pl.po (from translationproject.org) po/pl.po | 69 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 35 deletions(-) commit f6bd18fc2f8ccbc0b9aa0c4ca9357ce1bffabb77 Author: Seong-ho Cho Date: Wed May 17 11:44:17 2023 +0200 po: update ko.po (from translationproject.org) po/ko.po | 73 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 36 insertions(+), 37 deletions(-) commit 2bb14c79bd6f1086237db8e3f93af33a3c23a2a5 Author: Božidar Putanec Date: Wed May 17 11:44:17 2023 +0200 po: update hr.po (from translationproject.org) po/hr.po | 83 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 41 insertions(+), 42 deletions(-) commit 79db26b167742dbbab17fc85ca36a8a6bba50e04 Author: Frédéric Marchal Date: Wed May 17 11:44:17 2023 +0200 po: update fr.po (from translationproject.org) po/fr.po | 69 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 35 deletions(-) commit 1a7c795e41ce7ef51802a7a72e86b2b6d137afbc Author: Mario Blättermann Date: Wed May 17 11:44:17 2023 +0200 po: update de.po (from translationproject.org) po/de.po | 71 +++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 34 insertions(+), 37 deletions(-) commit 46b69fa5c62522db7c8e1ab6bf8fa3cec5a71466 Author: Petr Písař Date: Wed May 17 11:44:17 2023 +0200 po: update cs.po (from translationproject.org) po/cs.po | 75 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 37 insertions(+), 38 deletions(-) commit e27b9ed2c0ab93779938f2a770aeab8033489ab0 Merge: 31d49139f 10f310719 Author: Karel Zak Date: Mon May 15 12:18:17 2023 +0200 Merge branch 'chown' of https://github.com/mbeijen/util-linux * 'chown' of https://github.com/mbeijen/util-linux: Use non-deprecated chown syntax commit 31d49139f1eee3648844a658f194c529a976d14f Merge: 0e186591a e3dec59f2 Author: Karel Zak Date: Mon May 15 09:41:11 2023 +0200 Merge branch 'po-man/warning' of https://github.com/t-8ch/util-linux * 'po-man/warning' of https://github.com/t-8ch/util-linux: po-man: add warning for replaced unicode dashes commit 0e186591a05fefe1959049799c713aa3a4bd30ac Author: Thomas Weißschuh Date: Sun May 14 18:35:30 2023 +0200 build: align build-time checks between meson and autotools Signed-off-by: Thomas Weißschuh meson.build | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) commit 10f3107199b6e9a3d70cff6280affd2f272d65f4 Author: Chris Hofstaedtler Date: Tue Apr 12 15:41:05 2022 +0000 Use non-deprecated chown syntax Closes: #1007139 tests/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e3dec59f282bce8960129d5fe918843682a5e037 Author: Thomas Weißschuh Date: Fri May 12 10:00:34 2023 +0200 po-man: add warning for replaced unicode dashes Signed-off-by: Thomas Weißschuh tools/asciidoctor-unicodeconverter.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit 0484ca01c5ab83d500ba37daf67bc17213e39363 Author: Karel Zak Date: Thu May 11 10:37:54 2023 +0200 libfdisk: fix fdisk_check_collisions return code The return code (>0) is nowhere in the library used, but let's be compatible with function comment ;-) Signed-off-by: Karel Zak libfdisk/src/context.c | 1 + libfdisk/src/wipe.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) commit 9afcc8a67deddea5cc5cef4911c7a5b769cf895c Author: Karel Zak Date: Thu May 11 09:44:37 2023 +0200 libfdisk: fix wipe-partition feature Addresses: https://github.com/util-linux/util-linux/issues/2216 Signed-off-by: Karel Zak libfdisk/src/partition.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 913399591dbe546ff9bbe299b9a2b294a25b9eac Merge: 45e7e8883 85958aae2 Author: Karel Zak Date: Wed May 10 15:13:17 2023 +0200 Merge branch 'tests' of https://github.com/t-8ch/util-linux * 'tests' of https://github.com/t-8ch/util-linux: ci: don't try to install kernel modules if they are not available ci: update package list before trying to determine package availability tools: (asciidoctor-unicodeconverter) don't fix multi manpages tools: (asciidoctor-unicodeconverter) properly handle dotted commands commit 85958aae20247825dbd68874cfc676d02033debc Author: Thomas Weißschuh Date: Wed May 10 12:20:05 2023 +0200 ci: don't try to install kernel modules if they are not available It seems linux-modules-extra-5.15.0-1036-azure got dropped from Ubuntu repos. Maybe for security reasons. Signed-off-by: Thomas Weißschuh .github/workflows/cibuild-setup-ubuntu.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 36df39ab8a8e883509858949503b623cf197acdf Author: Thomas Weißschuh Date: Wed May 10 12:37:45 2023 +0200 ci: update package list before trying to determine package availability Signed-off-by: Thomas Weißschuh .github/workflows/cibuild-setup-ubuntu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit d08a544eb91bcfb515e2ef58ac7a21993675c9f1 Author: Thomas Weißschuh Date: Wed May 10 12:23:20 2023 +0200 tools: (asciidoctor-unicodeconverter) don't fix multi manpages The logic does not work for manpages describing multiple subjects, so skip it for them. Signed-off-by: Thomas Weißschuh tools/asciidoctor-unicodeconverter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 05c7d67dee09e36688b49da62ba381e36f3a9cf5 Author: Thomas Weißschuh Date: Wed May 10 12:21:24 2023 +0200 tools: (asciidoctor-unicodeconverter) properly handle dotted commands Split from the end of the docname, as otherwise commands like "fsck.foo" are stripped of their suffix. Signed-off-by: Thomas Weißschuh tools/asciidoctor-unicodeconverter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 45e7e8883a7a85713c1528db858b760f4d0d50e0 Author: Chris Webb Date: Tue May 9 17:46:00 2023 +0100 lib/pager: fix output truncation from buffered stdout Commit 518a0ad dropped fflush(stdout) and fflush(stderr) from wait_for_pager() before STDOUT_FILENO and STDERR_FILENO are closed because it is called from a signal handler and they are async-unsafe. However, failure to flush output leads to unwanted truncation when stdout is fully buffered, which it is by default when we are linked against musl. Ensure stdout and stderr are line-buffered before redirecting them to the pager subprocess to avoid this. Addresses: https://github.com/util-linux/util-linux/issues/2218 Signed-off-by: Chris Webb lib/pager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 10d477ac7849eee1ce6ac82b73d6f02ff6db701c Author: Karel Zak Date: Tue May 9 13:25:09 2023 +0200 fsck: use BLKID_SUBLKS_BADCSUM We need to be a little bit more promiscuou in fsck to see also inconsistent superblocks. It would be possible to do not use libmount to ask for filesystem type and ask directly libblkid, but libmount is also used to parse fstab and search in the file and in this case it caches FS tags. It seems better to continue with libmount to reduce overhead and keep the code simple. Addresses: https://github.com/util-linux/util-linux/issues/2214 Signed-off-by: Karel Zak disk-utils/fsck.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 128c416d5c6c28e31ab5c3e831662ec8ab5f8e69 Author: Karel Zak Date: Tue May 9 13:21:58 2023 +0200 libmount: allow overwrite how to use libblkid This is unnecessary for classic mount-like tasks, but application may use libmount in situation when the default for probing is not optimal. Addresses: https://github.com/util-linux/util-linux/issues/2214 Signed-off-by: Karel Zak libmount/docs/libmount-sections.txt | 1 + libmount/src/cache.c | 20 +++++++++++++++++++- libmount/src/libmount.h.in | 1 + libmount/src/libmount.sym | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) commit de75e0cba746895cfa776762efc29a3aa3a2039e Author: Karel Zak Date: Tue May 9 13:19:20 2023 +0200 libfdisk: use BLKID_SUBLKS_BADCSUM and BLKID_PARTS_FORCE_GPT Let's keep libblkid in more promiscuous mode to detect more possible signatures. Signed-off-by: Karel Zak libfdisk/src/wipe.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit fd37e73f31f736104c39140887f4b2d349e8c7e0 Merge: 172ce079a ea94da805 Author: Karel Zak Date: Tue May 9 11:21:57 2023 +0200 Merge branch 'sulogin-term' of https://github.com/DaanDeMeyer/util-linux * 'sulogin-term' of https://github.com/DaanDeMeyer/util-linux: sulogin: Don't overwrite TERM if already set commit 172ce079af5ba6bfff88beecf6ec636ffd345923 Merge: f8717ded9 39e2d567d Author: Karel Zak Date: Tue May 9 11:21:37 2023 +0200 Merge branch 'ci/riscv' of https://github.com/t-8ch/util-linux * 'ci/riscv' of https://github.com/t-8ch/util-linux: ci: also build on riscv64 lsns: (tests) skip test if rtnetlin is nonfunctional commit f8717ded9ffa4809f0475d38edffa1cad2911d22 Author: Karel Zak Date: Tue May 9 10:52:02 2023 +0200 po-man: add cs to po4a.cfg Signed-off-by: Karel Zak po-man/.gitignore | 1 + po-man/po4a.cfg | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit ea94da805a46262a9271f9bc7d839839ca2331eb Author: Daan De Meyer Date: Mon May 8 10:03:09 2023 +0200 sulogin: Don't overwrite TERM if already set The service invoking sulogin might already have set TERM to something useful so if that's the case let's not overwrite it. login-utils/sulogin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 39e2d567d46fdeb7726512568ab1b00921e49241 Author: Thomas Weißschuh Date: Sat May 6 08:25:34 2023 +0200 ci: also build on riscv64 Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) commit 3d0bf25091bb4ab2689a11c91cdf0d7fb655db0f Author: Thomas Weißschuh Date: Sat May 6 23:19:03 2023 +0200 lsns: (tests) skip test if rtnetlin is nonfunctional Signed-off-by: Thomas Weißschuh tests/ts/lsns/netnsid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 09343b315a81629c70462c32094aec92a491a26f Author: Thomas Weißschuh Date: Sat May 6 07:07:01 2023 +0200 po-man: clean all generated files Signed-off-by: Thomas Weißschuh po-man/Makefile.am | 1 + 1 file changed, 1 insertion(+) commit 79b4f0427c296b23d99fa11a946f11cff27638c7 Author: Thomas Weißschuh Date: Sat May 6 06:53:51 2023 +0200 po-man: ignore all generated sources Signed-off-by: Thomas Weißschuh po-man/.gitignore | 5 +++++ 1 file changed, 5 insertions(+) commit 64308ffff6d39c1405379aeb2829eb782ddcc5e1 Author: Thomas Weißschuh Date: Fri May 5 10:42:03 2023 +0200 ci: build translated manpages during test Signed-off-by: Thomas Weißschuh .github/workflows/cibuild-setup-ubuntu.sh | 4 ++++ .github/workflows/cibuild.yml | 1 + 2 files changed, 5 insertions(+) commit dcc187cc8431ae383d44444321125f0b11b51417 Author: Thomas Weißschuh Date: Fri May 5 23:33:14 2023 +0200 tools: (asciidoctor-unicodeconverter) fix up name section with dash Signed-off-by: Thomas Weißschuh tools/asciidoctor-unicodeconverter.rb | 7 +++++++ 1 file changed, 7 insertions(+) commit 54c86b6a4d8f8baadd6186ec8b66792458240ac7 Author: Thomas Weißschuh Date: Fri May 5 23:14:44 2023 +0200 tools: (asciidoctor-unicodeconverter) fix state machine comparision Signed-off-by: Thomas Weißschuh tools/asciidoctor-unicodeconverter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 03f889971b06d6fe37f27f43c465e21dfedc67b0 Author: Thomas Weißschuh Date: Fri May 5 11:11:23 2023 +0200 po-man: fix quoting in comparision to skip nonexisting translations Signed-off-by: Thomas Weißschuh po-man/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 7d376eb903aa507259698e1ae2ea0e6932e4807e Merge: b9158b0ac 32ecb2869 Author: Karel Zak Date: Fri May 5 09:27:33 2023 +0200 Merge branch 'ci/python' of https://github.com/t-8ch/util-linux * 'ci/python' of https://github.com/t-8ch/util-linux: ci: test python bindings commit b9158b0acedae532154234705204fb0d58a983ea Author: Thomas Weißschuh Date: Tue May 2 18:53:20 2023 +0200 tests: (test_sysinfo) include sys/mount.h When fsopen() is not provided by mount-api-utils.h it comes from sys/mount.h. Signed-off-by: Thomas Weißschuh tests/helpers/test_sysinfo.c | 1 + 1 file changed, 1 insertion(+) commit 501b59962451845cb4ff86b0477ddf4d37553d5b Author: Karel Zak Date: Tue May 2 14:59:04 2023 +0200 tests: disable mount/subdir on unshared session without new mount API Signed-off-by: Karel Zak tests/helpers/test_sysinfo.c | 15 +++++++++++++++ tests/ts/mount/subdir | 6 ++++++ 2 files changed, 21 insertions(+) commit 1a0f793e58cf2e4dfcf59d6df38b5b6fec7c3036 Author: Karel Zak Date: Tue May 2 13:27:52 2023 +0200 libmount: (subdir) support unshared sessions too * enter original namespace for the final move_mount(), it means that the original unshare() (to create the temporary mount) will be ineffective for this final step. God bless FD based APIs (setns() and open_tree())! ;-) * improve cleanup code (call umount only once) * remember private namespace * update note in man page Addresses: https://github.com/util-linux/util-linux/pull/2198 Signed-off-by: Karel Zak libmount/src/hook_subdir.c | 86 ++++++++++++++++++++++++++++++---------------- sys-utils/mount.8.adoc | 2 +- tests/ts/mount/subdir | 3 -- 3 files changed, 57 insertions(+), 34 deletions(-) commit 926885e442a5ac36bc4b1b9fe62956898169e87d Merge: bb7a91908 4a889da82 Author: Karel Zak Date: Tue May 2 12:13:53 2023 +0200 Merge branch 'mount/qemu-user' of https://github.com/t-8ch/util-linux * 'mount/qemu-user' of https://github.com/t-8ch/util-linux: mount: (tests) run bind mount tests on qemu-user ci: (s390x) run container privileged and with access to /dev mount: (tests) also skip tests on private,slave propagation mount: (tests) skip fstab-btrfs on broken ENOTTY return lsns: (tests) skip nsfs test on broken ENOTTY return tests: (test_sysinfo) add helper for invalid ioctl errno libmount: fix some typos commit bb7a9190803b467dda2290abe2c70b332c591702 Merge: 8efec058d cb9e271d7 Author: Karel Zak Date: Tue May 2 12:13:27 2023 +0200 Merge branch 'hwclock/skip-test-show' of https://github.com/t-8ch/util-linux * 'hwclock/skip-test-show' of https://github.com/t-8ch/util-linux: hwclock: (tests) mark show test failed on GitHub Actions tests: (functions.sh): add func to detect virtualization platform commit 8efec058d7a513c18f5e5666e79006ded786221a Author: Karel Zak Date: Tue May 2 11:36:49 2023 +0200 sulogin: fix KDGKBMODE ifdef * remove ifdef-else for KDGKBMODE * always call KDGKBMODE for virtual console to get K_UNICODE status * use KDGKBMODE as a fallback to detect serial line Fixes: https://github.com/util-linux/util-linux/issues/2185 Suggested-by: Marcos Mello Signed-off-by: Karel Zak login-utils/sulogin.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 4a889da823befe91c2909179411cdd72f3d44ff5 Author: Thomas Weißschuh Date: Mon Apr 24 17:22:01 2023 +0200 mount: (tests) run bind mount tests on qemu-user Since commit e828630a16c7 ("libmount: recover from ENOSYS for the new API") these work correctly. Signed-off-by: Thomas Weißschuh tests/ts/mount/fstab-bind | 1 - tests/ts/mount/fstab-broken | 1 - tests/ts/mount/fstab-none | 1 - tests/ts/mount/move | 1 - 4 files changed, 4 deletions(-) commit 65aac69be25eb8806fbdc73211f7b55d014fa8dd Author: Thomas Weißschuh Date: Tue Apr 25 08:11:28 2023 +0200 ci: (s390x) run container privileged and with access to /dev This is necessary for the mount tests. Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 1 + 1 file changed, 1 insertion(+) commit 6bf0a331f11062bb852bb995aea1e0f5e59cd707 Author: Thomas Weißschuh Date: Sun Apr 30 20:50:21 2023 +0200 mount: (tests) also skip tests on private,slave propagation On docker the mount propagation is "private,slave". Adapt the pattern to handle this. Signed-off-by: Thomas Weißschuh tests/ts/mount/subdir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9506bd538d7be1426e352a2f344d42dbb2d5181b Author: Thomas Weißschuh Date: Sun Apr 30 10:24:34 2023 +0200 mount: (tests) skip fstab-btrfs on broken ENOTTY return Signed-off-by: Thomas Weißschuh tests/ts/mount/fstab-btrfs | 1 + 1 file changed, 1 insertion(+) commit b007d9a9cec97482f22d932ae39eaa9cf08ba50a Author: Thomas Weißschuh Date: Sun Apr 30 10:24:05 2023 +0200 lsns: (tests) skip nsfs test on broken ENOTTY return Signed-off-by: Thomas Weißschuh tests/ts/lsns/nsfs | 1 + 1 file changed, 1 insertion(+) commit eefdc51113c50798f7b332e9dc48c6631ec9c841 Author: Thomas Weißschuh Date: Sun Apr 30 10:18:20 2023 +0200 tests: (test_sysinfo) add helper for invalid ioctl errno This can be used to detect qemu-user returning ENOSYS for invalid ioctl numbers. Signed-off-by: Thomas Weißschuh tests/functions.sh | 9 +++++++++ tests/helpers/test_sysinfo.c | 12 ++++++++++++ 2 files changed, 21 insertions(+) commit fc57ad3e10352e83ae86f7d77472c723384f4434 Author: Thomas Weißschuh Date: Wed Apr 26 22:50:45 2023 +0200 libmount: fix some typos Signed-off-by: Thomas Weißschuh libmount/src/mountP.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 32ecb286968a812064c58b67f8c819419525f76b Author: Thomas Weißschuh Date: Sun Apr 30 08:47:54 2023 +0200 ci: test python bindings .github/workflows/cibuild-setup-ubuntu.sh | 1 + .github/workflows/cibuild.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) commit cb9e271d77f656af33a8a1cf257b95bcc404b165 Author: Thomas Weißschuh Date: Sun Apr 30 07:56:25 2023 +0200 hwclock: (tests) mark show test failed on GitHub Actions Signed-off-by: Thomas Weißschuh tests/ts/hwclock/show | 5 +++++ 1 file changed, 5 insertions(+) commit 744894aaf3aadb4b4b670ec1cde3626817523863 Author: Thomas Weißschuh Date: Sun Apr 30 08:36:23 2023 +0200 tests: (functions.sh): add func to detect virtualization platform Signed-off-by: Thomas Weißschuh tests/functions.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit 5ac59dfd2d5b9074581570fe722930977ead6ae5 Author: Karel Zak Date: Fri Apr 28 19:56:59 2023 +0200 mount: fix and improve man page subdir desc Addresses: https://github.com/util-linux/util-linux/commit/2186677456f2a03d6645874ccc3e675f204cdb5b#commitcomment-110992331 Signed-off-by: Karel Zak sys-utils/mount.8.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4abedb29371eb03437a419609baa02d1ab8be5aa Author: Karel Zak Date: Fri Apr 28 11:01:01 2023 +0200 tests: skip subdir test if unshared session Addresses: https://github.com/util-linux/util-linux/pull/2197 Signed-off-by: Karel Zak tests/ts/mount/subdir | 4 ++++ 1 file changed, 4 insertions(+) commit 2186677456f2a03d6645874ccc3e675f204cdb5b Author: Karel Zak Date: Fri Apr 28 10:19:52 2023 +0200 mount: (man) add note about namespaces to subdir= desc Addresses: https://github.com/util-linux/util-linux/pull/2198 Signed-off-by: Karel Zak sys-utils/mount.8.adoc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 3be31a106c52e093928afbea2cddbdbe44cfb357 Author: Karel Zak Date: Thu Apr 27 11:21:07 2023 +0200 tests: skip complex mount test on qemu Addresses: https://github.com/util-linux/util-linux/pull/2197 Signed-off-by: Karel Zak tests/ts/mount/complex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit af05020429ba30a4177ba8ed71c3a8a9a4abe67c Merge: 9acfc349e 0f8c17bc1 Author: Karel Zak Date: Wed Apr 26 16:52:18 2023 +0200 Merge branch 'enosys/fixes' of https://github.com/t-8ch/util-linux * 'enosys/fixes' of https://github.com/t-8ch/util-linux: mount: (tests) skip test if test_enosys is nonfunctional test_enosys: provide more diagnostics on failure test_enosys: use correct return value for getopt_long commit 0f8c17bc1ac6fdec6dd4892811c2d78123046d10 Author: Thomas Weißschuh Date: Wed Apr 26 12:15:58 2023 +0200 mount: (tests) skip test if test_enosys is nonfunctional Signed-off-by: Thomas Weißschuh tests/ts/mount/fallback | 2 ++ 1 file changed, 2 insertions(+) commit 4d72417c2efbc1e0aff64c22e87a200a1b2890bd Author: Thomas Weißschuh Date: Wed Apr 26 12:15:33 2023 +0200 test_enosys: provide more diagnostics on failure Signed-off-by: Thomas Weißschuh tests/helpers/test_enosys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 2aeb519ae9b1146c314ffbaf2264d497e0062ff1 Author: Thomas Weißschuh Date: Wed Apr 26 11:49:08 2023 +0200 test_enosys: use correct return value for getopt_long Otherwise option parsing is broken on big endian. Signed-off-by: Thomas Weißschuh tests/helpers/test_enosys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9acfc349e0ea68a92baf818cc659121f40ab9c04 Author: Karel Zak Date: Wed Apr 26 12:20:00 2023 +0200 build-sys: enable translated man pages if po4a installed Suggested-by: Mario Blättermann Signed-off-by: Karel Zak configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b530634e13446bbe469b4001e739f49971bda759 Merge: 7092e6930 3fe8061d4 Author: Karel Zak Date: Wed Apr 26 11:36:08 2023 +0200 Merge branch 'login-utils/supam_conv_fix' of https://github.com/Stefan-Radu/util-linux * 'login-utils/supam_conv_fix' of https://github.com/Stefan-Radu/util-linux: wrap return in #else directive to avoid dead code add return in supam_conv function commit 7092e693039f44200082695b3d99ff6946f91324 Author: Karel Zak Date: Wed Apr 26 11:22:32 2023 +0200 libmount: (legacy) fix typo in assert() Addresses: https://github.com/util-linux/util-linux/pull/2197 Signed-off-by: Karel Zak libmount/src/hook_mount_legacy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit b00f024861b5f79d549d71c9936c62aeb59955bf Author: Karel Zak Date: Wed Apr 26 11:14:42 2023 +0200 tests: add subdir test to mount fallback Signed-off-by: Karel Zak tests/ts/mount/fallback | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) commit 29b9fa932c8f594c2139c8918161337345db788c Author: Karel Zak Date: Wed Apr 26 11:02:03 2023 +0200 libmount: (mount) free hook data if new APi not avalable Signed-off-by: Karel Zak libmount/src/hook_mount.c | 1 + libmount/src/hook_subdir.c | 3 +++ 2 files changed, 4 insertions(+) commit eb8bf48d60d4d5e9c1309f35169cc7d0bf123eb7 Author: Thomas Weißschuh Date: Wed Apr 26 08:50:08 2023 +0200 blockdev: add --getdiskseq to bash completion Signed-off-by: Thomas Weißschuh bash-completion/blockdev | 1 + 1 file changed, 1 insertion(+) commit 3fe8061d4a7cf2e282ef4b67202d351ce05de4d1 Author: Stefan Radu Date: Tue Apr 25 18:55:07 2023 +0300 wrap return in #else directive to avoid dead code Signed-off-by: Stefan Radu login-utils/su-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 077a5e407d5cf169f5fd92b5416e5fe5a8a835da Merge: f4fd63377 2577ff744 Author: Karel Zak Date: Tue Apr 25 17:33:27 2023 +0200 Merge branch 'mount/bind-test' of https://github.com/t-8ch/util-linux * 'mount/bind-test' of https://github.com/t-8ch/util-linux: mount: (tests) skip fstab-bind on qemu-user commit f4fd6337779113f99da3948543f1bf299e413ca7 Author: Karel Zak Date: Tue Apr 25 16:56:09 2023 +0200 tests: extend fsopen libmount fallback test * add later-fsopen check * remove move_mount check (unnecessary) Addresses: https://github.com/util-linux/util-linux/pull/2197 Signed-off-by: Karel Zak tests/ts/mount/fallback | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit e00f81d897287694f29d793cf368e61602e5d901 Merge: 009b369c7 c0793380c Author: Karel Zak Date: Tue Apr 25 16:42:36 2023 +0200 Merge branch 'libmount/enosys' of https://github.com/t-8ch/util-linux * 'libmount/enosys' of https://github.com/t-8ch/util-linux: mount: (tests) add disabled testcase for mount without move_mount() mount: (tests) test fallback codepaths tests: add test_enosys helper commit 009b369c7d95e811470eb5d626b9b498539a007a Author: Karel Zak Date: Tue Apr 25 16:25:14 2023 +0200 libmount: improve ENOSYS fallback In some cases, for example: # mount -t foo,bar,ext4 /dev/sdc /mnt/test libmount calls fsopen() later (after mount preparation stage), but we need during preparation check if hook_mount.c stuff (new API) is usable. Let's do it by dummy fsopen() call. Signed-off-by: Karel Zak libmount/src/hook_mount.c | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) commit 1ade162b7773ffd3a1c83ad9f4ce529ac69d619c Author: Stefan Radu Date: Tue Apr 25 15:00:36 2023 +0300 add return in supam_conv function Added return statement to ensure that all execution paths end with a return statement. Signed-off-by: Stefan Radu login-utils/su-common.c | 1 + 1 file changed, 1 insertion(+) commit 6a1cbe8108319a5bdea3f8306f884cba74a0bd06 Author: Karel Zak Date: Tue Apr 25 12:33:44 2023 +0200 libmount: fix copy & past typo Signed-off-by: Karel Zak libmount/src/hook_idmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 33cc9f6de3cec880e75c95ef5bcd5ae99a640199 Author: Karel Zak Date: Tue Apr 25 12:08:30 2023 +0200 Revert "ci: (s390x/qemu-user) speed up build preparation" This reverts commit 006275ac911e393b5ab6ace921c3b3bb206d6cb0. Addresses: https://github.com/util-linux/util-linux/pull/2198 Signed-off-by: Karel Zak .github/workflows/cibuild.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) commit 006275ac911e393b5ab6ace921c3b3bb206d6cb0 Author: Thomas Weißschuh Date: Tue Apr 25 08:27:12 2023 +0200 ci: (s390x/qemu-user) speed up build preparation By configuring the build action properly the setup steps can be cached, speeding up the build. Signed-off-by: Thomas Weißschuh .github/workflows/cibuild.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) commit 13e267f722f36e5fa7db94f22b6082a6864920e1 Author: Chris Webb Date: Mon Apr 24 17:14:47 2023 +0100 libmount: Don't silently accept an X-mount.idmap with only whitespace X-mount.idmap accepts a series of whitespace-separated tokens. We reject an empty argument but silently accept an argument consisting of whitespace with no tokens. Test for the empty case more thoroughly. [kzak@redhat.com: - use skip_blank()] Signed-off-by: Chris Webb Signed-off-by: Karel Zak libmount/src/hook_idmap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit c0793380c90c0a128d2e45b0de81634e6835f567 Author: Thomas Weißschuh Date: Mon Apr 24 19:11:48 2023 +0200 mount: (tests) add disabled testcase for mount without move_mount() This does currently not work. Signed-off-by: Thomas Weißschuh tests/ts/mount/fallback | 1 + 1 file changed, 1 insertion(+) commit 1098e0974843da02ea8f51efb95a4716ec3ba3b3 Author: Thomas Weißschuh Date: Mon Apr 24 19:11:03 2023 +0200 mount: (tests) test fallback codepaths Signed-off-by: Thomas Weißschuh tests/ts/mount/fallback | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) commit c93114cdbec6eaa860aeda11b1ce8c455273539a Author: Thomas Weißschuh Date: Mon Apr 24 18:35:27 2023 +0200 tests: add test_enosys helper This helper can be used to block certain syscalls with ENOSYS for executed programs. This allows testing of fallback codepaths inside util-linux. Signed-off-by: Thomas Weißschuh meson.build | 6 ++ tests/commands.sh | 1 + tests/helpers/Makemodule.am | 3 + tests/helpers/test_enosys.c | 143 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+) commit e828630a16c7c31bfbce228d6993c1cff7088152 Author: Karel Zak Date: Mon Apr 24 17:29:05 2023 +0200 libmount: recover from ENOSYS for the new API Addresses: https://github.com/util-linux/util-linux/pull/2188 Signed-off-by: Karel Zak libmount/src/hook_mount.c | 11 ++++++++++- libmount/src/mountP.h | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) commit e1da142635acb9f044dfd98a49e15b37559a76d8 Author: Alexander Müller Date: Mon Apr 24 15:08:42 2023 +0200 hexdump: fix ability to use given format when invoked as hd Fixes: https://github.com/util-linux/util-linux/issues/2177 Signed-off-by: Karel Zak text-utils/hexdump.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 26788963f5dd9bec9a1bdda98896791c61dfad92 Author: Karel Zak Date: Mon Apr 24 14:12:14 2023 +0200 include/mount-api-utils: make fallback more portable Addresses: https://github.com/util-linux/util-linux/issues/2186 Signed-off-by: Karel Zak include/mount-api-utils.h | 4 ++++ 1 file changed, 4 insertions(+) commit 01ed0468bcc130154fcf380c73d0f98dbdfe0e4b Author: Chris Webb Date: Sun Apr 23 17:05:07 2023 +0100 libmount: check for errors from prep-options hooks fix_optstr() in context_mount.c calls the MNT_STAGE_PREP_OPTIONS hooks but discards returned errors. This suppresses error messages and can make invalid option strings 'fail open' in surprising ways. Handle error returns from these hooks correctly. No other callers of mnt_context_call_hooks() discard the return value, so other hooks aren't affected. Signed-off-by: Chris Webb libmount/src/context_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2577ff74417de53b880471a70fb135c81b1ccdae Author: Thomas Weißschuh Date: Sat Apr 22 10:56:23 2023 +0200 mount: (tests) skip fstab-bind on qemu-user The necessry functionality is not implemented there. Signed-off-by: Thomas Weißschuh tests/ts/mount/fstab-bind | 1 + 1 file changed, 1 insertion(+) commit 7511ffb9d039a1d2d174e6915eff79b04690d6ac Author: Karel Zak Date: Thu Apr 20 12:36:41 2023 +0200 libmount: don't include mount-api-utils.h everywhere Let's keep the file included only when the new kernel API is necessary. Signed-off-by: Karel Zak libmount/src/hook_idmap.c | 6 +++++- libmount/src/hook_mount.c | 2 ++ libmount/src/hook_subdir.c | 1 + libmount/src/mountP.h | 1 - libmount/src/optlist.c | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) commit 23383519e0f5b1bbc90a90d180265349e83014d3 Merge: ded253327 ffd324602 Author: Karel Zak Date: Thu Apr 20 12:10:17 2023 +0200 Merge branch 'lsfd--ping-test-description' of https://github.com/masatake/util-linux * 'lsfd--ping-test-description' of https://github.com/masatake/util-linux: tests: (lsfd) add losetup as a required cmd tests: (lsfd) make the message for skipping the case more descriptive tests: (mkfds) delete nls markers _("...") from the helper command commit ded253327253dd46c86ba396ddf466c09275b2e8 Merge: 9dd8bb6fa 98f241092 Author: Karel Zak Date: Thu Apr 20 12:09:08 2023 +0200 Merge branch 'libmount/relative' of https://github.com/t-8ch/util-linux * 'libmount/relative' of https://github.com/t-8ch/util-linux: libmount: safe_stat: support relative filenames commit 9dd8bb6fa53afe082ef78be5683ee13e6a4bb36a Merge: 4d544aba2 7c6e8709f Author: Karel Zak Date: Thu Apr 20 11:11:31 2023 +0200 Merge branch 'fadvise' of https://github.com/eworm-de/util-linux * 'fadvise' of https://github.com/eworm-de/util-linux: add waitpid in bash-completion/Makemodule.am add fadvise in bash-completion/Makemodule.am commit 4d544aba2fab6453d2c5c849f5844f5ddc39749a Author: Karel Zak Date: Thu Apr 20 10:52:18 2023 +0200 tests: add mount bind from fstab Signed-off-by: Karel Zak tests/expected/mount/fstab-bind | 1 + tests/ts/mount/fstab-bind | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) commit 57acbb428daa0e8cc2b24c2dcac507f135a0615d Author: Karel Zak Date: Thu Apr 20 10:39:20 2023 +0200 libmount: improve hooks de-initialization Don't cleanup if all related to the hooks is already empty. Signed-off-by: Karel Zak libmount/src/hooks.c | 4 ++++ 1 file changed, 4 insertions(+) commit a55527e6ed506c24a8b25e56381165a1d852b1fd Author: Karel Zak Date: Thu Apr 20 10:30:35 2023 +0200 libmount: fix optlist cache refresh Fixes: https://github.com/util-linux/util-linux/issues/2182 Signed-off-by: Karel Zak libmount/src/optlist.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) commit ffd3246022c936a710e9eca8e20ad8942d4bb8f6 Author: Masatake YAMATO Date: Thu Apr 20 07:48:11 2023 +0900 tests: (lsfd) add losetup as a required cmd Signed-off-by: Masatake YAMATO tests/ts/lsfd/mkfds-ro-block-device | 1 + 1 file changed, 1 insertion(+) commit ca1265456220e602e7d87994c5896e5c99f60f02 Author: Masatake YAMATO Date: Thu Apr 20 07:01:06 2023 +0900 tests: (lsfd) make the message for skipping the case more descriptive Using errno is suggested by Thomas Weißschuh Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 6 ++-- tests/ts/lsfd/lsfd-functions.bash | 1 + tests/ts/lsfd/mkfds-ping | 63 +++++++++++++++++++++++++++++++++++++-- 3 files changed, 66 insertions(+), 4 deletions(-) commit 8d274ab531608b20623793985026709dbc2d382b Author: Masatake YAMATO Date: Thu Apr 20 06:37:26 2023 +0900 tests: (mkfds) delete nls markers _("...") from the helper command No translation is needed. Signed-off-by: Masatake YAMATO tests/helpers/test_mkfds.c | 73 +++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 37 deletions(-) commit 98f24109257958ef045370a0d811e02e366fd016 Author: Thomas Weißschuh Date: Wed Apr 19 21:48:00 2023 +0200 libmount: safe_stat: support relative filenames By using AT_CWFD the call to statx() can also handle relative filenames. Without this safe_stat() which is called on the fstab, source, target... Signed-off-by: Thomas Weißschuh libmount/src/utils.c | 2 +- tests/ts/mount/fstab-all | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) commit 7c6e8709f8b2289905feb2950a4f2a379c4f2361 Author: Christian Hesse Date: Wed Apr 19 15:05:00 2023 +0200 add waitpid in bash-completion/Makemodule.am bash-completion/Makemodule.am | 3 +++ 1 file changed, 3 insertions(+) commit 526644982fd24ff02b3bcf83cdcd5fc7718c3e24 Author: Christian Hesse Date: Wed Apr 19 14:57:31 2023 +0200 add fadvise in bash-completion/Makemodule.am bash-completion/Makemodule.am | 3 +++ 1 file changed, 3 insertions(+)