]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
11 months agoMerge branch 'mkswap/offset' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 17 May 2023 11:27:55 +0000 (13:27 +0200)] 
Merge branch 'mkswap/offset' of https://github.com/t-8ch/util-linux

* 'mkswap/offset' of https://github.com/t-8ch/util-linux:
  mkswap: implement --offset
  mkswap: (tests) don't overwrite logfiles
  mkswap: (tests) validate existence of truncate command

11 months agoMerge branch 'blockdev/zonesz' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 17 May 2023 11:26:34 +0000 (13:26 +0200)] 
Merge branch 'blockdev/zonesz' of https://github.com/t-8ch/util-linux

* 'blockdev/zonesz' of https://github.com/t-8ch/util-linux:
  blockdev: add support for BLKGETZONESZ

11 months agoMerge branch 'mount/tests/fstab' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 17 May 2023 11:25:25 +0000 (13:25 +0200)] 
Merge branch 'mount/tests/fstab' of https://github.com/t-8ch/util-linux

* 'mount/tests/fstab' of https://github.com/t-8ch/util-linux:
  mount: (tests) reuse well-known per-test fstab location
  tests: (functions.sh) use per-test fstab file
  mount: (tests) explicitly use test fstab location
  tests: (functions.sh) create variable for test fstab location

11 months agobuild-sys: release++ (v2.39) v2.39
Karel Zak [Wed, 17 May 2023 09:58:48 +0000 (11:58 +0200)] 
build-sys: release++ (v2.39)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agodocs: update v2.39-ReleaseNotes
Karel Zak [Wed, 17 May 2023 09:57:07 +0000 (11:57 +0200)] 
docs: update v2.39-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agopo-man: merge changes
Karel Zak [Wed, 17 May 2023 09:54:01 +0000 (11:54 +0200)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agopo: merge changes
Karel Zak [Wed, 17 May 2023 09:53:42 +0000 (11:53 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agopo-man: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)] 
po-man: update uk.po (from translationproject.org)

11 months agopo-man: update sr.po (from translationproject.org)
Мирослав Николић [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)] 
po-man: update sr.po (from translationproject.org)

11 months agopo-man: update fr.po (from translationproject.org)
Frédéric Marchal [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)] 
po-man: update fr.po (from translationproject.org)

11 months agopo-man: update de.po (from translationproject.org)
Mario Blättermann [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)] 
po-man: update de.po (from translationproject.org)

11 months agopo-man: update cs.po (from translationproject.org)
Petr Písař [Wed, 17 May 2023 09:45:41 +0000 (11:45 +0200)] 
po-man: update cs.po (from translationproject.org)

11 months agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)] 
po: update uk.po (from translationproject.org)

11 months agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)] 
po: update pl.po (from translationproject.org)

11 months agopo: update ko.po (from translationproject.org)
Seong-ho Cho [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)] 
po: update ko.po (from translationproject.org)

11 months agopo: update hr.po (from translationproject.org)
Božidar Putanec [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)] 
po: update hr.po (from translationproject.org)

11 months agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)] 
po: update fr.po (from translationproject.org)

11 months agopo: update de.po (from translationproject.org)
Mario Blättermann [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)] 
po: update de.po (from translationproject.org)

11 months agopo: update cs.po (from translationproject.org)
Petr Písař [Wed, 17 May 2023 09:44:17 +0000 (11:44 +0200)] 
po: update cs.po (from translationproject.org)

11 months agoMerge branch 'chown' of https://github.com/mbeijen/util-linux
Karel Zak [Mon, 15 May 2023 10:18:17 +0000 (12:18 +0200)] 
Merge branch 'chown' of https://github.com/mbeijen/util-linux

* 'chown' of https://github.com/mbeijen/util-linux:
  Use non-deprecated chown syntax

