Karel Zak
daf9f2e997
build-sys: add generated man-pages to distribution tarball
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-03 12:17:27 +02:00
Georgy Yakovlev
45cd3aa4de
lscpu: fix build on powerpc
...
fails with error: label at end of compound statement
and fix typo as bonus.
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2021-06-02 13:59:26 -07:00
Karel Zak
308a15c71c
build-sys: add missing header
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 15:31:39 +02:00
Karel Zak
1775aaf1d7
lsblk: use ID_MODEL_ENC is possible
...
Fix: https://github.com/karelzak/util-linux/issues/1098
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 13:32:43 +02:00
Karel Zak
0e54ac3980
lscpu: remove extra blank lines
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 13:09:28 +02:00
Karel Zak
79884c5dd1
Merge branch 'lscpu-json-types' of https://github.com/t-8ch/util-linux
...
* 'lscpu-json-types' of https://github.com/t-8ch/util-linux :
lscpu: use optional json values
libsmartcols: add support for optional boolean values
lscpu: use json types
2021-06-02 13:06:10 +02:00
Karel Zak
ac55a4130f
Merge branch 'next'
...
* next: (26 commits)
build-sys: add script to compare config.h from meson and autotools
meson: add missing header files check
docs: update TODO
tests: update lscpu outputs
lscpu: read MHZ from /sys/.../cpufreq/scaling_cur_freq
lscpu: use locale-independent strtod() when read from kernel
lib/c_strtod; add locale independent strtod()
tests: update lscpu output
lscpu: use MHZ as number to be locale sensitive
lscpu: add SCALMHZ% and "CPU scaling MHz:"
sulogin: fix whitespace error
sulogin: ignore none-existing console devices
lsns: fix old error message
lsns: fix copy & past in man page
lsns: fill UID and USER columns for interpolated namespaces
fixup! lsns: interpolate missing namespaces for converting forests to a tree
lsns: interpolate missing namespaces for converting forests to a tree
lsns: reorganize members specifying other namespaces in lsns_namespace
lsns: make namespace having no process printable
libblkid: support zone reset for wipefs
...
2021-06-02 12:33:07 +02:00
Karel Zak
902d216412
mount: use mnt_fs_is_regularfs()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 12:19:06 +02:00
Karel Zak
868cd0dc0a
fsck: use mnt_fs_is_regularfs()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 12:16:14 +02:00
Karel Zak
ac8697d606
libmount: add mnt_fs_is_regularfs() to public API
...
Fix: https://github.com/karelzak/util-linux/issues/1328
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 12:14:10 +02:00
Karel Zak
14ae6d5ae0
build-sys: fix {release-version} man pages
...
* define {release-version} as $VERSION
* do not use {docdir} in adoc; it's built-in ascidoctor variable
https://docs.asciidoctor.org/asciidoc/latest/attributes/document-attributes-reference/#intrinsic-attributes
Addresses: https://github.com/karelzak/util-linux/issues/1327
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 11:55:44 +02:00
Karel Zak
ab2eea4ac3
build-sys: install hardlink bash-completion
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-02 11:14:36 +02:00
Karel Zak
d79a69c564
tools: allow to update specific files on kernel.org
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-01 11:45:16 +02:00
Karel Zak
a057fdb13a
docs: fix typo in v2.37-ReleaseNotes
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-01 10:37:01 +02:00
Karel Zak
635d382146
docs: add uclampset to AUTHORS file
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-01 10:32:35 +02:00
Karel Zak
50736e4998
build-sys: release++ (v2.37)
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-01 09:52:10 +02:00
Karel Zak
8a988dd855
docs: update v2.37-ReleaseNotes
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-01 09:46:40 +02:00
Karel Zak
17559f6cc2
docs: update AUTHORS file
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-06-01 09:45:03 +02:00
Karel Zak
59c19c3f3a
po: merge changes
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-31 18:36:06 +02:00
Seong-ho Cho
a97c28c0a5
po: add ko.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Yuri Chornoivan
ff58cee802
po: update uk.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Pedro Albuquerque
44f836d2dd
po: update pt.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Jakub Bogusz
18d7d108c0
po: update pl.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Božidar Putanec
e5f43da014
po: update hr.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Frédéric Marchal
435e838ac7
po: update fr.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Mario Blättermann
7e6634024e
po: update de.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Petr Písař
b952c8b30f
po: update cs.po (from translationproject.org)
2021-05-31 18:20:33 +02:00
Karel Zak
95fbd2db43
libblkid: fix docs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-31 18:16:57 +02:00
Karel Zak
d58121a22a
docs: update copyright years
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-31 18:12:07 +02:00
Karel Zak
1c0d193441
build-sys: remove with-cryptsetup from tools/config-gen.d/all.conf
...
Unfortunately libtools is not smart enough to link libblkid
dynamically if we link in-tree static libmount.a for libmount tests.
In this case libtools always uses also libblkid.a, but it's problem
for libcryptsetup which requires versioned symbols from libblkid.so
This is no problem for normal binaries, but for libmount tests only
(where we need static library to by-pass public library API).
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-31 17:44:10 +02:00
Ville Skyttä
ecec8f1f90
lscpu: fix NVIDIA ARM hw implementer spelling case
...
Ref respective vendor sites.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-31 12:15:48 +02:00
Ville Skyttä
d44a83c1f9
lscpu: recognize more ARM implementers
...
Add just the implementer string, no parts yet.
Refs https://developer.arm.com/documentation/ddi0595/2021-03/AArch64-Registers/MIDR-EL1--Main-ID-Register
Refs b90e90f40b/arch/arm64/include/asm/cputype.h (L54)
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
2021-05-31 12:14:34 +02:00
Thomas Weißschuh
87579a96b2
lscpu: use optional json values
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2021-05-30 23:17:23 +02:00
Thomas Weißschuh
f48554d48b
libsmartcols: add support for optional boolean values
...
These default to `null` instead of `false`.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2021-05-30 23:17:23 +02:00
Thomas Weißschuh
17353ee0cd
lscpu: use json types
...
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2021-05-30 23:17:17 +02:00
Karel Zak
b97e2145fa
po: add xgettext hint for non-c-format string
...
Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-27 10:39:58 +02:00
Karel Zak
684f921ec2
build-sys: add script to compare config.h from meson and autotools
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-26 13:20:21 +02:00
Karel Zak
647f80e491
meson: add missing header files check
...
Fixes: https://github.com/karelzak/util-linux/issues/1318
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-26 13:12:31 +02:00
Karel Zak
0a0af6161b
lscpu: cleanup tab vs. space
...
Do not mix tab and space in structs initializations.
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-26 11:54:47 +02:00
Bader Zaidan
f2aadc1160
lscpu: Replace space with tabs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-26 11:47:33 +02:00
Karel Zak
05cbd5aeed
docs: update TODO
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-25 13:45:24 +02:00
Karel Zak
96476550db
tests: update lscpu outputs
2021-05-25 13:30:28 +02:00
Karel Zak
f2d08d4ddc
lscpu: read MHZ from /sys/.../cpufreq/scaling_cur_freq
...
This is more portable and provides more stable results than
/proc/cpuinfo.
Fixes: https://github.com/karelzak/util-linux/pull/1317
Co-Author: Thomas Weißschuh
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-25 13:30:13 +02:00
Karel Zak
0b538002da
lscpu: use locale-independent strtod() when read from kernel
...
Reported-by: Thomas Weißschuh
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-25 11:32:51 +02:00
Karel Zak
670b10ae36
lib/c_strtod; add locale independent strtod()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-25 11:31:08 +02:00
Karel Zak
afa7e09e4b
tests: update lscpu output
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-24 13:43:02 +02:00
Karel Zak
ff6513c74e
lscpu: use MHZ as number to be locale sensitive
...
Fixes: https://github.com/karelzak/util-linux/issues/1316
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-24 13:39:53 +02:00
Karel Zak
9b9e4f5d06
lscpu: add SCALMHZ% and "CPU scaling MHz:"
...
$ lscpu
...
Model name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
CPU family: 6
Model: 60
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
Stepping: 3
CPU(s) scaling MHz: 61%
CPU max MHz: 4400.0000
CPU min MHz: 800.0000
...
$ lscpu -e=CPU,MAXMHZ,MINMHZ,MHZ,SCALMHZ%
CPU MAXMHZ MINMHZ MHZ SCALMHZ%
0 4400.0000 800.0000 2800.000 64%
1 4400.0000 800.0000 4000.146 91%
2 4400.0000 800.0000 2800.000 64%
3 4400.0000 800.0000 2800.000 64%
4 4400.0000 800.0000 2800.000 64%
5 4400.0000 800.0000 4400.000 100%
6 4400.0000 800.0000 800.000 18%
7 4400.0000 800.0000 2800.000 64%
Addresses: https://github.com/karelzak/util-linux/issues/1314
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-24 13:39:53 +02:00
Karel Zak
419861d5bf
sulogin: fix whitespace error
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-24 13:39:53 +02:00
Werner Fink
0d092db5c4
sulogin: ignore none-existing console devices
...
and also none-functional console devices. Redirect the error
messages to the appropiate console device.
Signed-off-by: Werner Fink <werner@suse.de>
2021-05-24 13:39:53 +02:00