Commit Graph

15423 Commits

Author SHA1 Message Date
Karel Zak d527e8cf70 cfdisk: warn if disk on use
Fixes: https://github.com/karelzak/util-linux/issues/1278
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-15 14:39:11 +02:00
Karel Zak 82e5156a38 docs: add kernel version and commit to info about mountinfo workaround
Fixes: https://github.com/karelzak/util-linux/issues/1280
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-15 12:29:27 +02:00
Karel Zak aac716f503 libsmartcols: make buffers append function more robust
Fixes: https://github.com/karelzak/util-linux/issues/1279
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-14 16:25:30 +02:00
Karel Zak 91f6895fff prlimit: make code more robust
The prlimit description are always defined as static strings, but it
seems better to make the code more readable and robust for static
analyzers and readers.

Fix also missing gettext() call for description help.

Fixes: https://github.com/karelzak/util-linux/issues/1277
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-14 16:19:01 +02:00
Karel Zak e741653d22 tests: small change to the lsns/ioctl_ns
* make description short
* chmod a+x to make script executable

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-13 10:40:00 +02:00
Karel Zak 9698f39942 Merge branch 'ioctl_ns' of https://github.com/masatake/util-linux
* 'ioctl_ns' of https://github.com/masatake/util-linux:
  lsns: add columns for parent namespaces and owner namespaces
