]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
5 years agolsmem: use ul_path_readf_string() readable for analysers [coverity scan]
Karel Zak [Thu, 25 Mar 2021 11:23:21 +0000 (12:23 +0100)] 
lsmem: use ul_path_readf_string() readable for analysers [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolsirq: fix resources leak [coverity scan]
Karel Zak [Thu, 25 Mar 2021 11:14:46 +0000 (12:14 +0100)] 
lsirq: fix resources leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolsirq: fix resources leak [coverity scan]
Karel Zak [Thu, 25 Mar 2021 11:13:00 +0000 (12:13 +0100)] 
lsirq: fix resources leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomeson: add irq utils
Karel Zak [Thu, 25 Mar 2021 11:12:11 +0000 (12:12 +0100)] 
meson: add irq utils

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agofstrim: fix memory leak [coverity scan]
Karel Zak [Thu, 25 Mar 2021 10:53:02 +0000 (11:53 +0100)] 
fstrim: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibmount: fix memory leak [coverity scan]
Karel Zak [Thu, 25 Mar 2021 10:03:03 +0000 (11:03 +0100)] 
libmount: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibmount: add assert() to umount lookup code
Karel Zak [Thu, 25 Mar 2021 09:51:54 +0000 (10:51 +0100)] 
libmount: add assert() to umount lookup code

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibfdisk: make labels allocations readable for analysers [coverity scan]
Karel Zak [Thu, 25 Mar 2021 09:43:20 +0000 (10:43 +0100)] 
libfdisk: make labels allocations readable for analysers [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agosfdisk: fix resources leak [coverity scan]
Karel Zak [Thu, 25 Mar 2021 09:25:12 +0000 (10:25 +0100)] 
sfdisk: fix resources leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoAdd missing backslash to Makefile.am
Mario Blättermann [Wed, 24 Mar 2021 19:28:08 +0000 (20:28 +0100)] 
Add missing backslash to Makefile.am

5 years agoAsciidoc: Review login-utils man pages
Mario Blättermann [Wed, 24 Mar 2021 19:01:34 +0000 (20:01 +0100)] 
Asciidoc: Review login-utils man pages

5 years agoAsciidoc: Review disk-utils man pages
Mario Blättermann [Wed, 24 Mar 2021 17:53:27 +0000 (18:53 +0100)] 
Asciidoc: Review disk-utils man pages

5 years agoAsciidoc: Review terminal-colors.d.5.adoc
Mario Blättermann [Wed, 24 Mar 2021 16:37:34 +0000 (17:37 +0100)] 
Asciidoc: Review terminal-colors.d.5.adoc

5 years agoMerge branch 'topic/rfkill'
Karel Zak [Wed, 24 Mar 2021 11:54:41 +0000 (12:54 +0100)] 
Merge branch 'topic/rfkill'

5 years agolibsmartcols: introduce default sort column
Karel Zak [Wed, 24 Mar 2021 11:43:17 +0000 (12:43 +0100)] 
libsmartcols: introduce default sort column

* add default sort column, set by scols_sort_table()

* sort tree according to default sort column also in scols_sort_table_by_tree()

The function scols_sort_table() does not sort tree branches if tree
is not enabled. The function scols_sort_table_by_tree() does not care
if tree is enabled and it always follows parent->child relations. For
scols_sort_table_by_tree() we need to follow order in branches if
previously scols_sort_table() has been called.

For example lsblk calls

scols_sort_table(tb, cl);
scols_sort_table_by_tree(tb);

for list-like output (for example lsblk -P) and users assume the
same order as for tree (lsblk --tree).

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1940607
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: add sort sunction to the sample
Karel Zak [Wed, 24 Mar 2021 11:42:58 +0000 (12:42 +0100)] 
libsmartcols: add sort sunction to the sample

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoDefine the asciidoctor command in configure.ac
Mario Blättermann [Tue, 23 Mar 2021 20:09:22 +0000 (21:09 +0100)] 
Define the asciidoctor command in configure.ac

5 years agoAsciidoc: Review schedutils man pages
Mario Blättermann [Tue, 23 Mar 2021 19:43:52 +0000 (20:43 +0100)] 
Asciidoc: Review schedutils man pages

5 years agoAsciidoc: Incorporate latest change in findmnt.8
Mario Blättermann [Tue, 23 Mar 2021 19:10:02 +0000 (20:10 +0100)] 
Asciidoc: Incorporate latest change in findmnt.8

5 years agoAsciidoc: Review misc-utils man pages
Mario Blättermann [Tue, 23 Mar 2021 19:07:15 +0000 (20:07 +0100)] 
Asciidoc: Review misc-utils man pages

5 years agorfkill: add "toggle" command
Karel Zak [Tue, 23 Mar 2021 14:20:44 +0000 (15:20 +0100)] 
rfkill: add "toggle" command

Addresses: https://github.com/karelzak/util-linux/issues/1269
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agotests: make it compatible with meson
Karel Zak [Mon, 22 Mar 2021 14:15:52 +0000 (15:15 +0100)] 
tests: make it compatible with meson

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agofindmnt: add --shadowed
Karel Zak [Mon, 22 Mar 2021 13:58:05 +0000 (14:58 +0100)] 
findmnt: add --shadowed

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibmount: mnt_table_over_fs() make child optional
Karel Zak [Mon, 22 Mar 2021 13:57:07 +0000 (14:57 +0100)] 
libmount: mnt_table_over_fs() make child optional

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agofindmnt: sort columns
Karel Zak [Mon, 22 Mar 2021 11:41:37 +0000 (12:41 +0100)] 
findmnt: sort columns

Let's make "Available columns" in --help more readable.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoumount: support over-mounts for --recursive
Karel Zak [Mon, 22 Mar 2021 10:29:28 +0000 (11:29 +0100)] 
umount: support over-mounts for --recursive

For example for hierarchy:

  $ findmnt -oTARGET,ID,PARENT
  TARGET                      ID PARENT
  /mnt/A                     802     62
  └─/mnt/A/B                 937    802
    ├─/mnt/A/B/C             964    937
    │ └─/mnt/A/B/C           991    964
    └─/mnt/A/B              1018    937
      └─/mnt/A/B            1045   1018

we need umount in order (id): 1045, 1018, 991, 964, 937, 802. The current
code first tries 991 in 937 branch.

Reported-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibmount: add mnt_table_over_fs()
Karel Zak [Mon, 22 Mar 2021 10:24:49 +0000 (11:24 +0100)] 
libmount: add mnt_table_over_fs()

The function returns the first over-mount for specified filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoAsciidoc: Yet another formatting fix
Mario Blättermann [Sun, 21 Mar 2021 17:24:47 +0000 (18:24 +0100)] 
Asciidoc: Yet another formatting fix

5 years agoAsciidoc: Formatting cleanup
Mario Blättermann [Sun, 21 Mar 2021 12:02:56 +0000 (13:02 +0100)] 
Asciidoc: Formatting cleanup

5 years agoAsciidoc: Remove already imported text-utils *roff man pages
Mario Blättermann [Sun, 21 Mar 2021 11:50:16 +0000 (12:50 +0100)] 
Asciidoc: Remove already imported text-utils *roff man pages

5 years agoAsciidoc: Unify spelling of »User Commands«
Mario Blättermann [Sun, 21 Mar 2021 09:00:16 +0000 (10:00 +0100)] 
Asciidoc: Unify spelling of »User Commands«

5 years agoAsciidoc: Add Po4a hint to file headers
Mario Blättermann [Sat, 20 Mar 2021 15:42:47 +0000 (16:42 +0100)] 
Asciidoc: Add Po4a hint to file headers

5 years agoAsciidoc: Small fix in nsenter.1.adoc
Mario Blättermann [Sat, 20 Mar 2021 14:23:32 +0000 (15:23 +0100)] 
Asciidoc: Small fix in nsenter.1.adoc

5 years agoAsciidoc: Some more man page formatting improvements
Mario Blättermann [Sat, 20 Mar 2021 08:45:23 +0000 (09:45 +0100)] 
Asciidoc: Some more  man page formatting improvements

Besides some formatting tweaks, I've changed »lsblk(1)« into »lsblk(8)«
in the SEE ALSO section of mount.8.adoc. At least Archlinux and Debian
ship lsblk as a system administration command.

5 years agoAsciidoc: Re-add empty lines to man pages
Mario Blättermann [Fri, 19 Mar 2021 19:52:00 +0000 (20:52 +0100)] 
Asciidoc: Re-add empty lines to man pages

5 years agoAsciidoc: Some formatting cleanup in man pages
Mario Blättermann [Fri, 19 Mar 2021 17:25:50 +0000 (18:25 +0100)] 
Asciidoc: Some formatting cleanup in man pages

5 years agoAsciidoc: Remove already imported misc-utils *roff man pages
Mario Blättermann [Fri, 19 Mar 2021 16:16:40 +0000 (17:16 +0100)] 
Asciidoc: Remove already imported misc-utils *roff man pages

5 years agoAsciidoc: Import misc-utils man pages
Mario Blättermann [Fri, 19 Mar 2021 16:12:57 +0000 (17:12 +0100)] 
Asciidoc: Import misc-utils man pages

5 years agofindmnt: add PARENT column
Karel Zak [Fri, 19 Mar 2021 15:39:27 +0000 (16:39 +0100)] 
findmnt: add PARENT column

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibfdisk: (gpt) returns location of the backup header too
Karel Zak [Fri, 19 Mar 2021 13:54:34 +0000 (14:54 +0100)] 
libfdisk: (gpt) returns location of the backup header too

Reported-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoprlimit: fix optional arguments parsing
Karel Zak [Thu, 18 Mar 2021 09:23:36 +0000 (10:23 +0100)] 
prlimit: fix optional arguments parsing

 $ prlimit -f=100:100
 failed to parse FSIZE limit

Fixes: https://github.com/karelzak/util-linux/issues/1265
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomore: fix ARROW_DOWN and PAGE_DOWN behaviour to not skip lines
Hannes Müller [Wed, 17 Mar 2021 19:42:11 +0000 (20:42 +0100)] 
more: fix ARROW_DOWN and PAGE_DOWN behaviour to not skip lines

Currently ARROW_DOWN and PAGE_DOWN is bound to command 's' (skip lines).
But this behaviour is not what the user expects, since at least one line
is always missing! Furthermore at the end of the file there is typically
this skipping lines message, if the remainder does not fit in a
complete screen. This conflicts also with e.g. less and man PAGE_DOWN
behaviour. The 'natural' behaviour is binding to
more_kc_jump_lines_per_screen.
If more is extended to also jump only a specific number of lines forward,
this would be even a better binding for ARROW_DOWN.

5 years agomore: fix command 'f' (screen forward) behaviour
Hannes Müller [Wed, 17 Mar 2021 19:37:47 +0000 (20:37 +0100)] 
more: fix command 'f' (screen forward) behaviour

Currently 'f' behaves like 's', which is not correct according to
man page.
Bug was introduced with 1f861935a7292acbecc4d1618657e740e46175d9

5 years agoAsciidoc: Remove already imported login-utils *roff man pages
Mario Blättermann [Wed, 17 Mar 2021 19:00:15 +0000 (20:00 +0100)] 
Asciidoc: Remove already imported login-utils *roff man pages

5 years agoAsciidoc: Import login-utils man pages
Mario Blättermann [Wed, 17 Mar 2021 18:57:15 +0000 (19:57 +0100)] 
Asciidoc: Import login-utils man pages

5 years agomeson: add missing HAVE_ definitions
Karel Zak [Wed, 17 Mar 2021 14:52:08 +0000 (15:52 +0100)] 
meson: add missing HAVE_ definitions

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomeson: update for new hardlink
Karel Zak [Wed, 17 Mar 2021 14:42:26 +0000 (15:42 +0100)] 
meson: update for new hardlink

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomeson: port localstatedir and sysconfdir
Karel Zak [Wed, 17 Mar 2021 14:07:19 +0000 (15:07 +0100)] 
meson: port localstatedir and sysconfdir

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomeson: update sources and dependencies
Karel Zak [Tue, 16 Feb 2021 17:09:24 +0000 (18:09 +0100)] 
meson: update sources and dependencies

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomeson: update configuration
Karel Zak [Tue, 16 Feb 2021 11:10:36 +0000 (12:10 +0100)] 
meson: update configuration

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomeson: implement building of static programs
Zbigniew Jędrzejewski-Szmek [Mon, 11 May 2020 10:06:39 +0000 (12:06 +0200)] 
meson: implement building of static programs

The whole thing is complicated by the fact that we have two layers
of libraries: e.g. libmount also needs libblkid. If we just tell meson
to make libmount static, this is not enough, because we also need it
to link to a static libblkid. Hence in the case of libs that link to
other libs internally, we need to create a different object with a
a different set of link_with items.

To avoid building the libraries twice, libfdisk and libmount are first
built into an internal "convenience" library, which is then linked into
the static and shared versions as appropriate.

5 years agomeson: add second build system
Zbigniew Jędrzejewski-Szmek [Sun, 23 Feb 2020 18:42:55 +0000 (19:42 +0100)] 
meson: add second build system

To build: meson build && ninja -C build
To run tests: ninja -C build check
To install for packaging: DESTDIR=/var/tmp/inst ninja -C build install
To install for realz: sudo ninja -C build install

v2:
- Optional items are now based on the 'feature' feature in meson.
  Built libraries which are disabled turn into disabler() objects
  and also poison any executables which link to them.

What is there:
- building of the binaries and libs and the python module
- installation of binaries, libs, python module, localization files,
  man pages, pkgconfig files
- running of tests
- most options to configure build equivalently to the
  ./configure settings

Partially implemented:
- disabling of stuff when things missing. In the C code, the defines
  are all used, so that should be fine. In the build system, some
  files should be skipped, but that is probably not always done properly.
  Getting this right might require some testing of various build option
  combinations to get the details right.

Not implemented:
- static builds of fdisk and other binaries
- things marked with XXX or FIXME
- ???

Differences:
- .la files are not created. They are useless and everybody hates them.
- Requires.private in pkgconfig files are not present in the
  autogenerated .pc file. Not sure if they should be there or not. If
  necessary, they can be added by hand.
- man pages and systemd units are installed by the install target. Not
  sure why 'make install' doesn't do that.
- the split between / and /usr is probably wrong. But it's all pointless
  anyway, so maybe we could simplify things but not implementing it at
  all under meson?

5 years agotests/run: create failure directory
Zbigniew Jędrzejewski-Szmek [Thu, 27 Feb 2020 11:13:09 +0000 (12:13 +0100)] 
tests/run: create failure directory

The test would occasionally fail with
tests/run.sh: line 241: /home/fedora/util-linux/build/tests/failures: No such file or directory

I don't quite understand why the file does not get created... The outupt directory
missing seems the most likely explanation.

5 years agotests: update build test results
Karel Zak [Wed, 17 Mar 2021 11:46:22 +0000 (12:46 +0100)] 
tests: update build test results

Update as usually before release to see differences (on Fedora 33).

- static programs are not enabled by tools/config-gen.d/all.conf
  anymore (see 63f4e199287c6b2cfbb092f1e2b0f0a3e0e576e3)
- add new uclampset
- libdl and libpython3 seems unnecessary
- fdformat disabled by default
- new hardlink uses libpcre2-posix

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agotools: use libcryptsetup in config-gen.d/all.conf
Karel Zak [Wed, 17 Mar 2021 11:45:40 +0000 (12:45 +0100)] 
tools: use libcryptsetup in config-gen.d/all.conf

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoAsciidoc: add missing bugreports section to libblkid and some cleanup
Mario Blättermann [Tue, 16 Mar 2021 20:17:50 +0000 (21:17 +0100)] 
Asciidoc: add missing bugreports section to libblkid and some cleanup

5 years agoAsciidoc: Remove already imported disk-utils *roff man pages
Mario Blättermann [Tue, 16 Mar 2021 20:13:57 +0000 (21:13 +0100)] 
Asciidoc: Remove already imported disk-utils *roff man pages

5 years agoAsciidoc: Import disk-utils man pages
Mario Blättermann [Tue, 16 Mar 2021 20:08:43 +0000 (21:08 +0100)] 
Asciidoc: Import disk-utils man pages

5 years agoAsciidoc: Fix man pages with variables to use the same value as in previous *.in...
Mario Blättermann [Tue, 16 Mar 2021 18:41:23 +0000 (19:41 +0100)] 
Asciidoc: Fix man pages with variables to use the same value as in previous *.in files

5 years agoAsciidoc: Remove already imported *roff man pages
Mario Blättermann [Tue, 16 Mar 2021 18:35:37 +0000 (19:35 +0100)] 
Asciidoc: Remove already imported *roff man pages

5 years agoAsciidoc: Adapt Makefiles to new asciidoc man pages
Mario Blättermann [Tue, 16 Mar 2021 18:34:59 +0000 (19:34 +0100)] 
Asciidoc: Adapt Makefiles to new asciidoc man pages

5 years agohwclock: fix indentation
Łukasz Stelmach [Tue, 16 Mar 2021 11:53:13 +0000 (12:53 +0100)] 
hwclock: fix indentation

Fixes: 042f62dfc ("[clang-tidy] do not use else after return")
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
5 years agobuild-sys: add EXTRA_LTLIBRARIES beween CLEANFILES
Karel Zak [Tue, 16 Mar 2021 11:32:21 +0000 (12:32 +0100)] 
build-sys: add EXTRA_LTLIBRARIES beween CLEANFILES

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agopylibmount: PyEval_Call* is deprecate, use PyObject_Call*
Karel Zak [Mon, 15 Mar 2021 15:37:47 +0000 (16:37 +0100)] 
pylibmount: PyEval_Call* is deprecate, use PyObject_Call*

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoMerge branch 'extra_ltlibraries' of https://github.com/bluca/util-linux
Karel Zak [Mon, 15 Mar 2021 15:22:20 +0000 (16:22 +0100)] 
Merge branch 'extra_ltlibraries' of https://github.com/bluca/util-linux

* 'extra_ltlibraries' of https://github.com/bluca/util-linux:
  Automake: install uuidgen bash completion only if it is built
  Automake: use EXTRA_LTLIBRARIES instead of noinst_LTLIBRARIES

5 years agolibsmratcols: print title color only when wanted
Karel Zak [Mon, 15 Mar 2021 15:19:23 +0000 (16:19 +0100)] 
libsmratcols: print title color only when wanted

Reference: 676fb001d6b092470d5390adbd0424dfdecafa3c.
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoAutomake: install uuidgen bash completion only if it is built
Luca Boccassi [Mon, 15 Mar 2021 12:26:27 +0000 (12:26 +0000)] 
Automake: install uuidgen bash completion only if it is built

Check for BUILD_UUIDGEN instead of BUILD_LIBUUID

5 years agoAutomake: use EXTRA_LTLIBRARIES instead of noinst_LTLIBRARIES
Luca Boccassi [Mon, 15 Mar 2021 12:16:08 +0000 (12:16 +0000)] 
Automake: use EXTRA_LTLIBRARIES instead of noinst_LTLIBRARIES

noinst_LTLIBRARIES causes the libraries to be always built
unconditionally. EXTRA_LTLIBRARIES causes them to be built
only if other build target needs them.
In other words, avoid building libcommon.a and libtcolors.a
unless they are needed by another library/executable and
save some build time.

https://www.gnu.org/software/automake/manual/html_node/Libtool-Convenience-Libraries.html

5 years agoAsciidoc: Import libuuid man pages
Mario Blättermann [Sun, 14 Mar 2021 13:29:44 +0000 (14:29 +0100)] 
Asciidoc: Import libuuid man pages

5 years agoAsciidoc: Import term-utils man pages
Mario Blättermann [Sun, 14 Mar 2021 09:48:27 +0000 (10:48 +0100)] 
Asciidoc: Import term-utils man pages

5 years agoAsciidoc: Import hwclock.8.in
Mario Blättermann [Sun, 14 Mar 2021 07:58:13 +0000 (08:58 +0100)] 
Asciidoc: Import hwclock.8.in

5 years agoAsciidoc: Import rtcwake.8.in
Mario Blättermann [Sat, 13 Mar 2021 21:55:02 +0000 (22:55 +0100)] 
Asciidoc: Import rtcwake.8.in

5 years agoAsciidoc: Import sys-utils man pages, part 3
Mario Blättermann [Sat, 13 Mar 2021 21:33:34 +0000 (22:33 +0100)] 
Asciidoc: Import sys-utils man pages, part 3

5 years agoAsciidoc: Use correct ':man manual:' for man pages from section 8
Mario Blättermann [Sat, 13 Mar 2021 11:49:26 +0000 (12:49 +0100)] 
Asciidoc: Use correct ':man manual:' for man pages from section 8

5 years agoAsciidoc: Import sys-utils man pages, part 2
Mario Blättermann [Sat, 13 Mar 2021 11:22:34 +0000 (12:22 +0100)] 
Asciidoc: Import sys-utils man pages, part 2

5 years agoAsciidoc: Import sys-utils man pages, part 1
Mario Blättermann [Fri, 12 Mar 2021 20:10:37 +0000 (21:10 +0100)] 
Asciidoc: Import sys-utils man pages, part 1

5 years agolibsmartcols: fix colors use
Karel Zak [Fri, 12 Mar 2021 15:14:39 +0000 (16:14 +0100)] 
libsmartcols: fix colors use

* use color for all cell
* always switch back to line color

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoAsciidoc: Import textutils man pages
Mario Blättermann [Fri, 12 Mar 2021 13:16:26 +0000 (14:16 +0100)] 
Asciidoc: Import textutils man pages

5 years agolibblikid.3.adoc: Add missing SYNOPSIS section
Mario Blättermann [Fri, 12 Mar 2021 12:34:59 +0000 (13:34 +0100)] 
libblikid.3.adoc: Add missing SYNOPSIS section

5 years agotests: update mountpoint return code chack
Karel Zak [Fri, 12 Mar 2021 10:39:12 +0000 (11:39 +0100)] 
tests: update mountpoint return code chack

This is necessary due to e0ecd196414c03699cd8e8dd2c6f4fe533999837.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agofindmnt: (man) add more info about --target
Karel Zak [Fri, 12 Mar 2021 10:00:56 +0000 (11:00 +0100)] 
findmnt: (man) add more info about --target

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoRemove no longer valid part of man/common/README
Mario Blättermann [Thu, 11 Mar 2021 17:48:13 +0000 (18:48 +0100)] 
Remove no longer valid part of man/common/README

5 years agoAdd asciidoc man pages and some include files
Mario Blättermann [Thu, 11 Mar 2021 17:38:46 +0000 (18:38 +0100)] 
Add asciidoc man pages and some include files

5 years agotests: update mountpoint tests
Karel Zak [Thu, 11 Mar 2021 09:52:11 +0000 (10:52 +0100)] 
tests: update mountpoint tests

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agomountpoint: different exit status for errors and non-mountpoint situation
Karel Zak [Thu, 11 Mar 2021 09:48:36 +0000 (10:48 +0100)] 
mountpoint: different exit status for errors and non-mountpoint situation

Fixes: https://github.com/karelzak/util-linux/issues/1260
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: update TODO
Karel Zak [Wed, 10 Mar 2021 15:15:30 +0000 (16:15 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: add comments to private header file
Karel Zak [Wed, 10 Mar 2021 10:30:53 +0000 (11:30 +0100)] 
libsmartcols: add comments to private header file

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: update TODO
Karel Zak [Wed, 10 Mar 2021 09:21:57 +0000 (10:21 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolscpu: use size_t for ncolumns
Karel Zak [Tue, 9 Mar 2021 14:55:33 +0000 (15:55 +0100)] 
lscpu: use size_t for ncolumns

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolscpu: support +list for -e, -p and -C
Karel Zak [Tue, 9 Mar 2021 09:37:36 +0000 (10:37 +0100)] 
lscpu: support +list for -e, -p and -C

For example "lscpu -e=+MHZ" to list the default columns and MHZ. We
use the same in other tools.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolscpu: add info that caches sizes are sum
Karel Zak [Mon, 8 Mar 2021 10:25:15 +0000 (11:25 +0100)] 
lscpu: add info that caches sizes are sum

Addresses: https://github.com/karelzak/util-linux/issues/1258
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agofdisk: (man) add info about order for -l
Karel Zak [Mon, 8 Mar 2021 09:56:47 +0000 (10:56 +0100)] 
fdisk: (man) add info about order for -l

Reported-by: Dan Jacobson <jidanni@jidanni.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agohwclock: use pointer to adjtime data
Karel Zak [Thu, 4 Mar 2021 10:27:47 +0000 (11:27 +0100)] 
hwclock: use pointer to adjtime data

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoutmpdup: Ensure flushing when using follow flag
Andrew Shapiro [Mon, 1 Mar 2021 18:18:27 +0000 (13:18 -0500)] 
utmpdup: Ensure flushing when using follow flag

The following usages of utmpdump result in no output being flushed to the specified file because the default output buffering is fully buffered:

$ utmpdump --follow --output myOutputFile /var/log/utmp
$ utmpdump --follow /var/log/utmp > myOutputFile

This change configures line buffering for these scenarios so that output will be flushed after each log event.

Signed-off-by: Andrew Shapiro <anshapiro@gmail.com>
5 years agodmesg: fix and cleanup --read-clear
Karel Zak [Mon, 1 Mar 2021 15:50:20 +0000 (16:50 +0100)] 
dmesg: fix and cleanup --read-clear

The function read_buffer() implements read and clear functionally, but
we do not differentiate between these actions in main() for error
messages, and one generic "dmesg: read kernel buffer failed" is used
in all cases. That's a bug.

This patch removes the "clear" action from read_buffer() and keeps it
for buffer reading only.  The "clear" action is implemented in main()
by separate klogctl(SYSLOG_ACTION_CLEAR) for cases. It means also for
"dmesg --read-clear"; we do not use SYSLOG_ACTION_READ_CLEAR anymore.

Now "clear+read" is:

 * syslog: SYSLOG_ACTION_READ_ALL + SYSLOG_ACTION_CLEAR
 * kmsg:   /dev/kmsg read()       + SYSLOG_ACTION_CLEAR

In old versions "dmesg --syslog --read-clear" (syalog backed) was
implemented by      logctl(SYSLOG_ACTION_READ_CLEAR) and it returns no
data for non-root  users (due to EPERM), "dmesg --read-clear" (kmsg)
returns data and EPERM for the "clear" action.

Now the command "dmesg --syslog --read-clear" and "dmesg --read-clear"
behaves in the same way -- returns data and EPERM for the "clear"
action.

Fixes: https://github.com/karelzak/util-linux/issues/1255
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolsblk: update man page
Karel Zak [Mon, 1 Mar 2021 13:51:28 +0000 (14:51 +0100)] 
lsblk: update man page

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoMerge branch 'master' of https://github.com/adigitoleo/util-linux
Karel Zak [Mon, 1 Mar 2021 13:46:50 +0000 (14:46 +0100)] 
Merge branch 'master' of https://github.com/adigitoleo/util-linux

5 years agoUpdate lsblk.8
Leon [Mon, 1 Mar 2021 11:47:27 +0000 (22:47 +1100)] 
Update lsblk.8

5 years agoirqtop: check scols_line_set_data() return code
Karel Zak [Thu, 25 Feb 2021 13:37:17 +0000 (14:37 +0100)] 
irqtop: check scols_line_set_data() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoirqtop: small cleanup
Karel Zak [Thu, 25 Feb 2021 08:57:49 +0000 (09:57 +0100)] 
irqtop: small cleanup

Signed-off-by: Karel Zak <kzak@redhat.com>