]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
13 years agobuild-sys: add run.sh to make check for non-root users
Karel Zak [Mon, 30 Jul 2012 16:19:20 +0000 (18:19 +0200)] 
build-sys: add run.sh to make check for non-root users

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: check for 'make check'
Karel Zak [Mon, 30 Jul 2012 16:00:33 +0000 (18:00 +0200)] 
tests: check for 'make check'

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: move tests to check_PROGRAMS
Karel Zak [Mon, 30 Jul 2012 15:59:16 +0000 (17:59 +0200)] 
build-sys: move tests to check_PROGRAMS

Thanks to Mike Frysinger.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: remove lt- prefixes
Karel Zak [Mon, 30 Jul 2012 15:43:10 +0000 (17:43 +0200)] 
tests: remove lt- prefixes

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutil-linux: Document new FAT options
Steven J. Magnani [Mon, 30 Jul 2012 12:24:07 +0000 (07:24 -0500)] 
util-linux: Document new FAT options

Add man-page documentation for the new 'discard' and 'nfs' options
available for vfat/msdos filesystems.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
13 years agobuild-sys: include tools/git-version-gen in the tarball
Petr Uzel [Fri, 27 Jul 2012 11:15:54 +0000 (13:15 +0200)] 
build-sys: include tools/git-version-gen in the tarball

tools/git-version-gen is called from AC_INIT. Include it
in the tarball to make it easier to autoreconf-igure the package.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agobuild-sys: fix description of utmpdump configure option
Petr Uzel [Fri, 27 Jul 2012 10:09:01 +0000 (12:09 +0200)] 
build-sys: fix description of utmpdump configure option

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agotests: more robust symlinks usage
Karel Zak [Mon, 30 Jul 2012 15:10:38 +0000 (17:10 +0200)] 
tests: more robust symlinks usage

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: use ts_is_mounted in mount/regfile
Bernhard Voelker [Fri, 27 Jul 2012 09:00:17 +0000 (11:00 +0200)] 
tests: use ts_is_mounted in mount/regfile

If the test directory is on a symlink, then mount/regfile failed because
it did not search for the mount point in /proc/mounts canonicalized.

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agotests: search mount point in canonicalized form in /proc/mounts
Bernhard Voelker [Fri, 27 Jul 2012 08:35:01 +0000 (10:35 +0200)] 
tests: search mount point in canonicalized form in /proc/mounts

* tests/functions.sh (ts_is_mounted): Enhance to resolve symlinks in
given mount point before grep'ing in /proc/mount.

If the test directory is on a symlink, then e.g. tests/ts/cramfs/doubles
failed because the kernel keeps the mount entry in a canonicalized form
in /proc/mounts while this function searched for it with the original
path name.

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agodocs: add note about enabled kill(1) to v2.22-ReleaseNotes
Karel Zak [Mon, 30 Jul 2012 12:57:29 +0000 (14:57 +0200)] 
docs: add note about enabled kill(1) to v2.22-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: add note about partx output change
Karel Zak [Fri, 27 Jul 2012 08:17:10 +0000 (10:17 +0200)] 
docs: add note about partx output change

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodoc: fix typo in v2.22-ReleaseNotes
Bernhard Voelker [Fri, 27 Jul 2012 07:57:38 +0000 (09:57 +0200)] 
doc: fix typo in v2.22-ReleaseNotes

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agofindmnt: support -o +<attr> for adding attribute to output fields.
Milan Broz [Thu, 26 Jul 2012 13:52:07 +0000 (15:52 +0200)] 
findmnt: support -o +<attr> for adding attribute to output fields.

