]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Mario Blättermann [Fri, 26 Mar 2021 16:19:27 +0000 (17:19 +0100)]
Asciidoc: Review sys-utils man pages, part 2
Mario Blättermann [Fri, 26 Mar 2021 13:35:55 +0000 (14:35 +0100)]
Merge pull request #1 from karelzak/asciidoc-for-mario
Asciidoc for mario
Karel Zak [Fri, 26 Mar 2021 13:20:03 +0000 (14:20 +0100)]
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>
Karel Zak [Fri, 26 Mar 2021 11:42:12 +0000 (12:42 +0100)]
build-sys: add man-common/Makemodule.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Mario Blättermann [Fri, 26 Mar 2021 12:35:42 +0000 (13:35 +0100)]
Asciidoc: Incorporate latest changes in rfkill.8 and umount.8
Mario Blättermann [Fri, 26 Mar 2021 12:26:16 +0000 (13:26 +0100)]
Asciidoc: Remove old man page links
Karel Zak [Fri, 26 Mar 2021 10:57:07 +0000 (11:57 +0100)]
build-sys: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 10:55:01 +0000 (11:55 +0100)]
build-sys: cleanup .gitignore files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 10:49:59 +0000 (11:49 +0100)]
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>
Karel Zak [Fri, 26 Mar 2021 10:03:35 +0000 (11:03 +0100)]
build-sys: remove man page link files
It seems asciidoctor generates all necessary files.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 09:31:29 +0000 (10:31 +0100)]
build-sys: remove duplicate hook
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 26 Mar 2021 09:13:17 +0000 (10:13 +0100)]
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>
Mario Blättermann [Thu, 25 Mar 2021 19:27:34 +0000 (20:27 +0100)]
Asciidoc: Review sys-utils man pages,part 1
Mario Blättermann [Thu, 25 Mar 2021 18:17:48 +0000 (19:17 +0100)]
Asciidoc: Review text-utils man pages
Mario Blättermann [Thu, 25 Mar 2021 17:22:30 +0000 (18:22 +0100)]
Asciidoc: Review term-utils man pages
Mario Blättermann [Wed, 24 Mar 2021 19:28:08 +0000 (20:28 +0100)]
Add missing backslash to Makefile.am
Mario Blättermann [Wed, 24 Mar 2021 19:01:34 +0000 (20:01 +0100)]
Asciidoc: Review login-utils man pages
Mario Blättermann [Wed, 24 Mar 2021 17:53:27 +0000 (18:53 +0100)]
Asciidoc: Review disk-utils man pages
Mario Blättermann [Wed, 24 Mar 2021 16:37:34 +0000 (17:37 +0100)]
Asciidoc: Review terminal-colors.d.5.adoc
Mario Blättermann [Tue, 23 Mar 2021 20:09:22 +0000 (21:09 +0100)]
Define the asciidoctor command in configure.ac
Mario Blättermann [Tue, 23 Mar 2021 19:43:52 +0000 (20:43 +0100)]
Asciidoc: Review schedutils man pages
Mario Blättermann [Tue, 23 Mar 2021 19:10:02 +0000 (20:10 +0100)]
Asciidoc: Incorporate latest change in findmnt.8
Mario Blättermann [Tue, 23 Mar 2021 19:07:15 +0000 (20:07 +0100)]
Asciidoc: Review misc-utils man pages
Mario Blättermann [Sun, 21 Mar 2021 17:24:47 +0000 (18:24 +0100)]
Asciidoc: Yet another formatting fix
Mario Blättermann [Sun, 21 Mar 2021 12:02:56 +0000 (13:02 +0100)]
Asciidoc: Formatting cleanup
Mario Blättermann [Sun, 21 Mar 2021 11:50:16 +0000 (12:50 +0100)]
Asciidoc: Remove already imported text-utils *roff man pages
Mario Blättermann [Sun, 21 Mar 2021 09:00:16 +0000 (10:00 +0100)]
Asciidoc: Unify spelling of »User Commands«
Mario Blättermann [Sat, 20 Mar 2021 15:42:47 +0000 (16:42 +0100)]
Asciidoc: Add Po4a hint to file headers
Mario Blättermann [Sat, 20 Mar 2021 14:23:32 +0000 (15:23 +0100)]
Asciidoc: Small fix in nsenter.1.adoc
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.
Mario Blättermann [Fri, 19 Mar 2021 19:52:00 +0000 (20:52 +0100)]
Asciidoc: Re-add empty lines to man pages
Mario Blättermann [Fri, 19 Mar 2021 17:25:50 +0000 (18:25 +0100)]
Asciidoc: Some formatting cleanup in 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
Mario Blättermann [Fri, 19 Mar 2021 16:12:57 +0000 (17:12 +0100)]
Asciidoc: Import misc-utils 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
Mario Blättermann [Wed, 17 Mar 2021 18:57:15 +0000 (19:57 +0100)]
Asciidoc: Import login-utils man pages
Mario Blättermann [Tue, 16 Mar 2021 20:17:50 +0000 (21:17 +0100)]
Asciidoc: add missing bugreports section to libblkid and some cleanup
Mario Blättermann [Tue, 16 Mar 2021 20:13:57 +0000 (21:13 +0100)]
Asciidoc: Remove already imported disk-utils *roff man pages
Mario Blättermann [Tue, 16 Mar 2021 20:08:43 +0000 (21:08 +0100)]
Asciidoc: Import disk-utils man pages
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
Mario Blättermann [Tue, 16 Mar 2021 18:35:37 +0000 (19:35 +0100)]
Asciidoc: Remove already imported *roff man pages
Mario Blättermann [Tue, 16 Mar 2021 18:34:59 +0000 (19:34 +0100)]
Asciidoc: Adapt Makefiles to new asciidoc man pages
Mario Blättermann [Sun, 14 Mar 2021 13:29:44 +0000 (14:29 +0100)]
Asciidoc: Import libuuid man pages
Mario Blättermann [Sun, 14 Mar 2021 09:48:27 +0000 (10:48 +0100)]
Asciidoc: Import term-utils man pages
Mario Blättermann [Sun, 14 Mar 2021 07:58:13 +0000 (08:58 +0100)]
Asciidoc: Import hwclock.8.in
Mario Blättermann [Sat, 13 Mar 2021 21:55:02 +0000 (22:55 +0100)]
Asciidoc: Import rtcwake.8.in
Mario Blättermann [Sat, 13 Mar 2021 21:33:34 +0000 (22:33 +0100)]
Asciidoc: Import sys-utils man pages, part 3
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
Mario Blättermann [Sat, 13 Mar 2021 11:22:34 +0000 (12:22 +0100)]
Asciidoc: Import sys-utils man pages, part 2
Mario Blättermann [Fri, 12 Mar 2021 20:10:37 +0000 (21:10 +0100)]
Asciidoc: Import sys-utils man pages, part 1
Mario Blättermann [Fri, 12 Mar 2021 13:16:26 +0000 (14:16 +0100)]
Asciidoc: Import textutils man pages
Mario Blättermann [Fri, 12 Mar 2021 12:34:59 +0000 (13:34 +0100)]
libblikid.3.adoc: Add missing SYNOPSIS section
Mario Blättermann [Thu, 11 Mar 2021 17:48:13 +0000 (18:48 +0100)]
Remove no longer valid part of man/common/README
Mario Blättermann [Thu, 11 Mar 2021 17:38:46 +0000 (18:38 +0100)]
Add asciidoc man pages and some include files
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>
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>
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>
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>
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>
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>
Karel Zak [Mon, 1 Mar 2021 13:46:50 +0000 (14:46 +0100)]
Merge branch 'master' of https://github.com/adigitoleo/util-linux
Leon [Mon, 1 Mar 2021 11:47:27 +0000 (22:47 +1100)]
Update lsblk.8
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>
Karel Zak [Thu, 25 Feb 2021 08:57:49 +0000 (09:57 +0100)]
irqtop: small cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
Štěpán Němec [Tue, 23 Feb 2021 15:25:54 +0000 (16:25 +0100)]
su: fix man page typos
Signed-off-by: Štěpán Němec <snemec@redhat.com>
Karel Zak [Wed, 24 Feb 2021 19:10:56 +0000 (20:10 +0100)]
irqtop: add per-cpu stats
irqtop | total:
1245107402 delta: 7394 | ws.net.home | 2021-02-24 20:11:09+01:00
cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 cpu6 cpu7
%irq: 12.9 13.0 12.8 11.9 12.4 13.4 11.6 12.0
%delta: 13.7 9.7 22.6 7.9 9.5 17.5 8.3 10.8
IRQ TOTAL DELTA NAME
LOC
989162414 6111 Local timer interrupts
TLB
100492740 67 TLB shootdowns
CAL
95058001 321 Function call interrupts
42
23893801 241 IR-PCI-MSI
1048576 -edge nvidia
30
20209392 494 IR-PCI-MSI 327680-edge xhci_hcd
RES
12996335 86 Rescheduling interrupts
29
1354219 4 IR-PCI-MSI 512000-edge ahci[0000:00:1f.2]
41 682653 31 IR-PCI-MSI 409600-edge eno1
...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Feb 2021 13:29:20 +0000 (14:29 +0100)]
irqtop: print header in reverse mode
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Feb 2021 12:06:40 +0000 (13:06 +0100)]
docs: update TODO (scols borders)
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=
1931776
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Feb 2021 10:52:45 +0000 (11:52 +0100)]
su: (pty) change owner and mode for pty
The current situation:
# su --pty - kzak
$ ll $(tty)
crw--w---- 1 root tty 136, 9 Feb 23 11:53 /dev/pts/9
$ mesg
mesg: cannot open /dev/pts/9: Permission denied
the pseudo-terminal is still owned by the original user.
New version:
# su --pty - kzak
# ll $(tty)
crw--w---- 1 kzak tty 136, 9 Feb 23 11:56 /dev/pts/9
# mesg
is y
The patch follows login(1) to change the pty owner and group. It
follows "TTYPERM" and "TTYGROUP" from login.defs (or econf lib).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Feb 2021 10:46:10 +0000 (11:46 +0100)]
login: move generic setting to ttyutils.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Feb 2021 10:37:15 +0000 (11:37 +0100)]
su: explicitly enable echo for --pty
Since
75ccd75a2fa1194c6415c47b0024a438e26f1ad7 we need to explicitly
set echo flag by ul_pty_slave_echo(pty, 1).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Feb 2021 08:25:57 +0000 (09:25 +0100)]
fdisk: support partition type name in dialogs
Command (m for help): t
Selected partition 1
Partition type or alias (type L to list all): linux root x86
Changed type of partition 'Linux /usr (x86)' to 'Linux root (x86)'.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Feb 2021 08:21:40 +0000 (09:21 +0100)]
sfdisk: support for type="partition type name"
For example:
# echo 'size=10MiB, type="linux usr x86"' | sfdisk /dev/sdc
...
New situation:
Device Start End Sectors Size Type
/dev/sdc1 2048 22527 20480 10M Linux /usr (x86)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Feb 2021 08:19:51 +0000 (09:19 +0100)]
libfdisk: support partition type name parsing
Add to fdisk_label_advparse_parttype() support for
FDISK_PARTTYPE_PARSE_NAME to parse partition type name.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 23 Feb 2021 08:19:48 +0000 (09:19 +0100)]
lib/strutils: add ul_stralnumcmp()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 19 Feb 2021 11:04:39 +0000 (12:04 +0100)]
build-sys: set localstatedir and sysconfdir default
Let's follow our policy for default directories and explicitly default
to localstatedir=/var and sysconfdir=/etc when the default $prefix is
used.
Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Feb 2021 10:15:48 +0000 (11:15 +0100)]
readprofile: fix static analyzer warning [coverity scan]
Make sure we do not use step=0 and zero "fn_add - add0" as divisor.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Feb 2021 10:09:31 +0000 (11:09 +0100)]
rfkill: fix static analyzer warning [coverity scan]
>>> CID 365738: Uninitialized variables (UNINIT)
>>> Using uninitialized value "ret". Field "ret" is uninitialized.
326 return ret;
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 18 Feb 2021 09:48:47 +0000 (10:48 +0100)]
hardlink: fix typo in man page
Addresses: https://github.com/karelzak/util-linux/commit/
3292501316f5731d8e311a000012b49a411a36e6 #commitcomment-
47222034
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Feb 2021 11:25:49 +0000 (12:25 +0100)]
libmount: (python) fix compiler warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Feb 2021 11:24:13 +0000 (12:24 +0100)]
lib: use procutils.c on Linux only
Fixes: https://github.com/karelzak/util-linux/issues/1251
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Feb 2021 10:48:03 +0000 (11:48 +0100)]
hardlink: fix indention
The original Julian's hardlink.c code is pretty readable, but for
util-linux we use a little different indention (aka Linux kernel
coding style).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Feb 2021 10:15:45 +0000 (11:15 +0100)]
tests: update hardlink tests
The important is result, not summary or verbose output.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Feb 2021 10:14:54 +0000 (11:14 +0100)]
hardlink: add --quiet option
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Feb 2021 10:42:44 +0000 (11:42 +0100)]
hardlink: cleanup man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Feb 2021 10:13:13 +0000 (11:13 +0100)]
hardlink: s/DEBUG/VERBOSE/
We usually use "debug" for very detailed information. For end-user
information is better to talk about "verbose" output.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Feb 2021 10:09:50 +0000 (11:09 +0100)]
hardlink: translate verbose messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Feb 2021 10:06:48 +0000 (11:06 +0100)]
hardlink: cleanup summary
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 5 Feb 2021 09:58:29 +0000 (10:58 +0100)]
hardlink: use size_to_human_string()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 12:56:45 +0000 (13:56 +0100)]
hardlink: use only err.h to print errors and warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 12:43:05 +0000 (13:43 +0100)]
hardlink: use monotonic time like other utils
- use out gettime_monotonic()
- use timeval for calculation rather than double
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 12:23:32 +0000 (13:23 +0100)]
hardlink: use errx() when parse options
Don't waste time with some cleanup on --exclude and --include regex
errors.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 12:14:51 +0000 (13:14 +0100)]
hardlink: use err() if possible
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 12:06:56 +0000 (13:06 +0100)]
hardlink: cleanup --minimum-size stuff
* use uintmax_t
* use strtosize_or_err()
* add info about suffixes to man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 11:54:45 +0000 (12:54 +0100)]
hardlink: move default to options initialization
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 11:50:10 +0000 (12:50 +0100)]
hardlink: cleanup usage()
Let's make --help more util-linux compatible.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 11:19:34 +0000 (12:19 +0100)]
hardlink: use our xalloc.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 11:14:13 +0000 (12:14 +0100)]
hardlink: check and use sys/xattr.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 11:06:53 +0000 (12:06 +0100)]
hardlink: use PRCE2 posix header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 4 Feb 2021 10:12:21 +0000 (11:12 +0100)]
hardlink: cleanup includes and types
* use config.h like other code on package
* use c.h and remove from code stuff defined in the header file
* remove FALSE/TRUE redefinition
Signed-off-by: Karel Zak <kzak@redhat.com>