11 months agoMerge branch 'po-man/warning' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 15 May 2023 07:41:11 +0000 (09:41 +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

11 months agobuild: align build-time checks between meson and autotools
Thomas Weißschuh [Sun, 14 May 2023 16:35:30 +0000 (18:35 +0200)] 
build: align build-time checks between meson and autotools

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agomount: (tests) reuse well-known per-test fstab location
Thomas Weißschuh [Sat, 22 Apr 2023 15:50:03 +0000 (17:50 +0200)] 
mount: (tests) reuse well-known per-test fstab location

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agotests: (functions.sh) use per-test fstab file
Thomas Weißschuh [Sat, 22 Apr 2023 15:20:45 +0000 (17:20 +0200)] 
tests: (functions.sh) use per-test fstab file

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agomount: (tests) explicitly use test fstab location
Thomas Weißschuh [Sat, 22 Apr 2023 15:34:28 +0000 (17:34 +0200)] 
mount: (tests) explicitly use test fstab location

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agotests: (functions.sh) create variable for test fstab location
Thomas Weißschuh [Sat, 22 Apr 2023 15:48:58 +0000 (17:48 +0200)] 
tests: (functions.sh) create variable for test fstab location

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agoUse non-deprecated chown syntax
Chris Hofstaedtler [Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)] 
Use non-deprecated chown syntax

Closes: #1007139
11 months agopo-man: add warning for replaced unicode dashes
Thomas Weißschuh [Fri, 12 May 2023 08:00:34 +0000 (10:00 +0200)] 
po-man: add warning for replaced unicode dashes

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agomkswap: implement --offset
Thomas Weißschuh [Fri, 28 Apr 2023 18:42:01 +0000 (20:42 +0200)] 
mkswap: implement --offset

