]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
20 months agoMerge branch 'util-linux:master' into make-nice-posix-compliant
kraptor [Mon, 2 Jan 2023 17:09:53 +0000 (18:09 +0100)] 
Merge branch 'util-linux:master' into make-nice-posix-compliant

20 months agoMerge branch '1' of https://github.com/neheb/util-linux
Karel Zak [Mon, 2 Jan 2023 12:34:01 +0000 (13:34 +0100)] 
Merge branch '1' of https://github.com/neheb/util-linux

* '1' of https://github.com/neheb/util-linux:
  meson: fix option value

20 months agoMerge branch 'libblkid/topology-diskseq' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 12:32:58 +0000 (13:32 +0100)] 
Merge branch 'libblkid/topology-diskseq' of https://github.com/t-8ch/util-linux

* 'libblkid/topology-diskseq' of https://github.com/t-8ch/util-linux:
  libblkid: topology: probe diskseq
  libblkid: topology: allow setting of 64bit values
  lib/sysfs: allow parent redirect even for non-queue files
  blockdev: add support for ioctl BLKGETDISKSEQ
  libblkid: topology: add test
  tests: functions: allow partitions on loopdevs

20 months agoMerge branch 'cleanups' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 12:24:23 +0000 (13:24 +0100)] 
Merge branch 'cleanups' of https://github.com/t-8ch/util-linux

* 'cleanups' of https://github.com/t-8ch/util-linux:
  fadvise: fix parsing of option -V
  libblkid: zfs: remove unnecessary newline from debug messages
  libblkid: topology: constify some structures
  lib: sysfs: fix typo

20 months agoMerge branch 'umount-completion' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 12:08:29 +0000 (13:08 +0100)] 
Merge branch 'umount-completion' of https://github.com/t-8ch/util-linux

* 'umount-completion' of https://github.com/t-8ch/util-linux:
  umount: properly handle special characters in completion

20 months agoMerge branch 'blockdev' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 12:07:45 +0000 (13:07 +0100)] 
Merge branch 'blockdev' of https://github.com/t-8ch/util-linux

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

20 months agoMerge branch 'part-csum' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 12:06:41 +0000 (13:06 +0100)] 
Merge branch 'part-csum' of https://github.com/t-8ch/util-linux

* 'part-csum' of https://github.com/t-8ch/util-linux:
  libblkid: bsd: add checksum support
  libblkid: sun: use generic checksum handling
  libblkid: sgi: use generic checksum handling
  libblkid: gpt: use generic checksum handling

20 months agoMerge branch 'lsns-ioctl-check' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 12:05:13 +0000 (13:05 +0100)] 
Merge branch 'lsns-ioctl-check' of https://github.com/t-8ch/util-linux

* 'lsns-ioctl-check' of https://github.com/t-8ch/util-linux:
  Revert "tests: use KNOWN_FAIL for lsns/ioctl_ns"

20 months agoMerge branch 'lsblk-nvme' of https://github.com/mbroz/util-linux
Karel Zak [Mon, 2 Jan 2023 12:04:38 +0000 (13:04 +0100)] 
Merge branch 'lsblk-nvme' of https://github.com/mbroz/util-linux

* 'lsblk-nvme' of https://github.com/mbroz/util-linux:
  Update email.
  lsblk: add revision output to --nvme list
  lsblk: read firmware revision from udev

20 months agoMerge branch 'stat-parsing' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 12:02:51 +0000 (13:02 +0100)] 
Merge branch 'stat-parsing' of https://github.com/t-8ch/util-linux

* 'stat-parsing' of https://github.com/t-8ch/util-linux:
  procfs: get_stat_nth: handle braces in process name
  lib: procfs: add parsing cmd containing newline
  lib: procfs: add unittests
  lib: procfs: prefix support for tests
  lib: procfs: fix error message during test
  lib: procfs: fix typo in argument specification
  lib: procfs: clarify name of procfs_process_get_data_for()

20 months agoMerge branch 'mmc' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 11:44:57 +0000 (12:44 +0100)] 
Merge branch 'mmc' of https://github.com/t-8ch/util-linux

* 'mmc' of https://github.com/t-8ch/util-linux:
  lsblk: add mmc transport

20 months agoMerge branch 'address_bits' of https://github.com/t-8ch/util-linux
Karel Zak [Mon, 2 Jan 2023 11:44:23 +0000 (12:44 +0100)] 
Merge branch 'address_bits' of https://github.com/t-8ch/util-linux

