A new version of the system utilities package Util-linux 2.39 has been published, which includes both closely related Linux- core utilities and general-purpose utilities. For example, the package includes the 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, and others.
In the new version:
- The mount utility and libmount library have been updated to support the new kernel API. Linux To manage file system mounting based on mount namespaces. The new API replaces the common mount() function with separate functions for handling different mounting stages (processing the superblock, getting file system information, mounting, and attaching to the mount point). Libmount compatibility with older kernels Linux The old mounting API has been retained. The "--disable-libmount-mountfd-support" option has been added to forcefully 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" for automatic detection of a file system of a certain type, "X-mount.{owner,group,mode}" for changing the owner, group and access mode after mounting and "rootcontext=@target" for setting the SE contextLinux For FS. Support for the "recursive" argument has been added 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 SE contextsLinux.
- Improved support for the Meson assembly system.
Source: opennet.ru