Addresses #2166

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agomkswap: (tests) don't overwrite logfiles
Thomas Weißschuh [Fri, 28 Apr 2023 18:32:00 +0000 (20:32 +0200)] 
mkswap: (tests) don't overwrite logfiles

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agomkswap: (tests) validate existence of truncate command
Thomas Weißschuh [Fri, 28 Apr 2023 18:31:43 +0000 (20:31 +0200)] 
mkswap: (tests) validate existence of truncate command

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
11 months agolibfdisk: fix fdisk_check_collisions return code
Karel Zak [Thu, 11 May 2023 08:37:54 +0000 (10:37 +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 <kzak@redhat.com>
11 months agolibfdisk: fix wipe-partition feature
Karel Zak [Thu, 11 May 2023 07:44:37 +0000 (09:44 +0200)] 
libfdisk: fix wipe-partition feature

Addresses: https://github.com/util-linux/util-linux/issues/2216
Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agoMerge branch 'tests' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 10 May 2023 13:13:17 +0000 (15:13 +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

12 months agoci: don't try to install kernel modules if they are not available
Thomas Weißschuh [Wed, 10 May 2023 10:20:05 +0000 (12:20 +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 <thomas@t-8ch.de>
12 months agoci: update package list before trying to determine package availability
Thomas Weißschuh [Wed, 10 May 2023 10:37:45 +0000 (12:37 +0200)] 
ci: update package list before trying to determine package availability

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotools: (asciidoctor-unicodeconverter) don't fix multi manpages
Thomas Weißschuh [Wed, 10 May 2023 10:23:20 +0000 (12:23 +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 <thomas@t-8ch.de>
12 months agotools: (asciidoctor-unicodeconverter) properly handle dotted commands
Thomas Weißschuh [Wed, 10 May 2023 10:21:24 +0000 (12:21 +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 <thomas@t-8ch.de>
12 months agolib/pager: fix output truncation from buffered stdout
Chris Webb [Tue, 9 May 2023 16:46:00 +0000 (17:46 +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 <chris@arachsys.com>
12 months agofsck: use BLKID_SUBLKS_BADCSUM
Karel Zak [Tue, 9 May 2023 11:25:09 +0000 (13:25 +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 <kzak@redhat.com>
12 months agolibmount: allow overwrite how to use libblkid
Karel Zak [Tue, 9 May 2023 11:21:58 +0000 (13:21 +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 <kzak@redhat.com>
12 months agolibfdisk: use BLKID_SUBLKS_BADCSUM and BLKID_PARTS_FORCE_GPT
Karel Zak [Tue, 9 May 2023 11:19:20 +0000 (13:19 +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 <kzak@redhat.com>
12 months agoMerge branch 'sulogin-term' of https://github.com/DaanDeMeyer/util-linux
Karel Zak [Tue, 9 May 2023 09:21:57 +0000 (11:21 +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

12 months agoMerge branch 'ci/riscv' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 9 May 2023 09:21:37 +0000 (11:21 +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

12 months agopo-man: add cs to po4a.cfg
Karel Zak [Tue, 9 May 2023 08:52:02 +0000 (10:52 +0200)] 
po-man: add cs to po4a.cfg

Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agosulogin: Don't overwrite TERM if already set
Daan De Meyer [Mon, 8 May 2023 08:03:09 +0000 (10:03 +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.

12 months agoci: also build on riscv64
Thomas Weißschuh [Sat, 6 May 2023 06:25:34 +0000 (08:25 +0200)] 
ci: also build on riscv64

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agolsns: (tests) skip test if rtnetlin is nonfunctional
Thomas Weißschuh [Sat, 6 May 2023 21:19:03 +0000 (23:19 +0200)] 
lsns: (tests) skip test if rtnetlin is nonfunctional

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agopo-man: clean all generated files
Thomas Weißschuh [Sat, 6 May 2023 05:07:01 +0000 (07:07 +0200)] 
po-man: clean all generated files

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agopo-man: ignore all generated sources
Thomas Weißschuh [Sat, 6 May 2023 04:53:51 +0000 (06:53 +0200)] 
po-man: ignore all generated sources

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agoci: build translated manpages during test
Thomas Weißschuh [Fri, 5 May 2023 08:42:03 +0000 (10:42 +0200)] 
ci: build translated manpages during test

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotools: (asciidoctor-unicodeconverter) fix up name section with dash
Thomas Weißschuh [Fri, 5 May 2023 21:33:14 +0000 (23:33 +0200)] 
tools: (asciidoctor-unicodeconverter) fix up name section with dash

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotools: (asciidoctor-unicodeconverter) fix state machine comparision
Thomas Weißschuh [Fri, 5 May 2023 21:14:44 +0000 (23:14 +0200)] 
tools: (asciidoctor-unicodeconverter) fix state machine comparision

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agopo-man: fix quoting in comparision to skip nonexisting translations
Thomas Weißschuh [Fri, 5 May 2023 09:11:23 +0000 (11:11 +0200)] 
po-man: fix quoting in comparision to skip nonexisting translations

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agoblockdev: add support for BLKGETZONESZ
Thomas Weißschuh [Wed, 26 Apr 2023 06:53:28 +0000 (08:53 +0200)] 
blockdev: add support for BLKGETZONESZ

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agoMerge branch 'ci/python' of https://github.com/t-8ch/util-linux
Karel Zak [Fri, 5 May 2023 07:27:33 +0000 (09:27 +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

12 months agotests: (test_sysinfo) include sys/mount.h
Thomas Weißschuh [Tue, 2 May 2023 16:53:20 +0000 (18:53 +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 <thomas@t-8ch.de>
12 months agotests: disable mount/subdir on unshared session without new mount API
Karel Zak [Tue, 2 May 2023 12:59:04 +0000 (14:59 +0200)] 
tests: disable mount/subdir on unshared session without new mount API

Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agolibmount: (subdir) support unshared sessions too
Karel Zak [Tue, 2 May 2023 11:27:52 +0000 (13:27 +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 <kzak@redhat.com>
12 months agoMerge branch 'mount/qemu-user' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 2 May 2023 10:13:53 +0000 (12:13 +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

12 months agoMerge branch 'hwclock/skip-test-show' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 2 May 2023 10:13:27 +0000 (12:13 +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

12 months agosulogin: fix KDGKBMODE ifdef
Karel Zak [Tue, 2 May 2023 09:36:49 +0000 (11:36 +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 <kzak@redhat.com>
12 months agomount: (tests) run bind mount tests on qemu-user
Thomas Weißschuh [Mon, 24 Apr 2023 15:22:01 +0000 (17:22 +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 <thomas@t-8ch.de>
12 months agoci: (s390x) run container privileged and with access to /dev
Thomas Weißschuh [Tue, 25 Apr 2023 06:11:28 +0000 (08:11 +0200)] 
ci: (s390x) run container privileged and with access to /dev

This is necessary for the mount tests.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agomount: (tests) also skip tests on private,slave propagation
Thomas Weißschuh [Sun, 30 Apr 2023 18:50:21 +0000 (20:50 +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 <thomas@t-8ch.de>
12 months agomount: (tests) skip fstab-btrfs on broken ENOTTY return
Thomas Weißschuh [Sun, 30 Apr 2023 08:24:34 +0000 (10:24 +0200)] 
mount: (tests) skip fstab-btrfs on broken ENOTTY return

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agolsns: (tests) skip nsfs test on broken ENOTTY return
Thomas Weißschuh [Sun, 30 Apr 2023 08:24:05 +0000 (10:24 +0200)] 
lsns: (tests) skip nsfs test on broken ENOTTY return

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotests: (test_sysinfo) add helper for invalid ioctl errno
Thomas Weißschuh [Sun, 30 Apr 2023 08:18:20 +0000 (10:18 +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 <thomas@t-8ch.de>
12 months agolibmount: fix some typos
Thomas Weißschuh [Wed, 26 Apr 2023 20:50:45 +0000 (22:50 +0200)] 
libmount: fix some typos

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agoci: test python bindings
Thomas Weißschuh [Sun, 30 Apr 2023 06:47:54 +0000 (08:47 +0200)] 
ci: test python bindings

12 months agohwclock: (tests) mark show test failed on GitHub Actions
Thomas Weißschuh [Sun, 30 Apr 2023 05:56:25 +0000 (07:56 +0200)] 
hwclock: (tests) mark show test failed on GitHub Actions

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotests: (functions.sh): add func to detect virtualization platform
Thomas Weißschuh [Sun, 30 Apr 2023 06:36:23 +0000 (08:36 +0200)] 
tests: (functions.sh): add func to detect virtualization platform

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agomount: fix and improve man page subdir desc
Karel Zak [Fri, 28 Apr 2023 17:56:59 +0000 (19:56 +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 <kzak@redhat.com>
12 months agotests: skip subdir test if unshared session
Karel Zak [Fri, 28 Apr 2023 09:01:01 +0000 (11:01 +0200)] 
tests: skip subdir test if unshared session

Addresses: https://github.com/util-linux/util-linux/pull/2197
Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agomount: (man) add note about namespaces to subdir= desc
Karel Zak [Fri, 28 Apr 2023 08:19:52 +0000 (10:19 +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 <kzak@redhat.com>
12 months agotests: skip complex mount test on qemu
Karel Zak [Thu, 27 Apr 2023 09:21:07 +0000 (11:21 +0200)] 
tests: skip complex mount test on qemu

Addresses: https://github.com/util-linux/util-linux/pull/2197
Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agoMerge branch 'enosys/fixes' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 26 Apr 2023 14:52:18 +0000 (16:52 +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

12 months agomount: (tests) skip test if test_enosys is nonfunctional
Thomas Weißschuh [Wed, 26 Apr 2023 10:15:58 +0000 (12:15 +0200)] 
mount: (tests) skip test if test_enosys is nonfunctional

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotest_enosys: provide more diagnostics on failure
Thomas Weißschuh [Wed, 26 Apr 2023 10:15:33 +0000 (12:15 +0200)] 
test_enosys: provide more diagnostics on failure

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotest_enosys: use correct return value for getopt_long
Thomas Weißschuh [Wed, 26 Apr 2023 09:49:08 +0000 (11:49 +0200)] 
test_enosys: use correct return value for getopt_long

Otherwise option parsing is broken on big endian.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agobuild-sys: enable translated man pages if po4a installed
Karel Zak [Wed, 26 Apr 2023 10:20:00 +0000 (12:20 +0200)] 
build-sys: enable translated man pages if po4a installed

Suggested-by: Mario Blättermann <mario.blaettermann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agoMerge branch 'login-utils/supam_conv_fix' of https://github.com/Stefan-Radu/util...
Karel Zak [Wed, 26 Apr 2023 09:36:08 +0000 (11:36 +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

12 months agolibmount: (legacy) fix typo in assert()
Karel Zak [Wed, 26 Apr 2023 09:22:32 +0000 (11:22 +0200)] 
libmount: (legacy) fix typo in assert()

Addresses: https://github.com/util-linux/util-linux/pull/2197
Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agotests: add subdir test to mount fallback
Karel Zak [Wed, 26 Apr 2023 09:14:42 +0000 (11:14 +0200)] 
tests: add subdir test to mount fallback

Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agolibmount: (mount) free hook data if new APi not avalable
Karel Zak [Wed, 26 Apr 2023 09:02:03 +0000 (11:02 +0200)] 
libmount: (mount) free hook data if new APi not avalable

Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agoblockdev: add --getdiskseq to bash completion
Thomas Weißschuh [Wed, 26 Apr 2023 06:50:08 +0000 (08:50 +0200)] 
blockdev: add --getdiskseq to bash completion

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agowrap return in #else directive to avoid dead code
Stefan Radu [Tue, 25 Apr 2023 15:55:07 +0000 (18:55 +0300)] 
wrap return in #else directive to avoid dead code

Signed-off-by: Stefan Radu <stefan270101@gmail.com>
12 months agoMerge branch 'mount/bind-test' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 25 Apr 2023 15:33:27 +0000 (17:33 +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

12 months agotests: extend fsopen libmount fallback test
Karel Zak [Tue, 25 Apr 2023 14:56:09 +0000 (16:56 +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 <kzak@redhat.com>
12 months agoMerge branch 'libmount/enosys' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 25 Apr 2023 14:42:36 +0000 (16:42 +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

12 months agolibmount: improve ENOSYS fallback
Karel Zak [Tue, 25 Apr 2023 14:25:14 +0000 (16:25 +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 <kzak@redhat.com>
12 months agoadd return in supam_conv function
Stefan Radu [Tue, 25 Apr 2023 12:00:36 +0000 (15:00 +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 <stefan270101@gmail.com>
12 months agolibmount: fix copy & past typo
Karel Zak [Tue, 25 Apr 2023 10:33:44 +0000 (12:33 +0200)] 
libmount: fix copy & past typo

Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agoRevert "ci: (s390x/qemu-user) speed up build preparation"
Karel Zak [Tue, 25 Apr 2023 10:08:30 +0000 (12:08 +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 <kzak@redhat.com>
12 months agoci: (s390x/qemu-user) speed up build preparation
Thomas Weißschuh [Tue, 25 Apr 2023 06:27:12 +0000 (08:27 +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 <thomas@t-8ch.de>
12 months agolibmount: Don't silently accept an X-mount.idmap with only whitespace
Chris Webb [Mon, 24 Apr 2023 16:14:47 +0000 (17:14 +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 <chris@arachsys.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
12 months agomount: (tests) add disabled testcase for mount without move_mount()
Thomas Weißschuh [Mon, 24 Apr 2023 17:11:48 +0000 (19:11 +0200)] 
mount: (tests) add disabled testcase for mount without move_mount()

This does currently not work.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agomount: (tests) test fallback codepaths
Thomas Weißschuh [Mon, 24 Apr 2023 17:11:03 +0000 (19:11 +0200)] 
mount: (tests) test fallback codepaths

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
12 months agotests: add test_enosys helper
Thomas Weißschuh [Mon, 24 Apr 2023 16:35:27 +0000 (18:35 +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 <thomas@t-8ch.de>
12 months agolibmount: recover from ENOSYS for the new API
Karel Zak [Mon, 24 Apr 2023 15:29:05 +0000 (17:29 +0200)] 
libmount: recover from ENOSYS for the new API

Addresses: https://github.com/util-linux/util-linux/pull/2188
Signed-off-by: Karel Zak <kzak@redhat.com>