]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
11 years agodocs: add pid alis to deprecated.txt
Karel Zak [Mon, 7 Apr 2014 08:05:14 +0000 (10:05 +0200)] 
docs: add pid alis to deprecated.txt

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: rename printsignals() to print_all_signalsprint_all_signals()
Karel Zak [Mon, 7 Apr 2014 08:03:50 +0000 (10:03 +0200)] 
kill: rename printsignals() to print_all_signalsprint_all_signals()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: reorder functions to make it more readable
Karel Zak [Mon, 7 Apr 2014 07:59:51 +0000 (09:59 +0200)] 
kill: reorder functions to make it more readable

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoMerge branch 'kill' of git://github.com/kerolasa/lelux-utiliteetit
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

11 years agolibfdisk: make qsort_r() optional
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).

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoswitch_root: verify initramfs by f_type, not devno
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>
11 years agolibsmartcols: add missing COPYING file
Karel Zak [Fri, 4 Apr 2014 11:53:50 +0000 (13:53 +0200)] 
libsmartcols: add missing COPYING file

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: fix test
Karel Zak [Fri, 4 Apr 2014 11:51:47 +0000 (13:51 +0200)] 
libsmartcols: fix test

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: small fixes to libsmartcols
Karel Zak [Fri, 4 Apr 2014 09:25:08 +0000 (11:25 +0200)] 
build-sys: small fixes to libsmartcols

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: clean up flags usage
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()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: print table header as bold
Karel Zak [Thu, 3 Apr 2014 10:43:36 +0000 (12:43 +0200)] 
fdisk: print table header as bold

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: fix freesapce detection for nested partitions
Karel Zak [Thu, 3 Apr 2014 10:28:53 +0000 (12:28 +0200)] 
libfdisk: fix freesapce detection for nested partitions

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: clean up scols usage
Karel Zak [Thu, 3 Apr 2014 09:58:48 +0000 (11:58 +0200)] 
cfdisk: clean up scols usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: clean up scols usage
Karel Zak [Thu, 3 Apr 2014 09:09:07 +0000 (11:09 +0200)] 
libfdisk: clean up scols usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agowdctl: clean up scols usage
Karel Zak [Thu, 3 Apr 2014 09:00:02 +0000 (11:00 +0200)] 
wdctl: clean up scols usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoswapon: clean up scols usage
Karel Zak [Thu, 3 Apr 2014 08:57:05 +0000 (10:57 +0200)] 
swapon: clean up scols usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoprlimit: clean up scols usage
Karel Zak [Thu, 3 Apr 2014 08:53:03 +0000 (10:53 +0200)] 
prlimit: clean up scols usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolscpu: clean up scols usage
Karel Zak [Thu, 3 Apr 2014 08:48:09 +0000 (10:48 +0200)] 
lscpu: clean up scols usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolosetup: tiny change to usage()
Karel Zak [Thu, 3 Apr 2014 08:41:04 +0000 (10:41 +0200)] 
losetup: tiny change to usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolosetup: clean up scols usage
Karel Zak [Thu, 3 Apr 2014 08:32:19 +0000 (10:32 +0200)] 
losetup: clean up scols usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: init symbols when necessary
Karel Zak [Wed, 2 Apr 2014 12:05:10 +0000 (14:05 +0200)] 
libsmartcols: init symbols when necessary

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolsblk: remove unnecessary code
Karel Zak [Wed, 2 Apr 2014 11:58:18 +0000 (13:58 +0200)] 
lsblk: remove unnecessary code

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: clean up flags
Karel Zak [Wed, 2 Apr 2014 11:56:00 +0000 (13:56 +0200)] 
libsmartcols: clean up flags

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolsblk: clean up data preparation
Karel Zak [Wed, 2 Apr 2014 11:52:08 +0000 (13:52 +0200)] 
lsblk: clean up data preparation

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofindmnt: cleanup flags
Karel Zak [Fri, 28 Mar 2014 12:00:21 +0000 (13:00 +0100)] 
findmnt: cleanup flags

Let's use one flags variable for everything.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopartx: cleanup libsmartcols usage
Karel Zak [Fri, 28 Mar 2014 11:44:55 +0000 (12:44 +0100)] 
partx: cleanup libsmartcols usage

 * more carefully set data
 * care about return codes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: always deallocate in scols_reset_cell()
