]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
3 years agoblkpr: add block persistent reservations command
zhenwei pi [Thu, 16 Sep 2021 03:29:01 +0000 (11:29 +0800)] 
blkpr: add block persistent reservations command

Linux kernel block layer supports PR (persistent reservations) ioctl
on a block device. Typically SCSI and NVMe disk support PR feature,
and blkpr could operation on them.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
3 years agolsns: improve dependence on NS_GET_ ioctls
Karel Zak [Wed, 6 Apr 2022 08:38:43 +0000 (10:38 +0200)] 
lsns: improve dependence on NS_GET_ ioctls

Fixes: http://autobuild.buildroot.org/results/572ecf8e37ac733a4e4265f4f78f35230337278e
Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoconfigure.ac: add lsns option
Fabrice Fontaine [Tue, 5 Apr 2022 18:04:59 +0000 (20:04 +0200)] 
configure.ac: add lsns option

lsns unconditionally uses NS_GET_NSTYPE since version 2.38 and
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=de72df79d72fa906e71e2ac922d8745ff22deee5
which is only available since kernel 4.11 and
https://github.com/torvalds/linux/commit/e5ff5ce6e20ee22511398bb31fb912466cf82a36
resulting in the following build failure:

sys-utils/lsns.c: In function 'add_namespace_for_nsfd':
sys-utils/lsns.c:719:25: error: 'NS_GET_NSTYPE' undeclared (first use in this function)
  719 |  clone_type = ioctl(fd, NS_GET_NSTYPE);
      |                         ^~~~~~~~~~~~~

So add an option to allow the user to disable lsns

Fixes:
 - http://autobuild.buildroot.org/results/572ecf8e37ac733a4e4265f4f78f35230337278e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3 years agolibmount: add --onlyonce
Karel Zak [Tue, 5 Apr 2022 09:43:24 +0000 (11:43 +0200)] 
libmount: add --onlyonce

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agotests: make libmount tests more portable
Karel Zak [Mon, 4 Apr 2022 13:59:36 +0000 (15:59 +0200)] 
tests: make libmount tests more portable

git tree on macbook:
...
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'tests/expected/libmount/optstr-apply-user-X'
  'tests/expected/libmount/optstr-apply-user-x'

Let's rename the files.

Addresses: https://github.com/util-linux/util-linux/issues/1583
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoMerge branch 'lsfd-test-add-missing-dup2' of https://github.com/masatake/util-linux
Karel Zak [Mon, 4 Apr 2022 11:24:31 +0000 (13:24 +0200)] 
Merge branch 'lsfd-test-add-missing-dup2' of https://github.com/masatake/util-linux

3 years agobuild-sys: improve dependences for lib/procfs.c
Karel Zak [Mon, 4 Apr 2022 11:17:44 +0000 (13:17 +0200)] 
build-sys: improve dependences for lib/procfs.c

* add #ifdefs when use statfs() and include statfs.h or vfs.h

Addresses: https://github.com/util-linux/util-linux/issues/1634
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoRevert "build-sys: compile procfs and sysfs code in Linux only"
Karel Zak [Mon, 4 Apr 2022 09:26:59 +0000 (11:26 +0200)] 
Revert "build-sys: compile procfs and sysfs code in Linux only"

This reverts commit f30b16edb467484d8d9e5a5b5fd665b83a90ddc9.

It seems better to use original solution and depend on HAVE_DIRFD
and HAVE_OPENAT, because libblkid and another tools are compiled
on non-Linux targets too.

3 years agotests: (lsfd) add missing dup2 calls to assign proper file descriptors
Masatake YAMATO [Sun, 3 Apr 2022 02:19:43 +0000 (11:19 +0900)] 
tests: (lsfd) add missing dup2 calls to assign proper file descriptors

Close #1637.

The test cases assumed the file descriptor #3 was not occupied. As
reported in #1637, the assumption was wrong. This new code assigns
the file descriptor #3 explicitly with dup2 as the other test cases
did.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
3 years agolibmount: fix typos
наб [Thu, 31 Mar 2022 16:55:35 +0000 (18:55 +0200)] 
libmount: fix typos

3 years agoirqtop: support -C/--cpu-list
zhenwei pi [Tue, 29 Mar 2022 08:59:51 +0000 (16:59 +0800)] 
irqtop: support -C/--cpu-list