* 'address_bits' of https://github.com/t-8ch/util-linux:
  setarch: use kernel address size if possible
  sysfs: add helper for /sys/kernel/address_bits

20 months agoMerge branch 'bst/hwclock-ret-param-get' of https://github.com/Bastian-Krause/util...
Karel Zak [Mon, 2 Jan 2023 11:24:18 +0000 (12:24 +0100)] 
Merge branch 'bst/hwclock-ret-param-get' of https://github.com/Bastian-Krause/util-linux

* 'bst/hwclock-ret-param-get' of https://github.com/Bastian-Krause/util-linux:
  hwclock: fix return value on successful --param-get

20 months agoMerge branch 'meson-debian' of https://github.com/zeha/util-linux
Karel Zak [Mon, 2 Jan 2023 11:23:11 +0000 (12:23 +0100)] 
Merge branch 'meson-debian' of https://github.com/zeha/util-linux

* 'meson-debian' of https://github.com/zeha/util-linux:
  meson: install uuidd.rc with -Dsysvinit=enabled
  meson: fix pkg-config name of libaudit
  meson: fix build with -Dselinux=enabled

20 months agoMerge branch 'misc-utils-rename-documentation' of https://github.com/ChickenProp...
Karel Zak [Mon, 2 Jan 2023 11:22:11 +0000 (12:22 +0100)] 
Merge branch 'misc-utils-rename-documentation' of https://github.com/ChickenProp/util-linux

* 'misc-utils-rename-documentation' of https://github.com/ChickenProp/util-linux:
  rename.1: document edge cases.

20 months agomeson: fix option value
Rosen Penev [Sun, 1 Jan 2023 20:25:47 +0000 (12:25 -0800)] 
meson: fix option value

This is a boolean, not a string.

Found with muon analyze.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
20 months agolibblkid: topology: probe diskseq
Thomas Weißschuh [Wed, 28 Dec 2022 01:47:08 +0000 (01:47 +0000)] 
libblkid: topology: probe diskseq

20 months agolibblkid: topology: allow setting of 64bit values
Thomas Weißschuh [Wed, 28 Dec 2022 01:45:46 +0000 (01:45 +0000)] 
libblkid: topology: allow setting of 64bit values

20 months agolib/sysfs: allow parent redirect even for non-queue files
Thomas Weißschuh [Wed, 28 Dec 2022 01:41:42 +0000 (01:41 +0000)] 
lib/sysfs: allow parent redirect even for non-queue files

We will also need this redirect for other sysfs files.

20 months agoblockdev: add support for ioctl BLKGETDISKSEQ
Thomas Weißschuh [Tue, 27 Dec 2022 00:28:53 +0000 (00:28 +0000)] 
blockdev: add support for ioctl BLKGETDISKSEQ

20 months agoblockdev: add support for ioctl BLKGETDISKSEQ
Thomas Weißschuh [Tue, 27 Dec 2022 00:28:53 +0000 (00:28 +0000)] 
blockdev: add support for ioctl BLKGETDISKSEQ

20 months agofadvise: fix parsing of option -V
Thomas Weißschuh [Sun, 25 Dec 2022 13:23:34 +0000 (13:23 +0000)] 
fadvise: fix parsing of option -V

20 months agolibblkid: topology: add test
Thomas Weißschuh [Wed, 28 Dec 2022 02:09:13 +0000 (02:09 +0000)] 
libblkid: topology: add test

20 months agotests: functions: allow partitions on loopdevs
Thomas Weißschuh [Wed, 28 Dec 2022 03:47:46 +0000 (03:47 +0000)] 
tests: functions: allow partitions on loopdevs

This allow us the add partition to the test devices.

20 months agolibblkid: zfs: remove unnecessary newline from debug messages
Thomas Weißschuh [Wed, 28 Dec 2022 04:06:06 +0000 (04:06 +0000)] 
libblkid: zfs: remove unnecessary newline from debug messages

20 months agolibblkid: topology: constify some structures
Thomas Weißschuh [Wed, 28 Dec 2022 01:42:40 +0000 (01:42 +0000)] 
libblkid: topology: constify some structures

20 months agolib: sysfs: fix typo
Thomas Weißschuh [Wed, 28 Dec 2022 01:41:55 +0000 (01:41 +0000)] 
lib: sysfs: fix typo