Karel Zak [Fri, 28 Mar 2014 11:25:58 +0000 (12:25 +0100)] 
libsmartcols: always deallocate in scols_reset_cell()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/tt.c: Goodbye!
Ondrej Oprala [Thu, 27 Mar 2014 16:46:06 +0000 (17:46 +0100)] 
lib/tt.c: Goodbye!

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agowdctl: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 16:40:01 +0000 (17:40 +0100)] 
wdctl: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agoswapon: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 16:29:13 +0000 (17:29 +0100)] 
swapon: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agoprlimit: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 16:19:11 +0000 (17:19 +0100)] 
prlimit: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolscpu: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 16:06:52 +0000 (17:06 +0100)] 
lscpu: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolosetup: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 15:59:16 +0000 (16:59 +0100)] 
losetup: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolslocks: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 15:43:03 +0000 (16:43 +0100)] 
lslocks: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolsblk: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 15:29:13 +0000 (16:29 +0100)] 
lsblk: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agofindmnt: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 15:09:57 +0000 (16:09 +0100)] 
findmnt: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agopartx: use libsmartcols
Ondrej Oprala [Thu, 27 Mar 2014 14:18:20 +0000 (15:18 +0100)] 
partx: use libsmartcols

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agoUse libsmartcols in libfdisk and cfdisk
Ondrej Oprala [Thu, 27 Mar 2014 13:58:51 +0000 (14:58 +0100)] 
Use libsmartcols in libfdisk and cfdisk

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: include stdio
Ondrej Oprala [Thu, 27 Mar 2014 13:20:59 +0000 (14:20 +0100)] 
libsmartcols: include stdio

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: add scols_table_is_empty()
Ondrej Oprala [Thu, 27 Mar 2014 13:04:58 +0000 (14:04 +0100)] 
libsmartcols: add scols_table_is_empty()

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: fix a usage example
Ondrej Oprala [Thu, 27 Mar 2014 12:19:01 +0000 (13:19 +0100)] 
libsmartcols: fix a usage example

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: documentation
Ondrej Oprala [Tue, 25 Mar 2014 14:09:09 +0000 (15:09 +0100)] 
libsmartcols: documentation

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: move some code around
Ondrej Oprala [Tue, 25 Mar 2014 09:24:13 +0000 (10:24 +0100)] 
libsmartcols: move some code around

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: revert the column flags API
Ondrej Oprala [Mon, 24 Mar 2014 15:44:33 +0000 (16:44 +0100)] 
libsmartcols: revert the column flags API

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: colors may now be specified as human-readable strings
Ondrej Oprala [Mon, 24 Mar 2014 12:40:05 +0000 (13:40 +0100)] 
libsmartcols: colors may now be specified as human-readable strings

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: separate flags, add getters/setters
Ondrej Oprala [Fri, 21 Mar 2014 11:37:52 +0000 (12:37 +0100)] 
libsmartcols: separate flags, add getters/setters

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: add missing copyright notifications
Ondrej Oprala [Thu, 20 Mar 2014 13:07:46 +0000 (14:07 +0100)] 
libsmartcols: add missing copyright notifications

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: fill the symbol version file
Ondrej Oprala [Thu, 20 Mar 2014 13:03:43 +0000 (14:03 +0100)] 
libsmartcols: fill the symbol version file

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibsmartcols: allow to read lines as tree
Karel Zak [Wed, 19 Mar 2014 17:01:16 +0000 (18:01 +0100)] 
libsmartcols: allow to read lines as tree

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add function to convert table to string
Karel Zak [Wed, 18 Dec 2013 09:22:32 +0000 (10:22 +0100)] 
libsmartcols: add function to convert table to string

Note that open_memstream() is POSIX-1.2008, so it's possible than not
all libc have already implemented this function.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: remove unnecessary code
Karel Zak [Wed, 19 Mar 2014 16:25:31 +0000 (17:25 +0100)] 
libsmartcols: remove unnecessary code

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add reduce term width functionality
Karel Zak [Wed, 19 Mar 2014 16:20:57 +0000 (17:20 +0100)] 
libsmartcols: add reduce term width functionality

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add SCOLS_FL_MAX
Karel Zak [Wed, 19 Mar 2014 16:10:50 +0000 (17:10 +0100)] 
libsmartcols: add SCOLS_FL_MAX

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: support alternative streams
Karel Zak [Wed, 19 Mar 2014 15:58:15 +0000 (16:58 +0100)] 
libsmartcols: support alternative streams

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add test
Ondrej Oprala [Wed, 19 Mar 2014 15:48:22 +0000 (16:48 +0100)] 
libsmartcols: add test

