Karel Zak [Mon, 7 Apr 2014 07:37:34 +0000 (09:37 +0200)]
Merge branch 'kill' of git://github.com/kerolasa/lelux-utiliteetit
* 'kill' of git://github.com/kerolasa/lelux-utiliteetit:
kill: move sigqueue inputs to control struct
kill: add parse_arguments() function
kill: tell what is wrong rather than output usage()
kill: use control structure to pass user input to functions
kill: deprecat invocation as 'pid' command name
kill: make usage() not to return
kill: move magic numbers in beginning of the file
kill: flip all comparions to be in smaller - greater order
kill: fix coding style
Karel Zak [Fri, 4 Apr 2014 14:02:35 +0000 (16:02 +0200)]
libfdisk: make qsort_r() optional
The function is no critical for fdisk functionality. The SUN label
verification will check for less issues. All the verification code is
optional ('v' fdisk command).
Dave Reisner [Wed, 2 Apr 2014 14:41:30 +0000 (10:41 -0400)]
switch_root: verify initramfs by f_type, not devno
As of linux 3.14, the initramfs device will have both major and
minor 0, causing our paranoia check to fail. Make this version agnostic
by checking the filesystem type, rather than a device number.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Karel Zak [Thu, 3 Apr 2014 14:09:57 +0000 (16:09 +0200)]
libsmartcols: clean up flags usage
* rename flags functions to scols_table_enable_*
* rename *_no_foo() functions to _nofoo()
* output formats are mutually exclusive, so don't use flags there
* don't assume symbols in scols_new_table(), use scols_table_set_symbols()
Ruediger Meier [Fri, 21 Mar 2014 11:31:39 +0000 (12:31 +0100)]
mount: update mount.8 about barrier mount options defaults
This patch comes originally from Jan Kara <jack@suse.cz> and updates
the default behaviour of the kernel which has been changed some years
ago. See kernel docs
Documentation/filesystems/ext3.txt
Documentation/filesystems/ext4.txt
Karel Zak [Tue, 1 Apr 2014 09:45:19 +0000 (11:45 +0200)]
Merge branch 'fix-script-timing' of https://github.com/theonewolf/util-linux
* 'fix-script-timing' of https://github.com/theonewolf/util-linux:
scriptreplay: no need to skip first time value or last bytes fixes #58
script: time from end of read() call partially fixes #58
Karel Zak [Tue, 1 Apr 2014 09:37:06 +0000 (11:37 +0200)]
Merge branch 'pg-manual-page-long-options' of https://github.com/jaalto/util-linux
* 'pg-manual-page-long-options' of https://github.com/jaalto/util-linux:
pg.1: Move (plus) options near (minus) option at the beginning
pg.1: Add -h, --help, -V, --version
Sami Kerola [Sun, 9 Mar 2014 20:16:14 +0000 (15:16 -0500)]
kill: move sigqueue inputs to control struct
Use of global variables is messy. The earlier implementation also
assumed queue argument never to be textual, such as 'HUP', which now
works as one might expect.
Sami Kerola [Sun, 9 Mar 2014 19:31:47 +0000 (14:31 -0500)]
kill: tell what is wrong rather than output usage()
Getting usage as error message is not specific enough. As a user I want
to know what is wrong, and if it is unclear after error message how to
recover then I run command with --help.
Sami Kerola [Sun, 9 Mar 2014 17:45:35 +0000 (12:45 -0500)]
kill: deprecat invocation as 'pid' command name
Enabling options by renaming command is both unexpected and undocumented.
This magic is now deprecated and with remark of removal of this
functionality in future.
Sami Kerola [Sun, 9 Mar 2014 16:15:28 +0000 (11:15 -0500)]
kill: fix coding style
The kill was deprecated at the time lot of other tools got style
unification. Now when deprecation is lifted it is time to get kill
cleaner. This commit does not modify code, only various spacing issues,
removal of unecessary braces, and such are dealt.
Ruediger Meier [Fri, 28 Mar 2014 14:48:41 +0000 (15:48 +0100)]
tests: getting paraller_jobs more robust
This patch fixes several issues:
1. lscpu may not exist on all systems.
2. Option -b is not always available but we can skip it because it's
the documented default for -p.
3. Some old lscpu versions print --help output to stdout in case of
error. So in case 2. it would count all the help lines as CPUs,
which could be really bad on slow single core machines.
Karel Zak [Fri, 28 Mar 2014 10:10:09 +0000 (11:10 +0100)]
Merge branch 'fix-ppc-tests' of https://github.com/rudimeier/util-linux
* 'fix-ppc-tests' of https://github.com/rudimeier/util-linux:
tests: fix last for bigendian
tests: fix utmpdump/ipv6tobin for bigendian
tests: fix utmpdump/to-binary for bigendian
tests: fix utmpdump/ipv6totxt for bigendian
tests: fix utmpdump/to-text for bigendian
tests: swaplabel needs to respect pagesize
Karel Zak [Fri, 28 Mar 2014 09:51:17 +0000 (10:51 +0100)]
Merge branch 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux
* 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux:
travis-ci: abort if make check fails
ipcs: fix memleak in ipc_*_get_info functions
ipcs: fix ipc_sem_get_info fallback case
ipcs: fix ipc_shm_get_info fallback case
ipcs: fix ipc_msg_get_info fallback case
tests: add basic test case for ipcs -m -i n
tests: add basic test case for ipcs -s -i n
tests: add basic test case for ipcs -q -i n
tests: quote generated arguments for ipcrm
ipcs: cleanup jumplabel stlyes
Karel Zak [Fri, 28 Mar 2014 09:41:44 +0000 (10:41 +0100)]
Merge branch 'fix-lscpu-cache' of https://github.com/rudimeier/util-linux
* 'fix-lscpu-cache' of https://github.com/rudimeier/util-linux:
tests: cleanup, remove unused lscpu output
tests: add lscpu dump for ppc cpu with no cache size
lscpu: cleanup, use _PATH_SYS_CPU/NODE
lscpu: don't abort if cache size is unknown
Ruediger Meier [Wed, 26 Mar 2014 21:18:17 +0000 (22:18 +0100)]
lscpu: don't abort if cache size is unknown
There are systems where the size file does not exist. Most badly even
lscpu -p would abort allthough it does not use the size:
$ lscpu -p
lscpu: error: cannot open
/sys/devices/system/cpu/cpu0/cache/index0/size: No such file or directory
This patch does not abort in this case and prints "unknown size" in
human-readable case. For examle on this qemu pcc test machine:
$ lscpu
Architecture: ppc
CPU op-mode(s): 32-bit
Byte Order: Big Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
Model: Power Macintosh
BogoMIPS: 33.25
L1d cache: unknown size
L1i cache: unknown size
Sami Kerola [Sat, 8 Mar 2014 21:43:26 +0000 (15:43 -0600)]
mcookie: use lib/randutils
The mcookie should reuse existing code, and there is definitely no need
to prefer /dev/random for this utility. See reference for explanation
about later statement.
References: http://www.2uo.de/myths-about-urandom/ Signed-off-by: Sami Kerola <kerolasa@iki.fi>