Signed-off-by: Milan Broz <mbroz@redhat.com>
13 years agotests: update non-lib build tests v2.22-rc1
Karel Zak [Fri, 27 Jul 2012 07:17:53 +0000 (09:17 +0200)] 
tests: update non-lib build tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: fix build without libs
Karel Zak [Fri, 27 Jul 2012 07:04:55 +0000 (09:04 +0200)] 
build-sys: fix build without libs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add minisg COPYING files
Karel Zak [Thu, 26 Jul 2012 22:56:28 +0000 (00:56 +0200)] 
build-sys: add minisg COPYING files

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: release++ (v2.22-rc1)
Karel Zak [Thu, 26 Jul 2012 22:09:42 +0000 (00:09 +0200)] 
build-sys: release++ (v2.22-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: add v2.22-ReleaseNotes
Karel Zak [Thu, 26 Jul 2012 22:07:11 +0000 (00:07 +0200)] 
docs: add  v2.22-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Thu, 26 Jul 2012 20:23:09 +0000 (22:23 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Thu, 26 Jul 2012 20:15:58 +0000 (22:15 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: update zh_CN.po (from translationproject.org)
Wylmer Wang [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update zh_CN.po (from translationproject.org)

13 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update vi.po (from translationproject.org)

13 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update nl.po (from translationproject.org)

13 years agopo: update fr.po (from translationproject.org)
David Prévot [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update fr.po (from translationproject.org)

13 years agopo: update de.po (from translationproject.org)
Arun Persaud [Thu, 26 Jul 2012 19:53:37 +0000 (21:53 +0200)] 
po: update de.po (from translationproject.org)

13 years agofdisk: sgi: use xcalloc()
Karel Zak [Thu, 26 Jul 2012 19:49:42 +0000 (21:49 +0200)] 
fdisk: sgi: use xcalloc()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosu: use xstrdup()
Karel Zak [Thu, 26 Jul 2012 19:48:50 +0000 (21:48 +0200)] 
su: use xstrdup()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: update build-sys tests
Karel Zak [Thu, 26 Jul 2012 19:42:08 +0000 (21:42 +0200)] 
tests: update build-sys tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: update partx, add missing whitespace
Karel Zak [Thu, 26 Jul 2012 17:41:09 +0000 (19:41 +0200)] 
tests: update partx, add missing whitespace

 ... probably removed by git-pull from Sami's repo :-(

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: update paths to helpers
Karel Zak [Thu, 26 Jul 2012 17:40:36 +0000 (19:40 +0200)] 
tests: update paths to helpers

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: remove unnecessary free()
Karel Zak [Thu, 26 Jul 2012 17:04:30 +0000 (19:04 +0200)] 
mount: remove unnecessary free()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: update blkid tests with fdisk output
Karel Zak [Thu, 26 Jul 2012 16:47:59 +0000 (18:47 +0200)] 
tests: update blkid tests with fdisk output

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: dos: mark unused parameters
Karel Zak [Thu, 26 Jul 2012 16:03:10 +0000 (18:03 +0200)] 
fdisk: dos: mark unused parameters

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: mac: remove magic maclabel macro, mark unused parameters
Karel Zak [Thu, 26 Jul 2012 15:56:39 +0000 (17:56 +0200)] 
fdisk: mac: remove magic maclabel macro, mark unused parameters

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: bsd: mark unused parameters
Karel Zak [Thu, 26 Jul 2012 15:52:30 +0000 (17:52 +0200)] 
fdisk: bsd: mark unused parameters

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: aix: remove magic aixlabel macro, mark unused parameters
Karel Zak [Thu, 26 Jul 2012 15:47:08 +0000 (17:47 +0200)] 
fdisk: aix: remove magic aixlabel macro, mark unused parameters

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: fix menu
Davidlohr Bueso [Thu, 26 Jul 2012 14:16:57 +0000 (16:16 +0200)] 
fdisk: fix menu

Commit 79c8a145ddff98d9c5bc70e67c5a861f67c50484 changed the numerical values of
fdisk_labeltype and broke the menu functionality, mixing main and expert menus.
Revert this change along with the label comment regarding it matching labeltype.

This is no longer valid since the original patch that lead to this modification
assumed that __probe_labels() would use these indices when creating a default
DOS/SUN disklabel, see http://www.spinics.net/lists/util-linux-ng/msg06509.html

Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agoprlimit: improve error messages for bad --pid invocation
Bernhard Voelker [Thu, 26 Jul 2012 14:10:23 +0000 (16:10 +0200)] 
prlimit: improve error messages for bad --pid invocation

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agotests: update fdisk test (default output format changed)
Petr Uzel [Thu, 26 Jul 2012 14:04:28 +0000 (16:04 +0200)] 
tests: update fdisk test (default output format changed)

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agofdisk: don't print CHS geometry unless DOS compatible mode is set
Petr Uzel [Thu, 26 Jul 2012 14:04:27 +0000 (16:04 +0200)] 
fdisk: don't print CHS geometry unless DOS compatible mode is set

References: http://marc.info/?l=util-linux-ng&m=134329693623430&w=2
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agofdisk: always print total number of sectors
Petr Uzel [Thu, 26 Jul 2012 14:04:26 +0000 (16:04 +0200)] 
fdisk: always print total number of sectors

Print it no regardless on units_per_sector.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agofdisk: fix typo
Petr Uzel [Thu, 26 Jul 2012 14:04:25 +0000 (16:04 +0200)] 
fdisk: fix typo

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agofdisk: make grain global variable part of fdisk_context()
Petr Uzel [Thu, 26 Jul 2012 14:04:24 +0000 (16:04 +0200)] 
fdisk: make grain global variable part of fdisk_context()

There is no reason for this to be global variable - it belongs
to the context.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: support -o +<attr> for adding attribute to output fields
Milan Broz [Thu, 26 Jul 2012 14:41:30 +0000 (16:41 +0200)] 
partx: support -o +<attr> for adding attribute to output fields

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: support -o +<attr> for adding attribute to output fields.
Milan Broz [Thu, 26 Jul 2012 13:52:05 +0000 (15:52 +0200)] 
lsblk: support -o +<attr> for adding attribute to output fields.

Signed-off-by: Milan Broz <mbroz@redhat.com>
13 years agolib/strutils: add string_add_to_idarray() - parse and add to id list
Milan Broz [Thu, 26 Jul 2012 13:52:04 +0000 (15:52 +0200)] 
lib/strutils: add string_add_to_idarray() - parse and add to id list

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: improve err handling code
Karel Zak [Thu, 26 Jul 2012 12:02:15 +0000 (14:02 +0200)] 
dmesg: improve err handling code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: tell about irc channel
Sami Kerola [Wed, 25 Jul 2012 19:15:45 +0000 (21:15 +0200)] 
docs: tell about irc channel

Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/3550
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodmesg: inform user when klogctl() or read_buffer() fails
Sami Kerola [Wed, 25 Jul 2012 19:15:44 +0000 (21:15 +0200)] 
dmesg: inform user when klogctl() or read_buffer() fails

Fix to small regression which made 'dmesg --clear' not to error
when running without root privileges.  Same happen with '-D' and
few other options as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agowdctl: fix conflicting types on old systems
Sami Kerola [Wed, 25 Jul 2012 19:15:43 +0000 (21:15 +0200)] 
wdctl: fix conflicting types on old systems

The program wants the userland version of declaration(s), not the
kernel one.  Problem occured with glibc-devel-2.5-34.

/usr/include/stdint.h:41: error: conflicting types for 'int64_t'
/usr/include/linux/types.h:98: error: previous declaration of 'int64_t' was here
/usr/include/stdint.h:56: error: conflicting types for 'uint64_t'
/usr/include/linux/types.h:96: error: previous declaration of 'uint64_t' was here
In file included from /usr/include/stdlib.h:438,
                 from ./include/c.h:13,
                 from sys-utils/wdctl.c:30:

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: clean up sulogin.8 manual
Sami Kerola [Wed, 25 Jul 2012 19:15:42 +0000 (21:15 +0200)] 
docs: clean up sulogin.8 manual

Align with Documentation/howto-man-page.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoddate: russian manual missing from package
Sami Kerola [Wed, 25 Jul 2012 19:15:41 +0000 (21:15 +0200)] 
ddate: russian manual missing from package

This manpage causes more trouble than its worth.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agomore: add noreturn function attribute
Sami Kerola [Wed, 25 Jul 2012 19:15:40 +0000 (21:15 +0200)] 
more: add noreturn function attribute

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoscript: add noreturn function attributes
Sami Kerola [Wed, 25 Jul 2012 19:15:39 +0000 (21:15 +0200)] 
script: add noreturn function attributes

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agovipw: add noreturn function attribute
Sami Kerola [Wed, 25 Jul 2012 19:15:38 +0000 (21:15 +0200)] 
vipw: add noreturn function attribute

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibmount: add noreturn function attribute
Sami Kerola [Wed, 25 Jul 2012 19:15:37 +0000 (21:15 +0200)] 
libmount: add noreturn function attribute

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibblkid: add noreturn function attribute
Sami Kerola [Wed, 25 Jul 2012 19:15:36 +0000 (21:15 +0200)] 
libblkid: add noreturn function attribute

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agofdisk: add noreturn function attribute
Sami Kerola [Wed, 25 Jul 2012 19:15:35 +0000 (21:15 +0200)] 
fdisk: add noreturn function attribute

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoinclude: define format to be constant in xasprintf()
Sami Kerola [Wed, 25 Jul 2012 19:15:34 +0000 (21:15 +0200)] 
include: define format to be constant in xasprintf()

Add also format function attribute to add robustness.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agohexdump: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:33 +0000 (21:15 +0200)] 
hexdump: fix shadow declaration

text-utils/hexdump.h:84:5: warning: shadowed declaration is here [-Wshadow]
./include/xalloc.h:23:28: warning: declaration of 'size' shadows a global declaration [-Wshadow]
./include/xalloc.h:33:40: warning: declaration of 'size' shadows a global declaration [-Wshadow]
./include/xalloc.h:43:49: warning: declaration of 'size' shadows a global declaration [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoul: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:32 +0000 (21:15 +0200)] 
ul: fix shadow declaration

text-utils/ul.c:641:25: warning: declaration of 'col' shadows a global declaration [-Wshadow]
text-utils/ul.c:126:5: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agomore: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:31 +0000 (21:15 +0200)] 
more: fix shadow declaration

text-utils/more.c:1123:13: warning: declaration of 'state' shadows a previous local [-Wshadow]
text-utils/more.c:1095:18: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agosetterm: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:30 +0000 (21:15 +0200)] 
setterm: fix shadow declaration

term-utils/setterm.c:221:55: warning: declaration of 'opt_term' shadows a global declaration [-Wshadow]
term-utils/setterm.c:181:5: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:29 +0000 (21:15 +0200)] 
lscpu: fix shadow declaration

sys-utils/lscpu.c:1084:8: warning: declaration of 'buf' shadows a previous local [-Wshadow]
sys-utils/lscpu.c:1077:7: warning: shadowed declaration is here [-Wshadow]
sys-utils/lscpu.c:1144:9: warning: declaration of 'buf' shadows a previous local [-Wshadow]
sys-utils/lscpu.c:1077:7: warning: shadowed declaration is here [-Wshadow]
sys-utils/lscpu.c:1196:8: warning: declaration of 'buf' shadows a previous local [-Wshadow]
sys-utils/lscpu.c:1077:7: warning: shadowed declaration is here [-Wshadow]
sys-utils/lscpu.c:1197:7: warning: declaration of 'i' shadows a previous local [-Wshadow]
sys-utils/lscpu.c:1078:6: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoeject: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:28 +0000 (21:15 +0200)] 
eject: fix shadow declaration

