]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
2 years agoinclude: add mount-api-utils.h
Christian Brauner [Mon, 16 Aug 2021 14:45:17 +0000 (16:45 +0200)] 
include: add mount-api-utils.h

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2 years agolibmount: reimplement X-mount.{owner,group,mode}= by hooks
Karel Zak [Mon, 30 May 2022 09:47:32 +0000 (11:47 +0200)] 
libmount: reimplement X-mount.{owner,group,mode}= by hooks

* "prepare-options hook" parses {owner,group,mode}= options

* "mount-post hook" calls chmod/own

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agomeson: add missing files
Karel Zak [Mon, 30 May 2022 09:43:08 +0000 (11:43 +0200)] 
meson: add missing files

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: remove hooks initialization
Karel Zak [Mon, 30 May 2022 07:47:04 +0000 (09:47 +0200)] 
libmount: remove hooks initialization

The hookset initialization is unnecessary. It's enough to do the
initialization in the first hook (usually in the "prepare" stage).

This change safes memory and time.

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: reimplement X-mount.subdir= by hooks
Karel Zak [Wed, 25 May 2022 12:01:52 +0000 (14:01 +0200)] 
libmount: reimplement X-mount.subdir= by hooks

* "prepare-target hook" checks for X-mount.subdir= and define pre-mount hook

* "mount-pre hook" unshares temporary directory, redirect the next
  mount(2) to this temporary directory

* "mount-post hook" binds subdirectory to the final target, umounts
  temporary directory

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: (mkdir) cannonicalize after mkdir
Karel Zak [Mon, 23 May 2022 10:58:08 +0000 (12:58 +0200)] 
libmount: (mkdir) cannonicalize after mkdir

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: move X-mount.mkdir to separate file
Karel Zak [Mon, 23 May 2022 10:15:29 +0000 (12:15 +0200)] 
libmount: move X-mount.mkdir to separate file

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: move mount-only functions to context_mount.c
Karel Zak [Mon, 23 May 2022 09:45:57 +0000 (11:45 +0200)] 
libmount: move mount-only functions to context_mount.c

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: implement hooks for a legacy mount(2)
Karel Zak [Thu, 19 May 2022 11:55:43 +0000 (13:55 +0200)] 
libmount: implement hooks for a legacy mount(2)

* replaces context "addmounts" functionality with more generic hooks

* "hooksets" handles complex functionality by a set of hooks.

  During initialization (or later), the hookset can define
  arbitrary hook function(s). The library will call the functions from
  a specified place ("stage"). Now supported stages are
  prepare-options, pre-mount, mount, and post-mount.

  This solution looks complex at first glance, but it will help
  keep all extensions separated from core library code (IDs mapping,
  X-mount.chown/chmod, X-mount.subdir, etc.). It will also be possible to
  support multiple implementations for the same functionality (classic
  mount(2) vs. new fsmount(2)) without #ifdefs storms etc.

  Maybe later we can also use hooksets for external library modules
  (like verity support).

* __legacy-mount hookset implements support for the classic mount(2)
  syscall. Supported hooks:

  prepare-options - analyzes the current setting (libmnt_context)
    and setup other hooks when necessary

  mount - calls mount(2) for standard "/dev to /mnt" use-cases

  post-mount (two possible hooks):
      - calls mount(2) to modify propagation flags
      - calls mount(2) to implement bind-remount (mount --bind -oro)

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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"

2 years 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

2 years 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()

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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.

2 years 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>
2 years agolibblkid: topology: probe diskseq
Thomas Weißschuh [Wed, 28 Dec 2022 01:47:08 +0000 (01:47 +0000)] 
libblkid: topology: probe diskseq

2 years 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

2 years 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.

2 years 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

2 years 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

2 years 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

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

2 years 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.

2 years 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

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

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

2 years 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

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

2 years 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

2 years 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

2 years 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

2 years 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.

2 years 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
2 years 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

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

2 years 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.

2 years 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.

2 years 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

2 years 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.

2 years 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>
2 years 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>
2 years 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>
2 years agolsblk: add mmc transport
Thomas Weißschuh [Wed, 21 Dec 2022 18:46:46 +0000 (18:46 +0000)] 
lsblk: add mmc transport

2 years 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.

2 years 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

2 years 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.

2 years 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>
2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

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

2 years 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>
2 years 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>
2 years 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>
2 years 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.

2 years 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

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

2 years 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

2 years 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

2 years 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.

2 years 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

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

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

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

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

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

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

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

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

2 years 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>
2 years 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>
2 years 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>
2 years 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

2 years 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

2 years 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

2 years 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

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

2 years 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.

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

2 years 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

2 years 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

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

2 years 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

2 years 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.

2 years 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>
2 years 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.

2 years 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>
2 years 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

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