]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
13 years agolook: remove extra semicolon
Sami Kerola [Sat, 14 Jul 2012 21:50:15 +0000 (23:50 +0200)] 
look: remove extra semicolon

The both macro SKIP_PAST_NEWLINE and location where macro is used will
not need semicolon at the end of line.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoutmpdump: remove unused variable
Sami Kerola [Sat, 14 Jul 2012 21:47:07 +0000 (23:47 +0200)] 
utmpdump: remove unused variable

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoswapon: remove unused variables
Sami Kerola [Sat, 14 Jul 2012 21:44:56 +0000 (23:44 +0200)] 
swapon: remove unused variables

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolib/loopdev: minor bug fix: add missing semicolon
Sami Kerola [Sat, 14 Jul 2012 21:35:41 +0000 (23:35 +0200)] 
lib/loopdev: minor bug fix: add missing semicolon

Missing semicolon made test_loop_info() to return function
loopcxt_enable_debug() return value, which happen to be void.  I
suspect the loopcxt_enable_debug() was usually not executed, while it
should be.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolib/pager: minor compiler warning fixes
Sami Kerola [Sat, 14 Jul 2012 21:16:28 +0000 (23:16 +0200)] 
lib/pager: minor compiler warning fixes

Add missing function prototype, and declare structure before use of it.

lib/pager.c:162:6: warning: no previous prototype for function 'setup_pager' [-Wmissing-prototypes]
lib/pager.c:20:29: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct child_process' [-Wtentative-definition-incomplete-type]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibblkid: remove duplicate entries in symbols
Sami Kerola [Sat, 14 Jul 2012 20:25:25 +0000 (22:25 +0200)] 
libblkid: remove duplicate entries in symbols

The commit a0487b1cb5beffb8f6783476664b01e8833e0ea8 added symbol
dublicates.  The symbols should only be listed in BLKID_1.0 segment.

/usr/bin/ld.gold: warning: using 'BLKID_1.0' as version for 'blkid_probe_all' which is also named in version 'BLKID_2.15' in script
/usr/bin/ld.gold: warning: using 'BLKID_1.0' as version for 'blkid_probe_all_new' which is also named in version 'BLKID_2.15' in script
copying selected object files to avoid basename conflicts...

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agologin: close tty before vhangup()
Karel Zak [Thu, 12 Jul 2012 14:33:52 +0000 (16:33 +0200)] 
login: close tty before vhangup()

Let's close all tty file descriptors before vhangup() call.

References: https://lkml.org/lkml/2012/6/5/145
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: close tty before vhangup()
Karel Zak [Thu, 12 Jul 2012 14:31:22 +0000 (16:31 +0200)] 
agetty: close tty before vhangup()

Let's close all tty file descriptors if called with --hangup option.

References: https://lkml.org/lkml/2012/6/5/145
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: make tcsetpgrp() optional
Karel Zak [Wed, 11 Jul 2012 16:15:21 +0000 (18:15 +0200)] 
agetty: make tcsetpgrp() optional

The session setup TIOCSCTTY is optional, so tcsetpgrp() that depends
on controlling terminal should be optional too.

Reported-by: Hilko Bengen <bengen@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add missing files
Karel Zak [Wed, 11 Jul 2012 16:00:09 +0000 (18:00 +0200)] 
build-sys: add missing files

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoswapon: fix --summary output regression
Sami Kerola [Wed, 27 Jun 2012 21:24:56 +0000 (23:24 +0200)] 
swapon: fix --summary output regression

Commit 64b588814e5f081a7ab37f820984aa7a2de9eee9 changed --summary
header alignment, and usage of spaces vs tabs in output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoswapon: make --show size to be human readable by default
Sami Kerola [Wed, 27 Jun 2012 20:51:34 +0000 (22:51 +0200)] 
swapon: make --show size to be human readable by default

Cc: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoswapon: add --show option
Sami Kerola [Sun, 24 Jun 2012 20:43:48 +0000 (22:43 +0200)] 
swapon: add --show option