sys-utils/eject.c:529:11: warning: declaration of 'str' shadows a previous local [-Wshadow]
sys-utils/eject.c:506:9: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agowhereis: fix shadow declaration
Karel Zak [Wed, 25 Jul 2012 19:15:27 +0000 (21:15 +0200)] 
whereis: fix shadow declaration

misc-utils/whereis.c:191:7: warning: declaration of 'dirp' shadows a global declaration [-Wshadow]
misc-utils/whereis.c:134:42: warning: shadowed declaration is here [-Wshadow]

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolslocks: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:26 +0000 (21:15 +0200)] 
lslocks: fix shadow declaration

misc-utils/lslocks.c:157:49: warning: declaration of 'pid' shadows a global declaration [-Wshadow]
misc-utils/lslocks.c:80:14: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: add not about unstable default output
Karel Zak [Thu, 26 Jul 2012 09:44:59 +0000 (11:44 +0200)] 
lsblk: add not about unstable default output

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:25 +0000 (21:15 +0200)] 
blkid: fix shadow declaration

misc-utils/blkid.c:402:15: warning: declaration of 'usage' shadows a global declaration [-Wshadow]
misc-utils/blkid.c:63:13: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agosulogin: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:24 +0000 (21:15 +0200)] 
sulogin: fix shadow declaration