20 months agoumount: properly handle special characters in completion
Thomas Weißschuh [Tue, 27 Dec 2022 02:59:26 +0000 (02:59 +0000)] 
umount: properly handle special characters in completion

Fixes #1834

20 months agolibblkid: bsd: add checksum support
Thomas Weißschuh [Mon, 26 Dec 2022 23:57:34 +0000 (23:57 +0000)] 
libblkid: bsd: add checksum support

20 months agolibblkid: sun: use generic checksum handling
Thomas Weißschuh [Mon, 26 Dec 2022 23:07:58 +0000 (23:07 +0000)] 
libblkid: sun: use generic checksum handling

20 months agolibblkid: sgi: use generic checksum handling
Thomas Weißschuh [Mon, 26 Dec 2022 23:07:54 +0000 (23:07 +0000)] 
libblkid: sgi: use generic checksum handling

20 months agolibblkid: gpt: use generic checksum handling
Thomas Weißschuh [Mon, 26 Dec 2022 23:04:40 +0000 (23:04 +0000)] 
libblkid: gpt: use generic checksum handling

21 months agoRevert "tests: use KNOWN_FAIL for lsns/ioctl_ns"
Thomas Weißschuh [Sun, 25 Dec 2022 05:28:59 +0000 (05:28 +0000)] 
Revert "tests: use KNOWN_FAIL for lsns/ioctl_ns"

The check introduced in 249ba69c introduced a proper feature check.

This reverts commit 857038d4512a5f2e9a1fd4a3d89c2c27eae456fd.

21 months agoprocfs: get_stat_nth: handle braces in process name
Thomas Weißschuh [Thu, 22 Dec 2022 23:54:41 +0000 (23:54 +0000)] 
procfs: get_stat_nth: handle braces in process name

In procfs_process_get_stat_nth() we skip to the end of the process name
by looking for the ')' after it.
However if the process name itself contains a ')' then find that instead
of the correct one.

By searching the ')' from the end of the file we can make sure to always
find the correct one.

Link: https://www.openwall.com/lists/oss-security/2022/12/21/6
21 months agolib: procfs: add parsing cmd containing newline
Thomas Weißschuh [Sat, 24 Dec 2022 16:53:32 +0000 (16:53 +0000)] 
lib: procfs: add parsing cmd containing newline

21 months agolib: procfs: add unittests
Thomas Weißschuh [Sat, 24 Dec 2022 16:43:29 +0000 (16:43 +0000)] 
lib: procfs: add unittests

21 months agolib: procfs: prefix support for tests
Thomas Weißschuh [Sat, 24 Dec 2022 16:09:24 +0000 (16:09 +0000)] 
lib: procfs: prefix support for tests

This will be used in the unitttests.

21 months agolib: procfs: fix error message during test
Thomas Weißschuh [Sat, 24 Dec 2022 16:32:50 +0000 (16:32 +0000)] 
lib: procfs: fix error message during test

procfs_process_get_stat_nth() returns the error and does not set errno.

21 months agolib: procfs: fix typo in argument specification
Thomas Weißschuh [Sat, 24 Dec 2022 16:06:41 +0000 (16:06 +0000)] 
lib: procfs: fix typo in argument specification

21 months agolib: procfs: clarify name of procfs_process_get_data_for()
Thomas Weißschuh [Fri, 23 Dec 2022 21:05:02 +0000 (21:05 +0000)] 
lib: procfs: clarify name of procfs_process_get_data_for()

The previous name "procfs_process_get_line_for()" indicates that only a
single line would be read from the file.

In fact the function always returns the full file contents.
This behavior is necessary are various procfs files can contain
legitimate newlines.

Rename the function to match its behavior.

21 months agoUpdate email.
Milan Broz [Thu, 22 Dec 2022 22:26:33 +0000 (23:26 +0100)] 
Update email.

This email no longer works.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
21 months agolsblk: add revision output to --nvme list
Milan Broz [Thu, 22 Dec 2022 22:19:36 +0000 (23:19 +0100)] 
lsblk: add revision output to --nvme list

This is similar to --scsi output now.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
21 months agolsblk: read firmware revision from udev
Milan Broz [Thu, 22 Dec 2022 22:18:38 +0000 (23:18 +0100)] 
lsblk: read firmware revision from udev

This supports more device types like NVMEs.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
21 months agolsblk: add mmc transport
Thomas Weißschuh [Wed, 21 Dec 2022 18:46:46 +0000 (18:46 +0000)] 
lsblk: add mmc transport