The --show uses lib/tt.c, which allows user to specify columns he is
interested of, and avoids using hard coded field sizes which may be
problematic when system has large enough swap.

[kzak@redhat.com: - improve usage(), remove unused code]

Cc: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agouuidd: use configured run state directory in manual etc
Sami Kerola [Sat, 23 Jun 2012 07:17:00 +0000 (09:17 +0200)] 
uuidd: use configured run state directory in manual etc

[kzak@redhat.com: - minor clean up in configure.in]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: use configured run state directory
Sami Kerola [Sat, 23 Jun 2012 07:02:36 +0000 (09:02 +0200)] 
agetty: use configured run state directory

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agouuidd: use run configured state directory
Sami Kerola [Sat, 23 Jun 2012 06:56:13 +0000 (08:56 +0200)] 
uuidd: use run configured state directory

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: change --localstatedir to /run
Sami Kerola [Sat, 23 Jun 2012 05:05:14 +0000 (07:05 +0200)] 
build-sys: change --localstatedir to /run

Enable user to define where run state files are wrote.  Default for
these files is /run.  See reference for rationale why /var/run is no
longer the default.

Reference: http://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html
CC: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoutmpdump: cleanup file descriptor usage
Karel Zak [Tue, 10 Jul 2012 09:23:35 +0000 (11:23 +0200)] 
utmpdump: cleanup file descriptor usage

 - don't support --follow for stdin at all
 - inotify based implementation closes the file, so don't close it in
   main() again

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: encourage users not to follow stdin
Sami Kerola [Sun, 8 Jul 2012 21:20:04 +0000 (23:20 +0200)] 
utmpdump: encourage users not to follow stdin

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoutmpdump: use inotify to when following file
Sami Kerola [Tue, 10 Jul 2012 08:59:58 +0000 (10:59 +0200)] 
utmpdump: use inotify to when following file

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoutmpdump: fixes based on static analysis [cppcheck]
Sami Kerola [Sun, 8 Jul 2012 19:03:14 +0000 (21:03 +0200)] 
utmpdump: fixes based on static analysis [cppcheck]

[utmpdump.c:82]: (style) The function 'unspace' is never used
[utmpdump.c:131]: (style) The scope of the variable 't' can be reduced
[utmpdump.c:167]: (warning) scanf without field width limits can crash with huge input data

