]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Fri, 3 Aug 2018 11:19:51 +0000 (13:19 +0200)]
Merge branch 'patch-1' of https://github.com/pmarillo/util-linux
* 'patch-1' of https://github.com/pmarillo/util-linux:
Fix translation typo
Karel Zak [Fri, 3 Aug 2018 11:08:21 +0000 (13:08 +0200)]
hwclock: rely on kernel for RTC_UIE_ON on Aplha and Sparc
It's kernel business to return EINVAL for unsupported RTC_UIE_ON. We
(userspace) should not make decisions about things that we do not
control.
If kernel is wrong then fix the kernel, don't hide the problem by
crazy ifdefs in userspace.
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Thu, 2 Aug 2018 18:35:51 +0000 (19:35 +0100)]
mesg: do not print 'ttyname failed' message unless --verbose requested
Lots of people are confused why mesg(1) is priting this message. Usual
cause seems to be an uninteractive shell trying to turn running 'mesg n'
from a /root/.profile where command invocation is by default on debian based
systems. This might be rare case when failing silently is better.
[kzak@redhat.com: - add note to the man page
- fix if(isatty()) logic]
Reference: https://www.google.com/search?q=mesg+ttyname+failed
Review: https://marc.info/?l=util-linux-ng&m=
153319988631233 &w=2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Paul M [Fri, 3 Aug 2018 07:58:54 +0000 (09:58 +0200)]
Fix translation typo
Karel Zak [Wed, 1 Aug 2018 10:09:09 +0000 (12:09 +0200)]
tests: update lscpu tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 1 Aug 2018 07:29:12 +0000 (09:29 +0200)]
fdisk: fix error message on 'd' command
Command (m for help): d
No partition is defined yet!
Could not delete partition
93840461057817 <--- !
Don't print 'Could not delete..' if no partition is defined yet.
Addresses: https://github.com/karelzak/util-linux/issues/667
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 1 Aug 2018 07:10:07 +0000 (09:10 +0200)]
umount: add --quiet option
The command umount supports things like --all-targets and --recursive
to umount all nodes in specified tree. Sometimes it makes sense to
aggressively use wildcards like /dev/sdb* and in this case --quiet
seems like a good choice
umount --quiet --all-targets /dev/sdb*
to suppress 'not mounted' error messages. The new option suppress only
these error messages and nothing else.
Addresses: https://github.com/karelzak/util-linux/issues/672
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 1 Aug 2018 06:33:32 +0000 (08:33 +0200)]
lscpu: add 'Address sizes'
Addresses: https://github.com/karelzak/util-linux/issues/674
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 31 Jul 2018 14:38:59 +0000 (16:38 +0200)]
fstrim: add -A|--fstab to trim according to /etc/fstab
Addresses: https://github.com/karelzak/util-linux/issues/673
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 31 Jul 2018 13:58:49 +0000 (15:58 +0200)]
fstrim: add control struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 31 Jul 2018 13:20:55 +0000 (15:20 +0200)]
tests: update fdisk dialogs
Signed-off-by: Karel Zak <kzak@redhat.com>
Awal Garg [Sat, 28 Jul 2018 13:20:35 +0000 (18:50 +0530)]
libfdisk: Accept negative numbers for last sector input
[kzak@redhat.com: - add note to the man page
- add '-' to the dialog query
- cleanup functions names and libfdisk.sym]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 31 Jul 2018 09:07:47 +0000 (11:07 +0200)]
hwclock: remove ntpd from man page
It seems better to use generic "NTP daemon" in the man page than
points to specific ntpd(1) implementation as some distros use for
example chronyd(1) rather than old ntpd(1).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jul 2018 10:02:28 +0000 (12:02 +0200)]
lscpu: fix resource leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jul 2018 09:56:44 +0000 (11:56 +0200)]
losetup: fix mem leak, improve code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jul 2018 09:25:33 +0000 (11:25 +0200)]
libblkid: use xstrncpy() for PT id [coverity scan]
It's probably unnecessary change as blkid_parttable_set_id() is used
by MBR code and we use proper buffer size there, but better safe than
sorry.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 24 Jul 2018 10:35:45 +0000 (12:35 +0200)]
docs: add note about --disable-all-programs
Addresses: https://github.com/karelzak/util-linux/issues/666
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 11:08:56 +0000 (13:08 +0200)]
cfdisk: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 10:30:30 +0000 (12:30 +0200)]
blkid: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 10:21:33 +0000 (12:21 +0200)]
login: use const qualifier for username from PAM or struct passwd [-Wcast-qual]
It seems more robust to use 'const' qualifier for username if this
variable points to external resources like PAM or struct passwd. The
patch introduces new variable cmd_username for username specified on
login(1) command line.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:58:57 +0000 (11:58 +0200)]
libmount: (utils) fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:55:25 +0000 (11:55 +0200)]
lib/colors:: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:49:49 +0000 (11:49 +0200)]
setterm: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:45:15 +0000 (11:45 +0200)]
setterm: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:43:47 +0000 (11:43 +0200)]
swapon: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:43:30 +0000 (11:43 +0200)]
mkswap: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:39:13 +0000 (11:39 +0200)]
libfdisk: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:33:05 +0000 (11:33 +0200)]
libmount: fix compiler warning [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 23 Jul 2018 09:17:28 +0000 (11:17 +0200)]
lib/loopdev: fix compiler warning [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 13:31:42 +0000 (15:31 +0200)]
lib/mangle: const quialifier cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 13:22:35 +0000 (15:22 +0200)]
include/list, include/c: update and container_of()
* update container_of() to version without "const" qualifier
* use container_of() in list_entry()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 13:03:01 +0000 (15:03 +0200)]
libblkid: const qualifier cleanup
* use "const" in functions where we don't modify arguments
* use "const" when cast from const buffer to any struct (superblock etc.)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 12:53:25 +0000 (14:53 +0200)]
include/all-io: const cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 12:15:42 +0000 (14:15 +0200)]
libmount: cleanup const in umount code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 11:58:10 +0000 (13:58 +0200)]
lib/color-names: const cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 11:51:52 +0000 (13:51 +0200)]
libmount: add missing const
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 11:44:53 +0000 (13:44 +0200)]
libmount: use const char in swaps parser
The parser does not modify the string, so let's keep it "const char".
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 11:44:53 +0000 (13:44 +0200)]
libmount: use const char in mountinfo parser
The parser does not modify the string, so let's keep it "const char".
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 11:44:53 +0000 (13:44 +0200)]
libmount: use const char in fstab parser
The parser does not modify the string, so let's keep it "const char".
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 10:52:55 +0000 (12:52 +0200)]
lib/strutils: follow const in parse_size()
* don't cast from char to const char
* don't share endptr from strtoxxx() with rest of the code
as the end pointer is char, but code works with const chars
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 10:52:09 +0000 (12:52 +0200)]
include/strutils: remove unnecessary cast
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 10:25:38 +0000 (12:25 +0200)]
hwclock: fix warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 20 Jul 2018 10:15:31 +0000 (12:15 +0200)]
build-sys: add -Wdiscarded-qualifiers
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Jul 2018 09:41:31 +0000 (11:41 +0200)]
mount: add details about mtab and --namespace to mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Jul 2018 09:38:48 +0000 (11:38 +0200)]
libmount: add since tag for new functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 14:21:01 +0000 (16:21 +0200)]
lsblk: add note about --list -I <maj,...>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 11:59:15 +0000 (13:59 +0200)]
hwclock: add --delay <seconds>
* add command line option --delay <seconds>
* read RTC type from /sys/class/rtc/rtc<N>/name
* default to 0.5 (500ms) for rtc_cmos or when RTC type is impossible
determine; otherwise delay is 0.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 08:23:51 +0000 (10:23 +0200)]
build-sys: add -Wno-cast-function-type for python
libmount/python/pylibmount.c:158:19: warning: cast between incompatible function types
from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’}
to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
[-Wcast-function-type]
This is generic problem in all Python C code and gcc v8. The another
possible (and probably more correct) way is to add unused argument to
all API functions. Unfortunately, this solution is pretty invasive. The
question is if gcc is not too paranoid in this case.
For more details see https://bugs.python.org/issue33012. It seems
Python guys also prefer CFLAGS modification for now.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 08:00:18 +0000 (10:00 +0200)]
libfdisk: fix compiler warning [-Wmaybe-uninitialized]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 07:46:40 +0000 (09:46 +0200)]
lslogins: remove redundant condition
[util-linux-2.32.1/login-utils/lslogins.c:601]: (style) Redundant condition: If '!EXPR', the comparison 'EXPR != '$'' is always true.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 07:46:40 +0000 (09:46 +0200)]
lib/strutils: remove redundant condition
[util-linux-2.32.1/lib/strutils.c:122]: (style) Redundant condition: If 'EXPR == '0'', the comparison 'EXPR' is always true.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 07:46:40 +0000 (09:46 +0200)]
mkfs.cramfs: remove redundant condition
util-linux-2.32.1/disk-utils/mkfs.cramfs.c:362]: (style) Redundant condition: If 'EXPR >=
16777216 ', the comparison 'EXPR' is always true.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Jul 2018 07:41:46 +0000 (09:41 +0200)]
lib/pager: fix compiler warning [-Wrestrict]
lib/pager.c: In function ‘pager_preexec’:
lib/pager.c:148:12: warning: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Jul 2018 10:10:37 +0000 (12:10 +0200)]
docs: add fdisk to TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 17 Jul 2018 09:58:09 +0000 (11:58 +0200)]
docs: add hwclock to TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Wed, 11 Jul 2018 10:34:39 +0000 (12:34 +0200)]
libblkid: Check for a secondary LUKS2 header.
This patch adds search for a secondary LUKS2 header,
if the primary one is corrupted.
This patch is primarily needed for wipefs that should wipe
both signatures (otherwise LUKS2 header recovery can use
secondary header and revert wipefs action).
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Frank Schaefer [Wed, 11 Jul 2018 01:21:02 +0000 (20:21 -0500)]
* break up large strings for PySys_WriteStdout()
Karel Zak [Tue, 10 Jul 2018 12:04:09 +0000 (14:04 +0200)]
tests: add mountinfo with empty source
Signed-off-by: Karel Zak <kzak@redhat.com>
Alban Crequy [Fri, 22 Jun 2018 11:54:25 +0000 (13:54 +0200)]
libmount: (mountinfo) parse empty strings in source
The source of a mount in /proc/self/mountinfo can unfortunately be an
empty string. Before this patch, 'mount' and 'mountpoint' fail as
following:
$ sudo mount -t tmpfs "" /tmp/bb
$ mount
mount: /proc/self/mountinfo: parse error at line 64 -- ignored
$ mountpoint /tmp/bb
/tmp/bb is not a mountpoint
This patch fixes the parsing. It is unfortunately more complex because
sscanf() does not handle fields with empty strings easily.
Other projects have their own parser for mountinfo and have similar
issues. I know of runc and runtime-tools (I'll send a patch for those
two) but there are probably others.
Signed-off-by: Alban Crequy <alban@kinvolk.io>
Karel Zak [Tue, 10 Jul 2018 08:33:18 +0000 (10:33 +0200)]
lsblk: add PATH column
$ lsblk -o+PATH
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT PATH
sda 8:0 0 223.6G 0 disk /dev/sda
├─sda1 8:1 0 200M 0 part /boot/efi /dev/sda1
├─sda2 8:2 0 200M 0 part /boot /dev/sda2
├─sda3 8:3 0 130.3G 0 part /dev/sda3
├─sda4 8:4 0 50G 0 part / /dev/sda4
├─sda5 8:5 0 35.1G 0 part /dev/sda5
└─sda6 8:6 0 7.8G 0 part /dev/sda6
Requested-by: Marcel Partap <mpartap@gmx.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 10 Jul 2018 07:38:07 +0000 (09:38 +0200)]
Merge branch 'master' of https://github.com/hjmallon/util-linux
* 'master' of https://github.com/hjmallon/util-linux:
libblkid: Add more APFS checking to avoid false positives
YmrDtnJu [Sat, 7 Jul 2018 18:11:46 +0000 (20:11 +0200)]
logger: Define SD_JOURNAL_SUPPRESS_LOCATION.
The normal journald functions add the location in the C source code files to
the log messages. This is nice for a big C based project, but logger is used in
scripts so it would be more useful to let users specify the location in the
script by adding the CODE_FUNC, CODE_FILE and CODE_FILE fields to the log
message.
It is already possible to do this, but it will result in two versions of these
fields: one for the location in logger.c and one for the location in the
script.
Harry Mallon [Fri, 6 Jul 2018 17:39:26 +0000 (18:39 +0100)]
libblkid: Add more APFS checking to avoid false positives
Karel Zak [Wed, 4 Jul 2018 13:16:35 +0000 (15:16 +0200)]
libfdisk: reduce number of asprintf() calls, check return value
Signed-off-by: Karel Zak <kzak@redhat.com>
KyleMahlkuch [Mon, 25 Jun 2018 19:52:01 +0000 (14:52 -0500)]
libfdisk: Fix multipath partition seperators for user-friendly names
The current code assumes "-part" is the only partition sepereator
but this is not true for some distros.
For example in Ubuntu 18.04 fdisk does not print the correct names for
mpatha:
~# ls -l /dev/mapper/mpatha*
lrwxrwxrwx 1 root root 7 Feb 1 04:39 /dev/mapper/mpatha -> ../dm-0
lrwxrwxrwx 1 root root 7 Feb 1 04:38 /dev/mapper/mpatha1 -> ../dm-4
lrwxrwxrwx 1 root root 7 Feb 1 04:38 /dev/mapper/mpatha2 -> ../dm-5
lrwxrwxrwx 1 root root 7 Feb 1 04:38 /dev/mapper/mpatha3 -> ../dm-6
~# fdisk -l /dev/mapper/mpatha
Device Boot Start End Sectors Size Id Type
/dev/mapper/mpatha-part1 2048
419432447 419430400 200G 83 Linux
/dev/mapper/mpatha-part2
419432448 838862847 419430400 200G 83 Linux
/dev/mapper/mpatha-part3
838862848 1258291199 419428352 200G 83 Linux
Instead of assuming a partition seperator of "-part" this patch uses
access to check the file system for a partition seperator of "p" or
the absense of a partition seperator. If neither of these work the patch
defaults to "-part" like we had before this patch.
Karel Zak [Wed, 4 Jul 2018 12:06:38 +0000 (14:06 +0200)]
libfdisk: use \x<hex> to read/write partition name
Addresses: https://github.com/karelzak/util-linux/issues/656
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 4 Jul 2018 11:34:56 +0000 (13:34 +0200)]
fallocate: remove unwanted debug message
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 4 Jul 2018 11:25:07 +0000 (13:25 +0200)]
Merge branch 'master' of https://github.com/hjmallon/util-linux
* 'master' of https://github.com/hjmallon/util-linux:
libblkid: Add very basic APFS recognition
Karel Zak [Wed, 4 Jul 2018 09:00:58 +0000 (11:00 +0200)]
Merge branch 'quick-fix-
20180625 ' of https://github.com/sjitech/util-linux
* 'quick-fix-
20180625 ' of https://github.com/sjitech/util-linux:
exec_shell: prevent ".: applet not found" error when SHELL env is not set.
Karel Zak [Tue, 3 Jul 2018 11:55:32 +0000 (13:55 +0200)]
Merge branch 'fixes' of https://github.com/rudimeier/util-linux
* 'fixes' of https://github.com/rudimeier/util-linux:
wipefs: add missing ifdef
lib/path: remove unused expression
ipcs,chmem: fix access() usage
Karel Zak [Tue, 3 Jul 2018 11:51:51 +0000 (13:51 +0200)]
fallocate: add man page note about --collapse-range granularity
Reported-by: Radka Skvarilova <rskvaril@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Harry Mallon [Mon, 25 Jun 2018 15:19:18 +0000 (16:19 +0100)]
libblkid: Add very basic APFS recognition
Ruediger Meier [Mon, 25 Jun 2018 13:08:55 +0000 (15:08 +0200)]
wipefs: add missing ifdef
Seen on OSX:
misc-utils/wipefs.c:822:5: warning: implicit declaration of function 'rereadpt' is invalid in C99 [-Wimplicit-function-declaration]
rereadpt(fd, devname);
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Mon, 25 Jun 2018 12:23:42 +0000 (14:23 +0200)]
lib/path: remove unused expression
error: expression result unused [-Werror,-Wunused-value]
prefix = optarg, "failed to parse range start";
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Mon, 25 Jun 2018 12:01:21 +0000 (14:01 +0200)]
ipcs,chmem: fix access() usage
Some mistakes happened lately when switching from path_exist()
to ul_path_access(). See
f09a98de and
8ca31279 .
This caused ipcs test failures when running i386 binaries on x86_64
hosts, because the syscall fallback was always used. That's why I
reviewed all similar changes and found another one in chmem.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
osexp2000 [Mon, 25 Jun 2018 01:34:31 +0000 (10:34 +0900)]
exec_shell: prevent ".: applet not found" error when SHELL env is not set.
When SHELL env is not set, it cause xstrdup(NULL) be executed, and result in weird error message ".: applet not found" instead of /bin/sh being used.
Karel Zak [Fri, 22 Jun 2018 10:47:25 +0000 (12:47 +0200)]
docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 21 Jun 2018 12:24:01 +0000 (14:24 +0200)]
include/path: make sure PATH_MAX is defined
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 21 Jun 2018 12:01:54 +0000 (14:01 +0200)]
Merge branch 'more' of https://github.com/kerolasa/util-linux
* 'more' of https://github.com/kerolasa/util-linux:
more: remove function like preprocessor defines
more: remove global variables, add struct more_control
more: move couple functions
Karel Zak [Thu, 21 Jun 2018 11:46:20 +0000 (13:46 +0200)]
choom: use new ul_path_* API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 21 Jun 2018 11:49:03 +0000 (13:49 +0200)]
lib/path: allow dir-path formatting
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jun 2018 14:43:19 +0000 (16:43 +0200)]
tests: add simple LVM lsblk dump
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jun 2018 14:41:51 +0000 (16:41 +0200)]
lsblk: fix ul_path_read_string() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jun 2018 14:32:56 +0000 (16:32 +0200)]
tests: add simple ATA and NVME lsblk dump
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jun 2018 10:59:40 +0000 (12:59 +0200)]
tests: add lsblk test script
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jun 2018 10:58:19 +0000 (12:58 +0200)]
lsblk: fix COL_SCHED
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Jun 2018 15:00:14 +0000 (17:00 +0200)]
tests: add simple & stupid script to generate lsblk /sys and /proc dump
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Jun 2018 14:30:29 +0000 (16:30 +0200)]
lsblk: document --sysroot
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Jun 2018 14:10:17 +0000 (16:10 +0200)]
lsblk: fix sysfs_devno_to_devname() usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Jun 2018 10:22:59 +0000 (12:22 +0200)]
lsblk: follow --sysroot when read mountpoints
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Jun 2018 10:02:52 +0000 (12:02 +0200)]
lsblk: use prefix for DM name
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Jun 2018 11:01:27 +0000 (13:01 +0200)]
lsblk: add --sysroot
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jun 2018 10:07:10 +0000 (12:07 +0200)]
docs: add note about lsblk to TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jun 2018 09:59:29 +0000 (11:59 +0200)]
lsblk: use new ul_path_* API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jun 2018 09:57:48 +0000 (11:57 +0200)]
lib/sysfs: cleanup function names
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2018 09:24:40 +0000 (11:24 +0200)]
blockdev: use new ul_path_* API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2018 08:47:09 +0000 (10:47 +0200)]
partx: use new ul_path_* API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2018 08:41:46 +0000 (10:41 +0200)]
resizepart: use new ul_path_* API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 29 May 2018 10:59:03 +0000 (12:59 +0200)]
blkzone: use new ul_path_* API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 29 May 2018 10:53:52 +0000 (12:53 +0200)]
fstrim: use new ul_path_* API
Signed-off-by: Karel Zak <kzak@redhat.com>