Specify cpus list format to show by -C/--cpu-list parameters, for
example, on an AMD server with 192 CPUs, to show statistics on NUMA
node 1:
  ~# ./irqtop -d 1 -C 48-95,144-191

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
3 years agolsblk: fix JSON output when without --bytes
Karel Zak [Fri, 1 Apr 2022 08:03:14 +0000 (10:03 +0200)] 
lsblk: fix JSON output when without --bytes

Fixes: https://github.com/util-linux/util-linux/issues/1636
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: compile procfs and sysfs code in Linux only
Karel Zak [Fri, 1 Apr 2022 07:44:18 +0000 (09:44 +0200)] 
build-sys: compile procfs and sysfs code in Linux only

Addresses: https://github.com/util-linux/util-linux/issues/1634
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agounshare: make pidfd_open() use more portable and robust
Karel Zak [Thu, 31 Mar 2022 08:55:30 +0000 (10:55 +0200)] 
unshare: make pidfd_open() use more portable and robust

* use #ifdef UL_HAVE_PIDFD for better portability

* open and close fd_parent_pid only when --kill-child specified

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agounshare: Fix PDEATHSIG race for --kill-child with --pid
Earl Chew [Tue, 8 Mar 2022 04:41:24 +0000 (20:41 -0800)] 
unshare: Fix PDEATHSIG race for --kill-child with --pid

Exit the child explicitly should the parent terminate
just before the child invokes prctl(PR_SET_PDEATHSIG).

Note that if the child is created as pid 1 in a
new pid namespace, getppid(2) will return 0 because
the parent resides in a different namespace, and
SIGKILL will only be delivered if sent from the
ancestor namespace.

Instead of checking the pid of the parent, use a pidfd
instance to detect the termination of the parent.

The issue can be reproduced using the following script
which must be run as root to permite the --pid option.
The script will sometimes print 0..9 despite the parent
being killed:

while : ; do
cat /proc/uptime
sh -c '
  unshare --kill-child --pid --fork bash -c "
    for X in {0..9} ; do echo \$X || break ; sleep 1 ; done" &
  sleep 0 # sleep 0.00$RANDOM
  kill -9 $! 2>/dev/null' |
cat
done