login-utils/sulogin.c:337:8: warning: declaration of 'sushell' shadows a global declaration [-Wshadow]
login-utils/sulogin.c:332:13: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibmount: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:23 +0000 (21:15 +0200)] 
libmount: fix shadow declaration

libmount/src/tab_update.c:203:8: warning: declaration of 'rc' shadows a previous local [-Wshadow]
libmount/src/tab_update.c:159:6: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agomkswap: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:22 +0000 (21:15 +0200)] 
mkswap: fix shadow declaration

disk-utils/mkswap.c:366:57: warning: declaration of 'is_blkdev' shadows a global declaration [-Wshadow]
./include/blkdev.h:92:5: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agotests: look: add words file
Sami Kerola [Wed, 25 Jul 2012 19:15:20 +0000 (21:15 +0200)] 
tests: look: add words file

Archlinux words 2.0-4 package does not have 'apple-pie' in words file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agotests: partx changed default output format
Sami Kerola [Wed, 25 Jul 2012 19:15:19 +0000 (21:15 +0200)] 
tests: partx changed default output format

Reference: commit 7cfd1b26437acd45f1e2e75c9648afabb8f5b2da
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolsblk: add read-ahead column.
Milan Broz [Tue, 24 Jul 2012 14:34:33 +0000 (16:34 +0200)] 
lsblk: add read-ahead column.