2021-04-13 10:34:49 +02:00
Karel Zak 724d844c12 po: use msgmerge --previous
Reported-by: Mario Blättermann <mario.blaettermann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-13 10:23:26 +02:00
Chris Hofstaedtler fdf734f7f3 hexdump: add "hd" program name to man page
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Bug-Debian: https://bugs.debian.org/978977
2021-04-13 10:20:42 +02:00
Masatake YAMATO d652d4c666 lsns: add columns for parent namespaces and owner namespaces
See ioctl_ns(2) about parent and owner namespaces.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2021-04-13 06:22:51 +09:00
Karel Zak a96932103e chrt: non-Linux fix
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 16:21:18 +02:00
Karel Zak e51c9822a9 lslogins: non-Linux fix
Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 16:20:01 +02:00
Karel Zak 331584dbbf build-sys: fix typo
s/Aug/Apr/ ... move back in time ;-)

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 12:46:51 +02:00
Karel Zak e90e5e7e12 build-sys: release++ (v2.37-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 11:26:02 +02:00
Karel Zak 6ae1e6b3d7 po: update
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 11:22:53 +02:00
Karel Zak ef3f006c6c docs: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 11:22:37 +02:00
Karel Zak c0246ce059 mesg: use only stat() to get the current terminal status
open()+stat() does not work for example after su(1) (from root to
non-root). It seems better to use only stat() to get the current
terminal status.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1906157
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-12 09:39:59 +02:00
Mario Blättermann 56af5af405 Asciidoc: Add missing macro definition in uclampset.1 2021-04-09 22:55:21 +02:00
Karel Zak 37bd59bd53 docs: update v2.37-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 15:30:19 +02:00
Karel Zak 766490185f findmnt: add --shadowed to the man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 15:07:45 +02:00
Karel Zak 27c4353b4e blkid: document --hint
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 15:07:11 +02:00
Karel Zak 751eca28fc libblkid: remove workaround for FAT+MBR on whole-disk
The current libblkid ignores FAT when created on the same whole-disk
device as valid MBR. This restriction is not compatible with many
devices (like USB flash disk) created by Windows or the latest
dosfstools where the first partition is used for entire device and
where is also valid FAT. The filesystem is accessible from partition
as well as from whole-disk device.

The conclusion (between util-linux, dosfstools and udisks) is that
libblkid has to provide all details, not hide anything and the proper
policy (hide/show) has to be implemented by udisks (or so).

CC: Tomáš Bžatek <tbzatek@redhat.com>
CC: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 14:42:18 +02:00
Karel Zak 33ef6ce910 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 11:00:58 +02:00
Karel Zak 38f604505d po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 10:09:19 +02:00
Karel Zak 059ba3dd76 travis: cleanup before autogen
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 08:02:10 +02:00
Karel Zak a2c3638f0e tools: add missing stuff to Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-09 07:53:21 +02:00
Karel Zak cc8df1caf6 Merge branch 'fix-typo' of https://github.com/paullaffitte/util-linux
* 'fix-typo' of https://github.com/paullaffitte/util-linux:
  fix typo in findmnt help
2021-04-09 07:48:02 +02:00
Paul Laffitte 02b0bdcc8c
fix typo in findmnt help 2021-04-08 19:09:30 +02:00
Мирослав Николић 1f4c639c40 po: add sr.po (from translationproject.org) 2021-04-08 14:52:52 +02:00
Sebastian Rasmussen 070bd0a450 po: update sv.po (from translationproject.org) 2021-04-08 14:52:52 +02:00
Božidar Putanec e0fc3a40bd po: update hr.po (from translationproject.org) 2021-04-08 14:52:51 +02:00
Antonio Ceballos Roa 7e13ea492f po: update es.po (from translationproject.org) 2021-04-08 14:52:51 +02:00
Petr Písař f0e8053c4e po: update cs.po (from translationproject.org) 2021-04-08 14:52:51 +02:00
Karel Zak acd1b6b72c tools: replace checkmans.sh with adoc scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-08 14:19:52 +02:00
Karel Zak 6b160f5acd tests: update fdisk dumps
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-08 12:46:47 +02:00
Karel Zak a970c2dd51 fdisk: always skips zeros in dumps
The expert command 'D'ump skips zeros when print label hexdump on
terminal, but for non-terminal it prints all buffer. It seems
better to use the same semantic everywhere and skip zeros.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-08 12:42:36 +02:00
Karel Zak 22a900a90f build-sys: add UL_REQUIRES_PROGRAM() macro, use it for asciidoc
* use our generic UL_BUILD_INIT() stuff for ENABLE_ASCIIDOC
* add UL_REQUIRES_PROGRAM()
* add "Manual pages: yes|no" to ./configure summary

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-07 10:19:03 +02:00
Mario Blättermann 681f4a1e31 Asciidoc: Fix markup in example man page 2021-04-06 17:51:24 +02:00
Karel Zak 236421a491 build-sys: make man pages optional, add --disable-asciidoc
* don't use dist_noinst_DATA= for generated man pages (use man_MANS=)

* make asciidoctor optional

* add --disable-asciidoc to explicitly disable man pages

Addresses: https://github.com/karelzak/util-linux/issues/1257
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-06 17:22:36 +02:00
Karel Zak 53b37016c3 meson: generate man pages from asciidoc
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-06 15:32:46 +02:00
Karel Zak ae4e859f68 Merge branch 'more-fixes' of https://github.com/h-c-mueller/util-linux
* 'more-fixes' of https://github.com/h-c-mueller/util-linux:
  more: fix ARROW_DOWN and PAGE_DOWN behaviour to not skip lines
  more: fix command 'f' (screen forward) behaviour
2021-04-06 11:24:40 +02:00
Mario Blättermann 360946bb93 Asciidoc: Fix markup 2021-04-04 15:33:56 +02:00
Karel Zak ba3b935259 tests: update lscpu output
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-01 12:30:25 +02:00
Karel Zak 9dadd3e60c lscpu: report also number of cache instances
Caches (sum of all):
  L1d:                   128 KiB (4 instances)
  L1i:                   128 KiB (4 instances)
  L2:                    1 MiB (4 instances)
  L3:                    8 MiB (1 instance)

Suggested-by: John Henning <john.henning@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-01 12:27:05 +02:00
Karel Zak 8bb50864c1 build-sys: improve asciidoc generic rule
* keep it based on suffixes to make possible to generate individual
  pages in dependence on original .adoc
* use absolute builddir to be robust enough for 'make distcheck'
* make man page links depend on man pages

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-01 11:47:21 +02:00
Mario Blättermann 69378d9bf4 Asciidoc: Remove artifact from merge conflict 2021-03-31 17:48:21 +02:00
Mario Blättermann 67467c9891 Asciidoc: Resolve merge conflict 2021-03-31 17:46:27 +02:00
Karel Zak e185f57e34 build-sys: cleanup distcheck options
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-31 11:57:22 +02:00
Karel Zak 625e9c61e8 build-sys: make man pages location independent
We need to evaluate "include::" directive relatively to project
top-level source directory rather than to the current document
location.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-31 11:50:47 +02:00
Mario Blättermann 7f29a25af9 Asciidoc: Convert man-common/README to Markdown 2021-03-29 20:19:59 +02:00
Mario Blättermann 3da93af26b po-man: Fix the example man page 2021-03-29 19:51:51 +02:00