Signed-off-by: Earl Chew <earl_chew@yahoo.com>
3 years agocolumn: fix memory use [coverity scan]
Karel Zak [Thu, 31 Mar 2022 07:55:23 +0000 (09:55 +0200)] 
column: fix memory use [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agocolumn: add missing help entry
Karel Zak [Wed, 23 Mar 2022 12:06:09 +0000 (13:06 +0100)] 
column: add missing help entry

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agocolumn: don't require column name for JSON
Karel Zak [Wed, 23 Mar 2022 11:50:07 +0000 (12:50 +0100)] 
column: don't require column name for JSON

The "--table-hide -" hides all unnamed columns, but this does not work
for JSON output. This patch fixes this issue.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agocolumn: add --table-column
Karel Zak [Wed, 23 Mar 2022 11:34:58 +0000 (12:34 +0100)] 
column: add --table-column

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibsmartcols: add scols_column_set_properties()
Karel Zak [Wed, 23 Mar 2022 10:59:27 +0000 (11:59 +0100)] 
libsmartcols: add scols_column_set_properties()

This function can set all column properties from comma separated
string.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibmount: move optstr parsing to lib/
Karel Zak [Tue, 22 Mar 2022 10:09:07 +0000 (11:09 +0100)] 
libmount: move optstr parsing to lib/

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agomeson: update for logindefs move
Karel Zak [Mon, 21 Mar 2022 12:40:40 +0000 (13:40 +0100)] 
meson: update for logindefs move

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoagetty: add support for LOGIN_PLAIN_PROMPT
Karel Zak [Mon, 21 Mar 2022 12:19:38 +0000 (13:19 +0100)] 
agetty: add support for LOGIN_PLAIN_PROMPT

login(1) and agetty(8) are usually used together to log-in user. The
initial login prompt is printed by agetty. login(1) can suppress
hostname in the prompt by LOGIN_PLAIN_PROMPT=no (/etc/login.defs), but
for agetty it's necessary to use --nohostname. It's pretty unfriendly
for system admins. Let's share the same setting between all tools.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: move login-utils/logindefs.c to lib
Karel Zak [Mon, 21 Mar 2022 12:07:46 +0000 (13:07 +0100)] 
build-sys: move login-utils/logindefs.c to lib

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoagetty: cleanup login prompt macro use
Karel Zak [Mon, 21 Mar 2022 11:02:55 +0000 (12:02 +0100)] 
agetty: cleanup login prompt macro use

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agocolumn: implement "--output-width unlimited"
Karel Zak [Wed, 9 Mar 2022 10:49:13 +0000 (11:49 +0100)] 
column: implement "--output-width unlimited"

Addresses: https://github.com/util-linux/util-linux/issues/1618
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolib/loopdev: consolidate ioctls calls on EAGAIN
Karel Zak [Wed, 9 Mar 2022 10:28:07 +0000 (11:28 +0100)] 
lib/loopdev: consolidate ioctls calls on EAGAIN

Keep all logic to repeat ioctl calls in one macro rather than
duplicate code.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolib/loopdev: remove duplicate code
Karel Zak [Tue, 8 Mar 2022 12:02:38 +0000 (13:02 +0100)] 
lib/loopdev: remove duplicate code

Use loopcxt_ioctl_status() rather than duplicate code.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agohardlink: require statfs_magic.h only when reflink support enabled
Karel Zak [Wed, 30 Mar 2022 08:50:38 +0000 (10:50 +0200)] 
hardlink: require statfs_magic.h only when reflink support enabled

Addresses: https://github.com/util-linux/util-linux/issues/1634
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: release++ (v2.38) v2.38
Karel Zak [Mon, 28 Mar 2022 11:33:44 +0000 (13:33 +0200)] 
build-sys: release++ (v2.38)

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update v2.38-ReleaseNotes
Karel Zak [Mon, 28 Mar 2022 11:32:47 +0000 (13:32 +0200)] 
docs: update v2.38-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update AUTHORS file
Karel Zak [Mon, 28 Mar 2022 11:31:22 +0000 (13:31 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: merge changes
Karel Zak [Mon, 28 Mar 2022 11:26:39 +0000 (13:26 +0200)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: merge changes
Karel Zak [Mon, 28 Mar 2022 11:25:09 +0000 (13:25 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: add cs.po (from translationproject.org)
Petr Písař [Mon, 28 Mar 2022 11:23:14 +0000 (13:23 +0200)] 
po-man: add cs.po (from translationproject.org)

3 years agopo-man: update uk.po (from translationproject.org)
Yuri Chornoivan [Mon, 28 Mar 2022 11:23:14 +0000 (13:23 +0200)] 
po-man: update uk.po (from translationproject.org)

3 years agopo-man: update fr.po (from translationproject.org)
Frédéric Marchal [Mon, 28 Mar 2022 11:23:14 +0000 (13:23 +0200)] 
po-man: update fr.po (from translationproject.org)

3 years agopo-man: update de.po (from translationproject.org)
Mario Blättermann [Mon, 28 Mar 2022 11:23:13 +0000 (13:23 +0200)] 
po-man: update de.po (from translationproject.org)

3 years agopo: update zh_CN.po (from translationproject.org)
Boyuan Yang [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update zh_CN.po (from translationproject.org)

3 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update uk.po (from translationproject.org)

3 years agopo: update tr.po (from translationproject.org)
Mesutcan Kurt [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update tr.po (from translationproject.org)

3 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update pl.po (from translationproject.org)

3 years agopo: update ko.po (from translationproject.org)
Seong-ho Cho [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update ko.po (from translationproject.org)

3 years agopo: update hr.po (from translationproject.org)
Božidar Putanec [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update hr.po (from translationproject.org)

3 years agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update fr.po (from translationproject.org)

3 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update de.po (from translationproject.org)

3 years agopo: update cs.po (from translationproject.org)
Petr Písař [Mon, 28 Mar 2022 11:22:25 +0000 (13:22 +0200)] 
po: update cs.po (from translationproject.org)

3 years agolslocks: fix maj:min scanf
Karel Zak [Mon, 28 Mar 2022 09:39:27 +0000 (11:39 +0200)] 
lslocks: fix maj:min scanf

Fixes: https://github.com/util-linux/util-linux/issues/1633
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoflock: Decribe limitations of flock: deadlock, NFS, CIFS
Stanislav Brabec [Fri, 25 Mar 2022 08:26:48 +0000 (09:26 +0100)] 
flock: Decribe limitations of flock: deadlock, NFS, CIFS

The flock(1) does not refer to limitations of flock(2). Provide an
documentation entry point for solving of problems with flock on NFS
and CIFS and mention risk of deadlock.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoMerge branch 'apple-silicon-parttypes' of https://github.com/WhyNotHugo/util-linux
Karel Zak [Fri, 25 Mar 2022 07:28:16 +0000 (08:28 +0100)] 
Merge branch 'apple-silicon-parttypes' of https://github.com/WhyNotHugo/util-linux

* 'apple-silicon-parttypes' of https://github.com/WhyNotHugo/util-linux:
  Add UUID for the partition types on Apple Silicon

3 years agolib/buffer: fix possible SEGV
Karel Zak [Tue, 22 Mar 2022 11:46:52 +0000 (12:46 +0100)] 
lib/buffer: fix possible SEGV

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoAdd UUID for the partition types on Apple Silicon
Hugo Osvaldo Barrera [Thu, 24 Mar 2022 21:53:57 +0000 (22:53 +0100)] 
Add UUID for the partition types on Apple Silicon

3 years agodocs: update TODO
Karel Zak [Mon, 21 Mar 2022 10:50:22 +0000 (11:50 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update TODO
Karel Zak [Fri, 18 Mar 2022 09:49:45 +0000 (10:49 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibmount: fix possible memory leak in mnt_optstr_fix_secontext() [coverity scan]
Karel Zak [Thu, 17 Mar 2022 12:00:44 +0000 (13:00 +0100)] 
libmount: fix possible memory leak in mnt_optstr_fix_secontext() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: make blkid_free_probe() more robust
Karel Zak [Thu, 17 Mar 2022 11:41:48 +0000 (12:41 +0100)] 
libblkid: make blkid_free_probe() more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolib/path: initialize variables for scanf [coverity scan]
Karel Zak [Thu, 17 Mar 2022 11:22:01 +0000 (12:22 +0100)] 
lib/path: initialize variables for scanf [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolib/path: make ul_path_read_buffer() more robust [coverity scan]
Karel Zak [Thu, 17 Mar 2022 11:18:03 +0000 (12:18 +0100)] 
lib/path: make ul_path_read_buffer() more robust [coverity scan]

Make sure we never call buf[rc - 1] for rc=0.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopartx: remove memory leak to make scanners happy [coverity scan]
Karel Zak [Thu, 17 Mar 2022 10:22:29 +0000 (11:22 +0100)] 
partx: remove memory leak to make scanners happy  [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agocfdisk: don't use NULL in printf [coverity scan]
Karel Zak [Thu, 17 Mar 2022 09:48:33 +0000 (10:48 +0100)] 
cfdisk: don't use NULL in printf [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: release++ (v2.38-rc4) v2.38-rc4
Karel Zak [Wed, 16 Mar 2022 16:49:47 +0000 (17:49 +0100)] 
build-sys: release++ (v2.38-rc4)

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: merge changes
Karel Zak [Wed, 16 Mar 2022 16:46:24 +0000 (17:46 +0100)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: merge changes
Karel Zak [Wed, 16 Mar 2022 16:43:08 +0000 (17:43 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: update zh_CN.po (from translationproject.org)
Boyuan Yang [Wed, 16 Mar 2022 16:41:09 +0000 (17:41 +0100)] 
po: update zh_CN.po (from translationproject.org)

3 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 16 Mar 2022 16:41:09 +0000 (17:41 +0100)] 
po: update uk.po (from translationproject.org)

3 years agobuild-sys: (po-man) force .pot file update on 'make dist'
Karel Zak [Wed, 16 Mar 2022 16:15:30 +0000 (17:15 +0100)] 
build-sys: (po-man) force .pot file update on 'make dist'

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoblkzone: Do not print zone capacity if not supported
Andreas Hindborg [Wed, 16 Mar 2022 08:39:05 +0000 (09:39 +0100)] 
blkzone: Do not print zone capacity if not supported

If `blkzone` is built against kernel headers that do not define
`BLK_ZONE_REP_CAPACITY`, `blkzone report` will use zone size when printing zone
capacity. This patch changes the behavior of `blockzone report` in this case to
omit the capacity field instead of using the potentially wrong value.

Signed-off-by: Andreas Hindborg <andreas.hindborg@wdc.com>
3 years agobuild-sys: release++ (v2.38-rc3) v2.38-rc3
Karel Zak [Tue, 15 Mar 2022 14:16:31 +0000 (15:16 +0100)] 
build-sys: release++ (v2.38-rc3)

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update v2.38-ReleaseNotes
Karel Zak [Tue, 15 Mar 2022 14:15:33 +0000 (15:15 +0100)] 
docs: update v2.38-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update AUTHORS file
Karel Zak [Tue, 15 Mar 2022 12:40:42 +0000 (13:40 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: merge changes
Karel Zak [Tue, 15 Mar 2022 15:55:59 +0000 (16:55 +0100)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: merge changes
Karel Zak [Tue, 15 Mar 2022 14:31:42 +0000 (15:31 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: update tr.po (from translationproject.org)
Mesutcan Kurt [Tue, 15 Mar 2022 14:22:46 +0000 (15:22 +0100)] 
po: update tr.po (from translationproject.org)

3 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Tue, 15 Mar 2022 12:23:10 +0000 (13:23 +0100)] 
po: update uk.po (from translationproject.org)

3 years agopo: update ko.po (from translationproject.org)
Seong-ho Cho [Tue, 15 Mar 2022 12:23:09 +0000 (13:23 +0100)] 
po: update ko.po (from translationproject.org)

3 years agopo: update hr.po (from translationproject.org)
Božidar Putanec [Tue, 15 Mar 2022 12:23:09 +0000 (13:23 +0100)] 
po: update hr.po (from translationproject.org)

3 years agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Tue, 15 Mar 2022 12:23:09 +0000 (13:23 +0100)] 
po: update fr.po (from translationproject.org)

3 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Tue, 15 Mar 2022 12:23:09 +0000 (13:23 +0100)] 
po: update de.po (from translationproject.org)

3 years agopo: update cs.po (from translationproject.org)
Petr Písař [Tue, 15 Mar 2022 12:23:09 +0000 (13:23 +0100)] 
po: update cs.po (from translationproject.org)

3 years agodocs: update copyright years
Karel Zak [Tue, 15 Mar 2022 12:20:47 +0000 (13:20 +0100)] 
docs: update copyright years

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agotests: remove readline from build-sys output
Karel Zak [Tue, 15 Mar 2022 12:17:28 +0000 (13:17 +0100)] 
tests: remove readline from build-sys output

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoMerge branch 'fix-bsd-crashes-when-mount-not-found' of https://github.com/ellcs/util...
Karel Zak [Mon, 14 Mar 2022 09:35:58 +0000 (10:35 +0100)] 
Merge branch 'fix-bsd-crashes-when-mount-not-found' of https://github.com/ellcs/util-linux

* 'fix-bsd-crashes-when-mount-not-found' of https://github.com/ellcs/util-linux:
  Fix crash, when mount was not found on bsd systems

3 years agoMerge branch 'fix_typos' of https://github.com/yurchor/util-linux
Karel Zak [Mon, 14 Mar 2022 09:31:54 +0000 (10:31 +0100)] 
Merge branch 'fix_typos' of https://github.com/yurchor/util-linux

* 'fix_typos' of https://github.com/yurchor/util-linux:
  Fix minor typos

3 years agohardlink: add a missing word to an error message
Benno Schulenberg [Sun, 13 Mar 2022 11:45:56 +0000 (12:45 +0100)] 
hardlink: add a missing word to an error message

Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
3 years agohardlink: grammaticalize the main description in the man page
Benno Schulenberg [Sun, 13 Mar 2022 09:43:57 +0000 (10:43 +0100)] 
hardlink: grammaticalize the main description in the man page

(Also, hard-wrap the extremely long line to reasonable widths,
so that later small changes are easier to observe in git.)

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
3 years agohardlink: set all locale elements, so that messages will get translated
Benno Schulenberg [Sun, 13 Mar 2022 09:43:56 +0000 (10:43 +0100)] 
hardlink: set all locale elements, so that messages will get translated

This setting and binding were lost a year ago, in commit 2180ecc81b.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
3 years agoFix crash, when mount was not found on bsd systems
ellcs [Sun, 13 Mar 2022 15:56:54 +0000 (16:56 +0100)] 
Fix crash, when mount was not found on bsd systems

3 years agolibuuid: extend cache in uuid_generate_time_generic()
Michael Trapp [Thu, 10 Mar 2022 12:18:52 +0000 (13:18 +0100)] 
libuuid:  extend cache in uuid_generate_time_generic()

Improve throughput and reduce clock sequence increments
for high load situation with time based version 1 uuids.

In a high load scenario, where an application continiously reads time
based version 1 uuids from uuidd, we have noticed the following
behaviour.

The application reads more uuids as there are available in the
corresponding timeframe and each bulk request results in an increment of
the clock sequence because of the 'step back' in time. Due to the
14bit size of the clock sequence this also results in overflows of
the clock sequence.

As uuidd calls
    uuid_generate_time_safe()
       uuid_generate_time_generic()
the default value for the bulk request in the '#ifdef HAVE_TLS' section
of uuid_generate_time_generic() is set to 1000.

Extending the 'cache' of uuid_generate_time_generic() by increasing
the default of num to 1000000 doesn't solve the issue, but reduces
the clock sequence increments by factor 1000 and it also improves
the uuid throughput in our setup by factor 3-4.

It might be possible to implement a cache for
  UUIDD_OP_BULK_TIME_UUID
  UUIDD_OP_TIME_UUID
in the uuidd request handling, but it would not be as simple as this fix
in uuid_generate_time_generic().

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolosetup: fix --direct-io
Karel Zak [Wed, 9 Mar 2022 10:13:26 +0000 (11:13 +0100)] 
losetup: fix --direct-io

losetup checks for empty lo_flags when A_CREATE (action) is not
requested, otherwise it prints

"the options %s are allowed during loop device setup only"

error message. We need to cleanup lo_flags when alone --direct-io
requested.

Fix also typo in man page, "losetup --direct-io" is the same as
"losetup --direct-io=on".

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolosetup: fix memory leak [asan]
Karel Zak [Tue, 8 Mar 2022 12:06:45 +0000 (13:06 +0100)] 
losetup: fix memory leak [asan]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agowipefs: increase delay after re-read ioctl
Karel Zak [Tue, 8 Mar 2022 09:28:26 +0000 (10:28 +0100)] 
wipefs: increase delay after re-read ioctl

We usually use 250000 ms delay after EBUSY to repeat read/ioctls.
Let's use the same for wipefs.

Fixes: https://github.com/util-linux/util-linux/issues/1619
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: update variables in Makefile.am
Karel Zak [Mon, 7 Mar 2022 13:17:11 +0000 (14:17 +0100)] 
po-man: update variables in Makefile.am

3 years agopo-man: add new langs to po4a.cfg
Karel Zak [Mon, 7 Mar 2022 13:05:04 +0000 (14:05 +0100)] 
po-man: add new langs to po4a.cfg

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agotools: add git-tp-sync-man
Karel Zak [Mon, 7 Mar 2022 12:56:13 +0000 (13:56 +0100)] 
tools: add git-tp-sync-man

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: add uk.po (from translationproject.org)
Yuri Chornoivan [Mon, 7 Mar 2022 12:54:39 +0000 (13:54 +0100)] 
po-man: add uk.po (from translationproject.org)

3 years agopo-man: add pt_BR.po (from translationproject.org)
Rafael Fontenelle [Mon, 7 Mar 2022 12:54:39 +0000 (13:54 +0100)] 
po-man: add pt_BR.po (from translationproject.org)

3 years agopo-man: add fr.po (from translationproject.org)
Frédéric Marchal [Mon, 7 Mar 2022 12:54:39 +0000 (13:54 +0100)] 
po-man: add fr.po (from translationproject.org)

3 years agopo-man: add es.po (from translationproject.org)
Antonio Ceballos Roa [Mon, 7 Mar 2022 12:54:39 +0000 (13:54 +0100)] 
po-man: add es.po (from translationproject.org)

3 years agopo-man: add sr.po (from translationproject.org)
Мирослав Николић [Mon, 7 Mar 2022 12:53:32 +0000 (13:53 +0100)] 
po-man: add sr.po (from translationproject.org)

3 years agopo-man: update de.po (from translationproject.org)
Mario Blättermann [Mon, 7 Mar 2022 12:53:32 +0000 (13:53 +0100)] 
po-man: update de.po (from translationproject.org)