[kzak@redhat.com: - refresh according to previous API changes]

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add table code
Karel Zak [Wed, 19 Mar 2014 15:33:09 +0000 (16:33 +0100)] 
libsmartcols: add table code

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add table struct, cleanup refcounting
Karel Zak [Wed, 19 Mar 2014 15:29:39 +0000 (16:29 +0100)] 
libsmartcols: add table struct, cleanup refcounting

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoinclude/carefulputc: cleanup and add fputs_{quoted,nonblank}()
Karel Zak [Wed, 19 Mar 2014 12:25:45 +0000 (13:25 +0100)] 
include/carefulputc: cleanup and add fputs_{quoted,nonblank}()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add lines
Karel Zak [Tue, 18 Mar 2014 11:39:54 +0000 (12:39 +0100)] 
libsmartcols: add lines

Co-Author: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add columns
Karel Zak [Tue, 18 Mar 2014 10:22:39 +0000 (11:22 +0100)] 
libsmartcols: add columns

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add cells
Ondrej Oprala [Mon, 17 Mar 2014 12:00:52 +0000 (13:00 +0100)] 
libsmartcols: add cells

[kzak@redhat.com: - remove copy, free -- all have to be handled by lines]

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add symbols
Ondrej Oprala [Mon, 17 Mar 2014 11:19:48 +0000 (12:19 +0100)] 
libsmartcols: add symbols

[kzak@redhat.com: - split scols_new_symbols() to regular getters functions]

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add iterator
Ondrej Oprala [Mon, 17 Mar 2014 10:46:17 +0000 (11:46 +0100)] 
libsmartcols: add iterator

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibsmartcols: add basic files
Ondrej Oprala [Mon, 17 Mar 2014 09:51:56 +0000 (10:51 +0100)] 
libsmartcols: add basic files

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agomount: update mount.8 about barrier mount options defaults
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

11 years agolibfdisk: remove fdisk_colon()
Karel Zak [Tue, 1 Apr 2014 12:39:13 +0000 (14:39 +0200)] 
libfdisk: remove fdisk_colon()

It was unnecessary overkill to have colorized "foo:" prefix in fdisk
output.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodmesg: don't use brow/yellow in output
Karel Zak [Tue, 1 Apr 2014 12:32:38 +0000 (14:32 +0200)] 
dmesg: don't use brow/yellow in output

The color used for subsystem prefix is useless on
while background. Let's use blue.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoMerge branch 'fix-script-timing' of https://github.com/theonewolf/util-linux
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

11 years agoMerge branch 'travis' of https://github.com/rudimeier/util-linux
Karel Zak [Tue, 1 Apr 2014 09:40:18 +0000 (11:40 +0200)] 
Merge branch 'travis' of https://github.com/rudimeier/util-linux

* 'travis' of https://github.com/rudimeier/util-linux:
  travis-ci: enable more features and update gettext
  tests: getting paraller_jobs more robust

11 years agoMerge branch 'pg-manual-page-long-options' of https://github.com/jaalto/util-linux
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

11 years agokill: move sigqueue inputs to control struct
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.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: add parse_arguments() function
Sami Kerola [Sun, 9 Mar 2014 19:46:27 +0000 (14:46 -0500)] 
kill: add parse_arguments() function

Long main() is difficult to read, so moving argument parsing to separate
function should make sense.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: tell what is wrong rather than output usage()
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.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: use control structure to pass user input to functions
Sami Kerola [Sun, 9 Mar 2014 19:04:48 +0000 (14:04 -0500)] 
kill: use control structure to pass user input to functions

This should make it easier to understand how the program works.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: deprecat invocation as 'pid' command name
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.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: make usage() not to return
Sami Kerola [Sun, 9 Mar 2014 17:17:44 +0000 (12:17 -0500)] 
kill: make usage() not to return

And change the function argument to be an output stream.  Earlier the
--help option made kill exit with none-zero value, that is now corrected.

CC: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: move magic numbers in beginning of the file
Sami Kerola [Sun, 9 Mar 2014 17:02:52 +0000 (12:02 -0500)] 
kill: move magic numbers in beginning of the file

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: flip all comparions to be in smaller - greater order
Sami Kerola [Sun, 9 Mar 2014 16:45:53 +0000 (11:45 -0500)] 
kill: flip all comparions to be in smaller - greater order

