Util-linux 2.39 release

A new version of the Util-linux 2.39 package of system utilities has been published, which includes both utilities closely related to the Linux kernel and general-purpose utilities. For example, the package contains utilities mount/umount, fdisk, hwclock, cal, blkid, fsck/cfdisk/sfdisk, blockdev, chrt, mkfs, ionice, more, renice, su, kill, setsid, login, shutdown, dmesg, lscpu, logger, losetup, setterm, mkswap, swapon, taskset, etc.

In the new version:

  • The mount utility and the libmount library have added support for a new Linux kernel API to control how filesystems are mounted based on mount namespaces. In the new API, instead of the common mount() function, separate functions are used to handle different stages of the mount (process the superblock, get information about the file system, mount, attach to the mount point). The compatibility of libmount with old Linux kernels and the old mounting API has been preserved. Added "--disable-libmount-mountfd-support" option to force disable the new API.
  • The use of the new mount API made it possible to implement support for mapping the user IDs of mounted file systems, which is used to map files of a specific user on a mounted foreign partition with another user on the current system. To control mapping, the "X-mount.idmap=" option has been added to the mount utility.
  • New options have been added to the mount utility: "X-mount.auto-fstypes" to automatically detect a file system of a certain type, "X-mount.{owner,group,mode}" to change the owner, group, and access mode after mounting, and "rootcontext =@target" to set the SELinux context for the file system. Added support for the "recursive" argument for VFS flags (e.g. "mount -o bind,ro=recursive").
  • Added blkpr command to reserve blocks on SCSI or NVMe drives.
  • Added pipesz command to set or check buffer size for unnamed pipes and FIFOs.
  • Added waitpid command to wait for a change in the state of an arbitrary process (for example, completion of execution).
  • Added "-n" and "--relative" options to renice utility.
  • The blockdev utility implements support for the BLKGETDISKSEQ ioctl.
  • Support for pidfd and AF_NETLINK, AF_PACKET, AF_INET and AF_INET6 sockets (/proc/net/*) has been added to the lsfd utility, display of changed process names from proc/$pid/fd has been added, decoding of flags from /proc/$PID/fdinfo/$ has been implemented fd, added "-i" ("--inet") option to show only information about AF_INET and AF_INET6 sockets.
  • The cal utility has added support for customizing color output via terminal-colors.d.
  • In dmesg, output with fractional seconds accuracy is implemented when using the "--since" and "--until" options, the "--level" option has the ability to specify a prefix/suffix "+" to display all levels with numbers greater than/less than the specified one.
  • Added "--types" option to fstrim utility for filtering by FS type.
  • Added support for bcachefs file system to blkid and libblkid and enabled checksum calculation for file system and RAID.
  • Added "--nvme" and "--virtio" options to the lsblk utility to filter out devices, implemented ID (udev ID), ID-LINK (udev /dev/disk/by-id), PARTN (partition number) and MQ (queues) columns ), improved support for hot plugging and unplugging devices.
  • Added "--env" option to nsenter to pass environment variables.
  • Added "-Z" option to namei to show SELinux contexts.
  • Improved support for the Meson assembly system.

Source: opennet.ru

Add a comment