[kzak@redhat.com: - don't use scanf field width limits for integers]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofix buffer overrun in some calls to sscanf
Karel Zak [Mon, 9 Jul 2012 20:26:27 +0000 (22:26 +0200)] 
fix buffer overrun in some calls to sscanf

Reported-by: Sergei Antonov <saproj@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: white space fix
Sami Kerola [Wed, 4 Jul 2012 20:33:15 +0000 (22:33 +0200)] 
utmpdump: white space fix

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: clean up utmpdump.1 manual
Sami Kerola [Tue, 3 Jul 2012 19:35:09 +0000 (21:35 +0200)] 
docs: clean up utmpdump.1 manual

Align with Documentation/howto-man-page.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Conflicts:

login-utils/utmpdump.1

13 years agolibblkid: cleanup _attribute__ usage
Karel Zak [Mon, 9 Jul 2012 15:26:15 +0000 (17:26 +0200)] 
libblkid: cleanup _attribute__ usage

13 years agoMerge branch 'master' of https://github.com/dankamongmen/util-linux
Karel Zak [Mon, 9 Jul 2012 15:17:59 +0000 (17:17 +0200)] 
Merge branch 'master' of https://github.com/dankamongmen/util-linux

13 years agodocs: mention the required mount options for journaled version 2 quota
Björn Jacke [Wed, 4 Jul 2012 20:00:08 +0000 (22:00 +0200)] 
docs: mention the required mount options for journaled version 2 quota

13 years agodocs: add quota mount option support description for ext2
Björn Jacke [Wed, 4 Jul 2012 12:49:43 +0000 (14:49 +0200)] 
docs: add quota mount option support description for ext2

13 years agoutmpdump: document optional filename argument
Bernhard Voelker [Tue, 3 Jul 2012 07:42:55 +0000 (09:42 +0200)] 
utmpdump: document optional filename argument

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agofindmnt: fix typo in manpage
Bernhard Voelker [Thu, 28 Jun 2012 14:24:56 +0000 (16:24 +0200)] 
findmnt: fix typo in manpage

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agobuild-sys: ensure BUILD_CFDISK is always defined
Dave Reisner [Sat, 30 Jun 2012 16:01:18 +0000 (12:01 -0400)] 
build-sys: ensure BUILD_CFDISK is always defined

This avoids an error when configuring without ncurses:

configure: error: conditional "BUILD_CFDISK" was never defined.
Usually this means the macro was only invoked conditionally.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
13 years agodocs: remove unused config/texinfo.tex
Karel Zak [Mon, 9 Jul 2012 15:03:19 +0000 (17:03 +0200)] 
docs: remove unused config/texinfo.tex

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: fix typos found by misspellings
Bernhard Voelker [Wed, 27 Jun 2012 13:23:05 +0000 (15:23 +0200)] 
docs: fix typos found by misspellings

The tool misspellings (https://github.com/lyda/misspell-check)
detected several typos. Command used:

  $ git ls-files | grep -v ^po/ | misspellings -f -

* Documentation/releases/v2.18-ReleaseNotes: Fix typo in news entry.
* NEWS: Likewise.
* config/texinfo.tex: Fix typo in comments.
* libmount/src/context.c: Fix typo in comment.
* libmount/src/fs.c: Likewise.
* login-utils/login.c: Likewise.
* login-utils.su.1: Fix typo in man page.
* sys-utils/chcpu.c: Fix typo in error message.

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agobuild-sys: add -Wredundant-decls
Karel Zak [Mon, 9 Jul 2012 14:53:13 +0000 (16:53 +0200)] 
build-sys: add -Wredundant-decls

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: support separate libintl
Karel Zak [Mon, 9 Jul 2012 14:44:25 +0000 (16:44 +0200)] 
build-sys: support separate libintl

Addresses: https://github.com/karelzak/util-linux/pull/13
Reported-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: always use default $(LDADD)
Karel Zak [Mon, 9 Jul 2012 14:23:51 +0000 (16:23 +0200)] 
build-sys: always use default $(LDADD)

The global variable $(LDADD) is always used if program_LDADD is
not specified. Let's use $LDADD everywhere to avoid exceptions for
people who need to specify global $LDADD.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agouse proper printf format spec %lu
nick black [Sat, 7 Jul 2012 15:42:35 +0000 (11:42 -0400)] 
use proper printf format spec %lu

13 years agouse memcpy() to cope with possible misalignment
nick black [Sat, 7 Jul 2012 15:42:17 +0000 (11:42 -0400)] 
use memcpy() to cope with possible misalignment

13 years agoproperly check for ansi c99 vsnprint truncation
nick black [Sat, 7 Jul 2012 15:41:15 +0000 (11:41 -0400)] 
properly check for ansi c99 vsnprint truncation

13 years agouse GCC format __attribute__ on sprinf
nick black [Sat, 7 Jul 2012 15:40:45 +0000 (11:40 -0400)] 
use GCC format __attribute__ on sprinf

13 years agohwclock: don't set time for --systz
Karel Zak [Wed, 4 Jul 2012 11:40:01 +0000 (13:40 +0200)] 
hwclock: don't set time for --systz

Not sure why, but the current --systz uses non-NULL timeval for
settimeofday(). It means that build-in kernel warp clock mechanism is
not used and the system time is always modified.

The built-in kernel implementation allows to move the clock by
timezone only for very first settimeofday() call.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: use xalloc.h, minor coding style changes
Karel Zak [Fri, 29 Jun 2012 15:34:12 +0000 (17:34 +0200)] 
utmpdump: use xalloc.h, minor coding style changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: cleanup usage()
Karel Zak [Fri, 29 Jun 2012 15:27:40 +0000 (17:27 +0200)] 
utmpdump: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: add long options
Karel Zak [Fri, 29 Jun 2012 15:22:42 +0000 (17:22 +0200)] 
utmpdump: add long options

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: use err.h stuff
Karel Zak [Fri, 29 Jun 2012 15:09:51 +0000 (17:09 +0200)] 
utmpdump: use err.h stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: add NLS and closestream support
Karel Zak [Fri, 29 Jun 2012 14:59:32 +0000 (16:59 +0200)] 
utmpdump: add NLS and closestream support

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: remove dead code
Karel Zak [Fri, 29 Jun 2012 14:56:04 +0000 (16:56 +0200)] 
utmpdump: remove dead code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: remove libc5 support
Karel Zak [Fri, 29 Jun 2012 14:52:30 +0000 (16:52 +0200)] 
utmpdump: remove libc5 support

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: cleanup comments, funcs definition lines
Karel Zak [Fri, 29 Jun 2012 14:43:37 +0000 (16:43 +0200)] 
utmpdump: cleanup comments, funcs definition lines

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: new command, merge from sysvinit
Karel Zak [Fri, 29 Jun 2012 14:34:46 +0000 (16:34 +0200)] 
utmpdump: new command, merge from sysvinit

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: add TID column
Karel Zak [Thu, 28 Jun 2012 13:42:06 +0000 (15:42 +0200)] 
findmnt: add TID column

just in case we read from more mountinfo files.

For example get mountpoint from the current namespace which is invisible
for initd (PID=1):

 # unsahre -m bash
 # mount /dev/sdb /mnt/test
 # echo $$
 30070

 # findmnt -n -o TARGET,TID,SOURCE --task 1 --task $$ | \
      sort -u --key=1,1 | awk ' ($2 != 1) { print $0 }'

 /mnt/test                  30070 /dev/sdb

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: save task ID for mountinfo tiles
Karel Zak [Thu, 28 Jun 2012 13:40:16 +0000 (15:40 +0200)] 
libmount: save task ID for mountinfo tiles

Add new function mnt_fs_get_tid() to get task ID for the given filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: add --task <tid> option
Karel Zak [Thu, 28 Jun 2012 11:51:34 +0000 (13:51 +0200)] 
findmnt: add --task <tid> option

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: don't use tree-like output if more -F options specified
Karel Zak [Thu, 28 Jun 2012 11:20:31 +0000 (13:20 +0200)] 
findmnt: don't use tree-like output if more -F options specified

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: add FSROOT column
Dave Reisner [Wed, 27 Jun 2012 13:47:20 +0000 (09:47 -0400)] 
findmnt: add FSROOT column

Provide this separately in an unambiguous format, mainly to avoid the
need for scripts to parse the source of a btrfs subvol or bind mount.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
13 years agoswapon: fix typo
Karel Zak [Wed, 27 Jun 2012 12:04:03 +0000 (14:04 +0200)] 
swapon: fix typo

Reported-by: Manan Tuli <mt_void@yahoo.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: add note about non-recursive build-sys
Karel Zak [Wed, 27 Jun 2012 09:27:36 +0000 (11:27 +0200)] 
docs: add note about non-recursive build-sys

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add sd-daemon.h to Makemodule.am
Karel Zak [Tue, 26 Jun 2012 21:03:22 +0000 (23:03 +0200)] 
build-sys: add sd-daemon.h to Makemodule.am

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add pager.h to Makemodule.am
Karel Zak [Tue, 26 Jun 2012 18:57:45 +0000 (20:57 +0200)] 
build-sys: add pager.h to Makemodule.am

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: fix swaplabel
Karel Zak [Tue, 12 Jun 2012 11:14:06 +0000 (13:14 +0200)] 
build-sys: fix swaplabel

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: create static uuid_generate_*.3 files
Karel Zak [Wed, 6 Jun 2012 19:31:59 +0000 (21:31 +0200)] 
build-sys: create static uuid_generate_*.3 files

It seems more simple to create small three files with man page links
than generate the files on the fly.

Note that the libuuid/man directory is not in builddir by default so
you have to create proper directory and then create the man pages...
too complex task for this three tiny files.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: enable libmount and libblkid docs
Karel Zak [Tue, 26 Jun 2012 16:42:49 +0000 (18:42 +0200)] 
build-sys: enable libmount and libblkid docs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: cleanup .gitignore files
Karel Zak [Wed, 6 Jun 2012 11:28:06 +0000 (13:28 +0200)] 
build-sys: cleanup .gitignore files

 - move all binaries to top-level .gitignore
 - remove unnecessary */.gitignore files

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert lib/ to libcommon.la
Karel Zak [Mon, 4 Jun 2012 08:36:37 +0000 (10:36 +0200)] 
build-sys: convert lib/ to libcommon.la

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: remove include-Makefile.am
Karel Zak [Tue, 26 Jun 2012 16:31:53 +0000 (18:31 +0200)] 
build-sys: remove include-Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: rename fdisk -> fdisks/, convert to module
Karel Zak [Fri, 1 Jun 2012 14:15:29 +0000 (16:15 +0200)] 
build-sys: rename fdisk -> fdisks/, convert to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert tests/ to module
Karel Zak [Fri, 1 Jun 2012 13:30:56 +0000 (15:30 +0200)] 
build-sys: convert tests/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: move partx to disk-utils/
Karel Zak [Tue, 26 Jun 2012 16:24:16 +0000 (18:24 +0200)] 
build-sys: move partx to disk-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert disk-utils/ to module
Karel Zak [Tue, 26 Jun 2012 16:20:00 +0000 (18:20 +0200)] 
build-sys: convert disk-utils/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: move getopt to misc-utils/
Karel Zak [Tue, 26 Jun 2012 16:17:22 +0000 (18:17 +0200)] 
build-sys: move getopt to misc-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert misc-utils/ to module
Karel Zak [Tue, 26 Jun 2012 16:14:36 +0000 (18:14 +0200)] 
build-sys: convert misc-utils/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: move hwclock to sys-utils/
Karel Zak [Thu, 31 May 2012 09:15:07 +0000 (11:15 +0200)] 
build-sys: move hwclock to sys-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert sys-utils/ to module
Karel Zak [Tue, 26 Jun 2012 16:06:21 +0000 (18:06 +0200)] 
build-sys: convert sys-utils/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotools: cleanup config-gen.d
Karel Zak [Thu, 31 May 2012 08:55:14 +0000 (10:55 +0200)] 
tools: cleanup config-gen.d

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: cleanup mount stuff in configure.am
Karel Zak [Thu, 31 May 2012 08:03:35 +0000 (10:03 +0200)] 
build-sys: cleanup mount stuff in configure.am

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add UL_CONFLICTS_BUILD m4 macro
Karel Zak [Thu, 31 May 2012 08:02:52 +0000 (10:02 +0200)] 
build-sys: add UL_CONFLICTS_BUILD m4 macro

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (old) remove hybrid libmount code
Karel Zak [Wed, 30 May 2012 15:36:44 +0000 (17:36 +0200)] 
mount: (old) remove hybrid libmount code

The hybrid version with old mount and new mtab management from
libmount is not more supported.

Only two versions are supported:

  1/ old mount in mount-deprecated/, --enable-deprecated-mount

  2/ new sys-utils/mount.c, enabled by default

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: default to new sys-utils/mount.c, add --enable-deprecated-mount
Karel Zak [Wed, 30 May 2012 15:29:01 +0000 (17:29 +0200)] 
build-sys: default to new sys-utils/mount.c, add --enable-deprecated-mount

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (old) remove mtab lock test
Karel Zak [Wed, 30 May 2012 15:17:49 +0000 (17:17 +0200)] 
mount: (old) remove mtab lock test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert mount/ to module, rename to mount-deprecated/
Karel Zak [Wed, 30 May 2012 15:16:11 +0000 (17:16 +0200)] 
build-sys: convert mount/ to module, rename to mount-deprecated/

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert login-utils/ to module
Karel Zak [Wed, 30 May 2012 14:10:11 +0000 (16:10 +0200)] 
build-sys: convert login-utils/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert term-utils/ to module
Karel Zak [Tue, 26 Jun 2012 15:53:09 +0000 (17:53 +0200)] 
build-sys: convert term-utils/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert text-utils/ to module
Karel Zak [Wed, 30 May 2012 13:02:33 +0000 (15:02 +0200)] 
build-sys: convert text-utils/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert libmount/ to module
Karel Zak [Tue, 26 Jun 2012 15:49:37 +0000 (17:49 +0200)] 
build-sys: convert libmount/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert libblkid/ to module
Karel Zak [Tue, 26 Jun 2012 15:44:15 +0000 (17:44 +0200)] 
build-sys: convert libblkid/ to module

 - create module
 - remove unused libblkid/src/tst_types.c test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert libuuid/ to module
Karel Zak [Wed, 23 May 2012 07:37:38 +0000 (09:37 +0200)] 
build-sys: convert libuuid/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert schedutils/ to module
Karel Zak [Tue, 22 May 2012 13:57:23 +0000 (15:57 +0200)] 
build-sys: convert schedutils/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: define per-test -DTEST_PROGRAM in lib/
Karel Zak [Tue, 22 May 2012 13:56:29 +0000 (15:56 +0200)] 
build-sys: define per-test -DTEST_PROGRAM in lib/

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert lib/ to module
Karel Zak [Wed, 16 May 2012 22:54:26 +0000 (00:54 +0200)] 
build-sys: convert lib/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: convert include/ to module
Karel Zak [Wed, 16 May 2012 13:05:11 +0000 (15:05 +0200)] 
build-sys: convert include/ to module

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-system: enable automake subdir-objects
Karel Zak [Wed, 16 May 2012 13:02:27 +0000 (15:02 +0200)] 
build-system: enable automake subdir-objects

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: ignore .dirstamp file
Karel Zak [Wed, 16 May 2012 12:37:28 +0000 (14:37 +0200)] 
build-sys: ignore .dirstamp file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowhereis: cleanup man page, add note about $PATH
Karel Zak [Tue, 26 Jun 2012 07:53:51 +0000 (09:53 +0200)] 
whereis: cleanup man page, add note about $PATH

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=835211
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotunelp: check fstat return code [coverity scan]
Karel Zak [Thu, 21 Jun 2012 11:11:08 +0000 (13:11 +0200)] 
tunelp: check fstat return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: check sysfs_read_u64 return code [coverity scan]
Karel Zak [Thu, 21 Jun 2012 11:08:18 +0000 (13:08 +0200)] 
lsblk: check sysfs_read_u64 return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoswaplabel: check blkid_probe_lookup_value() result [coverity scan]
Karel Zak [Thu, 21 Jun 2012 10:54:31 +0000 (12:54 +0200)] 
swaplabel: check blkid_probe_lookup_value() result [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoscript: remove unused code
Karel Zak [Thu, 21 Jun 2012 10:14:34 +0000 (12:14 +0200)] 
script: remove unused code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: more robust debug() macro, check ioctl result [coverity scan]
Karel Zak [Thu, 21 Jun 2012 10:03:27 +0000 (12:03 +0200)] 
agetty: more robust debug() macro, check ioctl result [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: check ioctl result [coverity scan]
Karel Zak [Thu, 21 Jun 2012 09:58:39 +0000 (11:58 +0200)] 
lsblk: check ioctl result [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add lscpu test for box with 64 CPUs
Karel Zak [Thu, 21 Jun 2012 09:35:45 +0000 (11:35 +0200)] 
tests: add lscpu test for box with 64 CPUs

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                64
On-line CPU(s) list:   0-63
Thread(s) per core:    2
Core(s) per socket:    8
Socket(s):             4
Vendor ID:             GenuineIntel
...

Signed-off-by: Karel Zak <kzak@redhat.com>