This makes code more readable.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill: fix coding style
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.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agotravis-ci: enable more features and update gettext
Ruediger Meier [Fri, 28 Mar 2014 15:33:25 +0000 (16:33 +0100)] 
travis-ci: enable more features and update gettext

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: getting paraller_jobs more robust
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.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agolibblkid: fix partitions probing
Karel Zak [Fri, 28 Mar 2014 14:07:17 +0000 (15:07 +0100)] 
libblkid: fix partitions probing

 * PART_ENTRY_* stuff is optional and should not overwrite
   previous probing result in partitions_probe()

 * missing minix parental partition is not error

 * blkid_probe_is_vfat() usage has to be more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibmount: silence some docs warnings
Ondrej Oprala [Thu, 27 Mar 2014 11:40:48 +0000 (12:40 +0100)] 
libmount: silence some docs warnings

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agoMerge branch 'fix-ppc-tests' of https://github.com/rudimeier/util-linux
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

11 years agoMerge branch 'fix-ipcs-q-fallback' of https://github.com/rudimeier/util-linux
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

11 years agoMerge branch 'fix-lscpu-cache' of https://github.com/rudimeier/util-linux
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

11 years agofindfs: add ability to work with PART{UUID,LABEL}= too
Karel Zak [Fri, 28 Mar 2014 09:36:05 +0000 (10:36 +0100)] 
findfs: add ability to work with PART{UUID,LABEL}= too

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: cleanup, remove unused lscpu output
Ruediger Meier [Thu, 27 Mar 2014 10:31:16 +0000 (11:31 +0100)] 
tests: cleanup, remove unused lscpu output

All these files are not used since a292bbde or 0d86c70a.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: add lscpu dump for ppc cpu with no cache size
Ruediger Meier [Thu, 27 Mar 2014 10:19:37 +0000 (11:19 +0100)] 
tests: add lscpu dump for ppc cpu with no cache size

Taken from qemu-system-ppc (qemu 1.7) machine with installed
debian 7.4 wheezy, kernel 3.2.0-4-powerpc.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agolscpu: cleanup, use _PATH_SYS_CPU/NODE
Ruediger Meier [Thu, 27 Mar 2014 08:18:32 +0000 (09:18 +0100)] 
lscpu: cleanup, use _PATH_SYS_CPU/NODE

This make most lines shorter than 80 chars again (tab-witdh 4).

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agolscpu: 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

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agofindfs: use symbolic exit values, and tell about them in manual
Sami Kerola [Sun, 9 Mar 2014 20:30:14 +0000 (15:30 -0500)] 
findfs: use symbolic exit values, and tell about them in manual

[[kzak@redhat.com: - move return codes to findfs.c]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agomcookie: add --max-size option
Sami Kerola [Sat, 8 Mar 2014 21:43:30 +0000 (15:43 -0600)] 
mcookie: add --max-size option

Just in case someone wants to add entropy from device with invocation
demonstrated below.

$ mcookie --file /dev/urandom --max-size 64k

[kzak@redhat.com: - use all-io.h]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agomcookie: use control structure, and fix usage()
Sami Kerola [Sat, 8 Mar 2014 21:43:29 +0000 (15:43 -0600)] 
mcookie: use control structure, and fix usage()

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agomcookie: use same variable type consistently
Sami Kerola [Sat, 8 Mar 2014 21:43:28 +0000 (15:43 -0600)] 
mcookie: use same variable type consistently

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agomcookie: allow --file option be defined multiple times
Sami Kerola [Sat, 8 Mar 2014 21:43:27 +0000 (15:43 -0600)] 
mcookie: allow --file option be defined multiple times

Earlier only the last option argument took effect.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agomcookie: use lib/randutils
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>
11 years agoflock: use nfs4 fallback on EBADF too
Karel Zak [Mon, 24 Mar 2014 10:26:21 +0000 (11:26 +0100)] 
flock: use nfs4 fallback on EBADF too

The kernel regression (probably v3.4, commit 55725513) introduces a
new errno for O_RDONLY on NFS. Now it returns EBADF rather than EIO.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1078618
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: fix last for bigendian
Ruediger Meier [Sun, 23 Mar 2014 15:38:31 +0000 (16:38 +0100)] 
tests: fix last for bigendian

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agoMerge branch 'fix-compile-color-cfdisk' of https://github.com/theonewolf/util-linux
Karel Zak [Fri, 21 Mar 2014 14:21:16 +0000 (15:21 +0100)] 
Merge branch 'fix-compile-color-cfdisk' of https://github.com/theonewolf/util-linux

* 'fix-compile-color-cfdisk' of https://github.com/theonewolf/util-linux:
  cfdisk: fix compile-time error fixes #59