21 months agosetarch: use kernel address size if possible
Thomas Weißschuh [Wed, 21 Dec 2022 13:42:05 +0000 (13:42 +0000)] 
setarch: use kernel address size if possible

If setarch is running as 32bit userspace on a 64bit kernel we should use
the kernel personality.

21 months agosysfs: add helper for /sys/kernel/address_bits
Thomas Weißschuh [Wed, 21 Dec 2022 13:39:35 +0000 (13:39 +0000)] 
sysfs: add helper for /sys/kernel/address_bits

21 months agoci: build & test util-linux on Fedora Rawhide via Packit
Frantisek Sumsal [Thu, 24 Nov 2022 09:34:54 +0000 (10:34 +0100)] 
ci: build & test util-linux on Fedora Rawhide via Packit

Let's run at least the unit-tests on Fedora Rawhide via Packit, as it
supports a couple of alternative architectures (aarch64, ppc64le, s390x)
as well as i*86, which were source of issues in the past.

21 months agohwclock: fix return value on successful --param-get
Bastian Krause [Wed, 21 Dec 2022 10:44:23 +0000 (11:44 +0100)] 
hwclock: fix return value on successful --param-get

hwclock should return 0 on sucessful --param-get.

Fixes: 6097b12df ("hwclock: add --param-get option")
Signed-off-by: Bastian Krause <bst@pengutronix.de>
21 months agoMerge branch 'lsns-ioctl-enotty' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 21 Dec 2022 09:20:44 +0000 (10:20 +0100)] 
Merge branch 'lsns-ioctl-enotty' of https://github.com/t-8ch/util-linux

* 'lsns-ioctl-enotty' of https://github.com/t-8ch/util-linux:
  lsns: report unsupported ioctl

21 months agoMerge branch 'mkswap/endianness' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 21 Dec 2022 09:19:17 +0000 (10:19 +0100)] 
Merge branch 'mkswap/endianness' of https://github.com/t-8ch/util-linux

* 'mkswap/endianness' of https://github.com/t-8ch/util-linux:
  mkswap: create files with specific endianness
  mkswap: add tests

21 months agoMerge branch 'fssize-swap' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 21 Dec 2022 09:16:34 +0000 (10:16 +0100)] 
Merge branch 'fssize-swap' of https://github.com/t-8ch/util-linux

* 'fssize-swap' of https://github.com/t-8ch/util-linux:
  blkid: swap: test big endian swapfile
  libblkid: swap: report fssize
  libblkid: swap: report fsblocksize
  libblkid: swap: report endianess

21 months agoMerge branch 'fssize' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 21 Dec 2022 09:15:07 +0000 (10:15 +0100)] 
Merge branch 'fssize' of https://github.com/t-8ch/util-linux

* 'fssize' of https://github.com/t-8ch/util-linux:
  libblkid: iso9660: read block size from superblock
  iso9660.h: avoid undefined signed integer shift
  iso9660.h: use more correct function types
  libblkid: ntfs: report fssize
  libblkid: ubifs: report fssize
  libblkid: f2fs: report fssize
  libblkid: erofs: report fssize
  libblkid: vfat: report fssize

21 months agoMerge branch 'proc/byteorder' of https://github.com/t-8ch/util-linux
Karel Zak [Wed, 21 Dec 2022 09:06:46 +0000 (10:06 +0100)] 
Merge branch 'proc/byteorder' of https://github.com/t-8ch/util-linux

* 'proc/byteorder' of https://github.com/t-8ch/util-linux:
  lscpu: add testcase for Linux 6.2 x86_64
  tests: make mk-input.sh scripts executable
  tests: add ts_check_native_byteorder
  lscpu: test endianess
  sysfs: sysfs_get_byteorder: add context parameter
  lsfd: use runtime byteorder
  lscpu: use runtime byteorder
  sysfs: read runtime byteorder

21 months agolsns: report unsupported ioctl
Thomas Weißschuh [Thu, 15 Dec 2022 16:26:51 +0000 (16:26 +0000)] 
lsns: report unsupported ioctl

21 months agomeson: install uuidd.rc with -Dsysvinit=enabled
Chris Hofstaedtler [Sun, 18 Dec 2022 18:42:04 +0000 (18:42 +0000)] 
meson: install uuidd.rc with -Dsysvinit=enabled

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
21 months agomeson: fix pkg-config name of libaudit
Chris Hofstaedtler [Sun, 18 Dec 2022 18:39:56 +0000 (18:39 +0000)] 
meson: fix pkg-config name of libaudit