Signed-off-by: Milan Broz <mbroz@redhat.com>
13 years agofdisk: API: comment labels array
Davidlohr Bueso [Tue, 24 Jul 2012 12:40:30 +0000 (14:40 +0200)] 
fdisk: API: comment labels array

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agofdisk: API: fix fdisk_add_partition comment style
Davidlohr Bueso [Tue, 24 Jul 2012 12:40:03 +0000 (14:40 +0200)] 
fdisk: API: fix fdisk_add_partition comment style

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agobuild-sys: add -Wall to warnings
Karel Zak [Thu, 26 Jul 2012 08:13:08 +0000 (10:13 +0200)] 
build-sys: add -Wall to warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: fix compiler warning [-Wunused-result]
Karel Zak [Thu, 26 Jul 2012 07:46:49 +0000 (09:46 +0200)] 
utmpdump: fix compiler warning [-Wunused-result]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix compiler warning [-Wsign-compare]
Karel Zak [Thu, 26 Jul 2012 07:44:37 +0000 (09:44 +0200)] 
libmount: fix compiler warning [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: fix compiler warning [-Wsign-compare]
Karel Zak [Thu, 26 Jul 2012 07:41:57 +0000 (09:41 +0200)] 
libblkid: fix compiler warning [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoinclude/optutils: remove unnecessary exclusive_option()
Karel Zak [Thu, 26 Jul 2012 07:27:42 +0000 (09:27 +0200)] 
include/optutils: remove unnecessary exclusive_option()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowdctl: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:51 +0000 (09:26 +0200)] 
wdctl: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoprlimit: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:34 +0000 (09:26 +0200)] 
prlimit: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:21 +0000 (09:26 +0200)] 
mount: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:10 +0000 (09:26 +0200)] 
lscpu: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolosetup: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:59 +0000 (09:25 +0200)] 
losetup: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:48 +0000 (09:25 +0200)] 
hwclock: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:35 +0000 (09:25 +0200)] 
dmesg: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agochcpu: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:19 +0000 (09:25 +0200)] 
chcpu: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowipefs: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:24:50 +0000 (09:24 +0200)] 
wipefs: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:24:36 +0000 (09:24 +0200)] 
lsblk: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:24:21 +0000 (09:24 +0200)] 
findmnt: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:23:58 +0000 (09:23 +0200)] 
blkid: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:23:40 +0000 (09:23 +0200)] 
partx: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoinclude/optutils: add err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:04:55 +0000 (09:04 +0200)] 
include/optutils: add err_exclusive_options()

This is improved implementation of exclusive_option(). The new
implementation:

  - uses regular struct option to compose error messages
  - relationships between options are described in one const static array
  - the current status is stored in one int array

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: fix dm_name usage
Karel Zak [Wed, 25 Jul 2012 16:04:10 +0000 (18:04 +0200)] 
lsblk: fix dm_name usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: remove unnecessary sleep(10)
Mantas Mikulėnas [Wed, 25 Jul 2012 14:07:16 +0000 (17:07 +0300)] 
agetty: remove unnecessary sleep(10)

I'm quite sure this is not supposed to be here (apparently added as part
of commit 783b08fc1c6e5c906e).

Signed-off-by: Mantas Mikulėnas <grawity@gmail.com>
13 years agoRevert "fdisk: de-duplicate disk label strings"
Karel Zak [Tue, 24 Jul 2012 12:15:08 +0000 (14:15 +0200)] 
Revert "fdisk: de-duplicate disk label strings"

 ... because it's not expected that fdisk_label will be exported by
API and accessible for applications (like fdisk.c). It's private
libfdisk stuff.

This reverts commit e7818642600d6cd573a8e1ed5363fce52def5821.