Karel Zak
92c380cbc3
build-sys: fix out-of-tree build
...
asciidoctor cannot write to source directory, we need to force it to
use $builddir.
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 14:21:36 +01:00
Karel Zak
19feed6d96
build-sys: add man-common/Makemodule.am
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 14:21:36 +01:00
Mario Blättermann
69dc8997dc
Asciidoc: Incorporate latest changes in rfkill.8 and umount.8
2021-03-26 13:35:42 +01:00
Mario Blättermann
b49072cf79
Asciidoc: Remove old man page links
2021-03-26 13:26:16 +01:00
Karel Zak
ad67a438cf
build-sys: fix typo
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 11:57:07 +01:00
Karel Zak
b94cc212fd
build-sys: cleanup .gitignore files
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 11:55:01 +01:00
Karel Zak
4f79d3032e
build-sys: split man pages and man page links
...
The symlinks are generated by asciidoctor and current dist_man_MANS
depends on order (nan page before man link). This solutions is useless
when execute "make -j". The real solution is to keep man pages in
separate variable and use only this variable evaluate what we need to
generate.
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 11:49:59 +01:00
Karel Zak
c2096885af
build-sys: remove man page link files
...
It seems asciidoctor generates all necessary files.
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 11:26:08 +01:00
Karel Zak
bdda0dc051
build-sys: remove duplicate hook
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 10:31:29 +01:00
Karel Zak
eac3674f76
build-sys: remove some man pages from PATHFILES
...
fix warnings:
Makefile:15936: warning: overriding recipe for target 'misc-utils/uuidd.8'
Makefile:15928: warning: ignoring old recipe for target 'misc-utils/uuidd.8'
Makefile:15936: warning: overriding recipe for target 'misc-utils/getopt.1'
Makefile:15928: warning: ignoring old recipe for target 'misc-utils/getopt.1'
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-26 10:15:19 +01:00
Mario Blättermann
68860732a7
Asciidoc: Review sys-utils man pages,part 1
2021-03-25 20:27:34 +01:00
Mario Blättermann
bbeadfdd5b
Asciidoc: Review text-utils man pages
2021-03-25 19:17:48 +01:00
Mario Blättermann
28f4f1a37d
Asciidoc: Review term-utils man pages
2021-03-25 18:22:30 +01:00
Karel Zak
928f320f09
ttymsg: fix resource leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 12:39:23 +01:00
Karel Zak
4397707e7a
lsmem: use ul_path_readf_string() readable for analysers [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 12:23:21 +01:00
Karel Zak
01a895d840
lsirq: fix resources leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 12:14:46 +01:00
Karel Zak
e37babc0ec
lsirq: fix resources leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 12:13:00 +01:00
Karel Zak
645577c755
meson: add irq utils
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 12:12:11 +01:00
Karel Zak
a887d587bf
fstrim: fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 11:53:02 +01:00
Karel Zak
903f812d0b
libmount: fix memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 11:03:03 +01:00
Karel Zak
23b9caa1fc
libmount: add assert() to umount lookup code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 10:51:54 +01:00
Karel Zak
fe7ef272d0
libfdisk: make labels allocations readable for analysers [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 10:43:20 +01:00
Karel Zak
8207f99b7a
sfdisk: fix resources leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-25 10:25:12 +01:00
Mario Blättermann
d9a67eb510
Add missing backslash to Makefile.am
2021-03-24 20:28:08 +01:00
Mario Blättermann
62fde24f47
Asciidoc: Review login-utils man pages
2021-03-24 20:01:34 +01:00
Mario Blättermann
299604dd0b
Asciidoc: Review disk-utils man pages
2021-03-24 18:53:27 +01:00
Mario Blättermann
ea81716d0c
Asciidoc: Review terminal-colors.d.5.adoc
2021-03-24 17:37:34 +01:00
Karel Zak
1630e65371
Merge branch 'topic/rfkill'
2021-03-24 12:54:41 +01:00
Karel Zak
529b51706e
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>
2021-03-24 12:43:17 +01:00
Karel Zak
c59d442809
libsmartcols: add sort sunction to the sample
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-24 12:42:58 +01:00
Mario Blättermann
fc394b5b02
Define the asciidoctor command in configure.ac
2021-03-23 21:09:22 +01:00
Mario Blättermann
5a52459e0f
Asciidoc: Review schedutils man pages
2021-03-23 20:43:52 +01:00
Mario Blättermann
925a9b5d72
Asciidoc: Incorporate latest change in findmnt.8
2021-03-23 20:10:02 +01:00
Mario Blättermann
2c646c80d8
Asciidoc: Review misc-utils man pages
2021-03-23 20:07:15 +01:00
Karel Zak
20fae1bde2
rfkill: add "toggle" command
...
Addresses: https://github.com/karelzak/util-linux/issues/1269
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-23 15:20:44 +01:00
Karel Zak
d928b9afe2
tests: make it compatible with meson
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-22 15:15:52 +01:00
Karel Zak
3ab4ef3ca9
findmnt: add --shadowed
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-22 15:00:47 +01:00
Karel Zak
1c81dfff1a
libmount: mnt_table_over_fs() make child optional
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-22 15:00:47 +01:00
Karel Zak
667c87c50c
findmnt: sort columns
...
Let's make "Available columns" in --help more readable.
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-22 15:00:38 +01:00
Karel Zak
e2f6c9eaa2
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>
2021-03-22 11:29:28 +01:00
Karel Zak
a605568281
libmount: add mnt_table_over_fs()
...
The function returns the first over-mount for specified filesystem.
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-22 11:24:49 +01:00
Mario Blättermann
f37298c2c2
Asciidoc: Yet another formatting fix
2021-03-21 18:24:47 +01:00
Mario Blättermann
99157f44da
Asciidoc: Formatting cleanup
2021-03-21 13:02:56 +01:00
Mario Blättermann
78fec3e5ba
Asciidoc: Remove already imported text-utils *roff man pages
2021-03-21 12:50:16 +01:00
Mario Blättermann
f42ed8190c
Asciidoc: Unify spelling of »User Commands«
2021-03-21 10:00:16 +01:00
Mario Blättermann
295b3979d9
Asciidoc: Add Po4a hint to file headers
2021-03-20 16:42:47 +01:00
Mario Blättermann
b4e57a8a90
Asciidoc: Small fix in nsenter.1.adoc
2021-03-20 15:23:32 +01:00
Mario Blättermann
5723eae791
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.
2021-03-20 09:45:23 +01:00
Mario Blättermann
d315cc4d96
Asciidoc: Re-add empty lines to man pages
2021-03-19 20:52:00 +01:00
Mario Blättermann
4d29743519
Asciidoc: Some formatting cleanup in man pages
2021-03-19 18:25:50 +01:00