Fedora and Debian seem to use "audit", not "libaudit".

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
21 months agomeson: fix build with -Dselinux=enabled
Chris Hofstaedtler [Sun, 18 Dec 2022 18:55:01 +0000 (18:55 +0000)] 
meson: fix build with -Dselinux=enabled

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
21 months agorename.1: document edge cases.
Philip Hazelden [Sun, 18 Dec 2022 16:40:34 +0000 (16:40 +0000)] 
rename.1: document edge cases.

Document the behaviour of an empty `expression` argument, and of `/` in
the `expression` and `replacement` arguments.

I also tried to make it slightly clearer that `-s` changes where a
symlink points, but doesn't change the thing that it points at.

21 months agomkswap: create files with specific endianness
Thomas Weißschuh [Thu, 15 Dec 2022 13:32:31 +0000 (13:32 +0000)] 
mkswap: create files with specific endianness

21 months agomkswap: add tests
Thomas Weißschuh [Thu, 15 Dec 2022 13:08:18 +0000 (13:08 +0000)] 
mkswap: add tests

21 months agoblkid: swap: test big endian swapfile
Thomas Weißschuh [Wed, 14 Dec 2022 01:04:45 +0000 (01:04 +0000)] 
blkid: swap: test big endian swapfile

21 months agolibblkid: iso9660: read block size from superblock
Thomas Weißschuh [Wed, 30 Nov 2022 03:17:19 +0000 (04:17 +0100)] 
libblkid: iso9660: read block size from superblock

21 months agoiso9660.h: avoid undefined signed integer shift
Thomas Weißschuh [Tue, 13 Dec 2022 02:40:02 +0000 (02:40 +0000)] 
iso9660.h: avoid undefined signed integer shift

When the high bit in p[3] is set we would overflow our signed 4-byte
integer result value.
Force an unsigned type instead.

21 months agoiso9660.h: use more correct function types
Thomas Weißschuh [Tue, 13 Dec 2022 02:38:27 +0000 (02:38 +0000)] 
iso9660.h: use more correct function types

21 months agorenice: support posix-compliant -n (via POSIXLY_CORRECT) and add --relative flag
David Anes [Tue, 13 Dec 2022 10:02:36 +0000 (11:02 +0100)] 
renice: support posix-compliant -n (via POSIXLY_CORRECT) and add --relative flag

As noted in bug #1892, renice is not 100% posix compliant
as the '-n' option should update the priority 'relative'
to the current priority.

As such change would break compatibility, the current
approach was taken:
- donice() has now a new param to denote if priority is
  absolute or relative.
- main() interprets '-n' as absolute if environment
  variable POSIXLY_CORRECT is **not set**. Otherwise,
  it uses a relative value, as POSIX mandates.
- The option '--priority' is left as it is: uses an
  absolute value.
- A new option '--relative' is added, should a user
  want a posix compatible variant without setting up
  an environment variable.
- manpage is updated to display all these changes.

After this patch:
- Calling renice with '-n 2' on a process with current
  priority '2' and POSIXLY_CORRECT, will try to update
  it to priority '4', instead of '2'.
- Calling renice with '--priority 2' on a process with
  current priority '2', leaves the process at priority
  '2'.
- Calling renice with '--relative 2' on a process with
  current priority '2' will try to update the it to
  priority '4', regardless of environment flags.

21 months agolibblkid: swap: report fssize
Thomas Weißschuh [Tue, 29 Nov 2022 03:26:02 +0000 (04:26 +0100)] 
libblkid: swap: report fssize

21 months agolibblkid: swap: report fsblocksize
Thomas Weißschuh [Wed, 14 Dec 2022 00:30:25 +0000 (00:30 +0000)] 
libblkid: swap: report fsblocksize

21 months agolibblkid: swap: report endianess
Thomas Weißschuh [Wed, 14 Dec 2022 00:13:19 +0000 (00:13 +0000)] 
libblkid: swap: report endianess

21 months agolibblkid: ntfs: report fssize
Thomas Weißschuh [Wed, 30 Nov 2022 03:49:04 +0000 (04:49 +0100)] 
libblkid: ntfs: report fssize

21 months agolibblkid: ubifs: report fssize
Thomas Weißschuh [Wed, 30 Nov 2022 03:11:39 +0000 (04:11 +0100)] 
libblkid: ubifs: report fssize

21 months agolibblkid: f2fs: report fssize
Thomas Weißschuh [Wed, 30 Nov 2022 02:38:16 +0000 (03:38 +0100)] 
libblkid: f2fs: report fssize

21 months agolibblkid: erofs: report fssize
Thomas Weißschuh [Wed, 30 Nov 2022 03:33:00 +0000 (04:33 +0100)] 
libblkid: erofs: report fssize

21 months agolibblkid: vfat: report fssize
Thomas Weißschuh [Tue, 29 Nov 2022 03:14:33 +0000 (04:14 +0100)] 
libblkid: vfat: report fssize

21 months agobuild0sys: fix make dist
Karel Zak [Tue, 13 Dec 2022 16:59:35 +0000 (17:59 +0100)] 
build0sys: fix make dist

Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agochsh: add -V, update usage()
Karel Zak [Tue, 13 Dec 2022 15:46:42 +0000 (16:46 +0100)] 
chsh: add -V, update usage()

* don't use deprecated -u in usage() (deprecated since 631a195412, v2.30)

* use -V for --version; deprecate -v

* add info about deprecated options to the man page

Addresses: https://github.com/util-linux/util-linux/pull/1954
Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agochfn: use -V for version
Karel Zak [Tue, 13 Dec 2022 15:41:34 +0000 (16:41 +0100)] 
chfn: use -V for version

Let's use more compatible -V for --version and mark -v as deprecated.

Addresses: https://github.com/util-linux/util-linux/pull/1954
Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agoMerge branch 'master' of https://github.com/kraptor/util-linux
Karel Zak [Tue, 13 Dec 2022 15:15:00 +0000 (16:15 +0100)] 
Merge branch 'master' of https://github.com/kraptor/util-linux

* 'master' of https://github.com/kraptor/util-linux:
  tests: fix typo in comment

21 months agoMerge branch 'ci/llvm' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 13 Dec 2022 15:14:03 +0000 (16:14 +0100)] 
Merge branch 'ci/llvm' of https://github.com/t-8ch/util-linux

* 'ci/llvm' of https://github.com/t-8ch/util-linux:
  ci: update llvm to version 15
  libfdisk: remove unused variable ct
  clang: ignore -Wunused-but-set-variable
  build: warn about old-style definitions
  lsblk: align function prototype

21 months agoMerge branch 'shells.c' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 13 Dec 2022 15:10:08 +0000 (16:10 +0100)] 
Merge branch 'shells.c' of https://github.com/t-8ch/util-linux

* 'shells.c' of https://github.com/t-8ch/util-linux:
  meson: link shells.c into users of is_known_shell
  meson: remove leftover explicit mentions of logindefs.c

21 months agoMerge branch 'blkid-fvault2' of https://github.com/mbroz/util-linux
Karel Zak [Tue, 13 Dec 2022 15:09:03 +0000 (16:09 +0100)] 
Merge branch 'blkid-fvault2' of https://github.com/mbroz/util-linux

* 'blkid-fvault2' of https://github.com/mbroz/util-linux:
  libblkid: Add detection of FileVault2 partitions

21 months agotests: fix typo in comment
David Anes [Tue, 13 Dec 2022 08:55:03 +0000 (09:55 +0100)] 
tests: fix typo in comment

21 months agoci: update llvm to version 15
Thomas Weißschuh [Mon, 12 Dec 2022 19:34:23 +0000 (19:34 +0000)] 
ci: update llvm to version 15

Version 10 is not available from their apt repo anymore.
Update to the latest available version.

21 months agolibfdisk: remove unused variable ct
Thomas Weißschuh [Mon, 12 Dec 2022 21:07:31 +0000 (21:07 +0000)] 
libfdisk: remove unused variable ct

21 months agoclang: ignore -Wunused-but-set-variable
Thomas Weißschuh [Mon, 12 Dec 2022 20:33:39 +0000 (20:33 +0000)] 
clang: ignore -Wunused-but-set-variable

21 months agobuild: warn about old-style definitions
Thomas Weißschuh [Mon, 12 Dec 2022 20:11:56 +0000 (20:11 +0000)] 
build: warn about old-style definitions

21 months agolsblk: align function prototype
Thomas Weißschuh [Mon, 12 Dec 2022 19:54:59 +0000 (19:54 +0000)] 
lsblk: align function prototype

21 months agomeson: link shells.c into users of is_known_shell
Thomas Weißschuh [Mon, 12 Dec 2022 19:07:03 +0000 (19:07 +0000)] 
meson: link shells.c into users of is_known_shell

21 months agomeson: remove leftover explicit mentions of logindefs.c
Thomas Weißschuh [Mon, 12 Dec 2022 19:04:21 +0000 (19:04 +0000)] 
meson: remove leftover explicit mentions of logindefs.c

This is now handled as part of the logindefs_c library.

21 months agolibblkid: Add detection of FileVault2 partitions
Milan Broz [Mon, 12 Dec 2022 15:45:15 +0000 (16:45 +0100)] 
libblkid: Add detection of FileVault2 partitions

FileVault is full disk encryption format based on Apple
Core Storage, used in older macOS versions.

This patch allows automatic detection of Core Storage partition
to be later used with existing cryptsetup support for FileVault2.

Note that we intentionally ignore generic Core Storage; only
specific configuration is detected as cs_fvault2 type here.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
21 months agoUpdate fstrim.8.adoc
Seth Bromberger [Mon, 12 Dec 2022 14:23:40 +0000 (09:23 -0500)] 
Update fstrim.8.adoc

The `-v` option is for "verbose", and the mountpoint is generally required if none of the "all" options are specified.

21 months agolib/shells: make sure line does not start with '#'
Karel Zak [Mon, 12 Dec 2022 09:05:04 +0000 (10:05 +0100)] 
lib/shells: make sure line does not start with '#'

It's probably unnecessary, but better safe than sorry. The original
is_restricted_shell() from su(1) uses this check.

Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agoMerge branch 'usr_etc_shells' of https://github.com/schubi2/util-linux
Karel Zak [Mon, 12 Dec 2022 09:03:50 +0000 (10:03 +0100)] 
Merge branch 'usr_etc_shells' of https://github.com/schubi2/util-linux

* 'usr_etc_shells' of https://github.com/schubi2/util-linux:
  Supporting vendor given "shells" configuration file

21 months agotests: fix typo in comment
David Anes [Mon, 12 Dec 2022 06:06:05 +0000 (07:06 +0100)] 
tests: fix typo in comment

21 months agotests: allow paths in tests to contain '@' char
David Anes [Fri, 9 Dec 2022 17:09:31 +0000 (18:09 +0100)] 
tests: allow paths in tests to contain '@' char

Tests fail when the build directory contains
'@' in its path, as its sent to 'sed' unescaped.

This patch allows to build in such environments,
which typically happen on automated systems (for
example, when building concurrently with Jenkins).

21 months agotests: use KNOWN_FAIL for lsns/ioctl_ns
Karel Zak [Fri, 9 Dec 2022 10:28:25 +0000 (11:28 +0100)] 
tests: use KNOWN_FAIL for lsns/ioctl_ns

It seems 32bit userspace on 64bit kernel return ENOTTY for
NS_GET_USERNS ioctl (for example when execute tests in mock
environment).

Addresses: https://github.com/util-linux/util-linux/pull/1924
Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agohardlink: cleanup options
Karel Zak [Thu, 8 Dec 2022 10:12:47 +0000 (11:12 +0100)] 
hardlink: cleanup options

* add missing stuff to bash-completion
* reorder --help output
* reorder man page

Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agohardlink: add --respect-dir
Karel Zak [Thu, 8 Dec 2022 09:49:45 +0000 (10:49 +0100)] 
hardlink: add --respect-dir

Fixes: https://github.com/util-linux/util-linux/issues/1942
Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agoblkdiscard: add extra exit code when device does not support discard
Karel Zak [Wed, 7 Dec 2022 10:43:20 +0000 (11:43 +0100)] 
blkdiscard: add extra exit code when device does not support discard

Fixes: https://github.com/util-linux/util-linux/issues/1941
Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agobash-completion: add blkdiscard --quiet
Karel Zak [Wed, 7 Dec 2022 10:13:48 +0000 (11:13 +0100)] 
bash-completion: add blkdiscard --quiet

Signed-off-by: Karel Zak <kzak@redhat.com>
21 months agoblkdiscard: sort options
Karel Zak [Wed, 7 Dec 2022 10:12:13 +0000 (11:12 +0100)] 
blkdiscard: sort options

Signed-off-by: Karel Zak <kzak@redhat.com>