]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
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 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

11 years agoMerge branch 'cfdisk-fix-typo' of https://github.com/rudimeier/util-linux
Karel Zak [Fri, 21 Mar 2014 14:11:25 +0000 (15:11 +0100)] 
Merge branch 'cfdisk-fix-typo' of https://github.com/rudimeier/util-linux

* 'cfdisk-fix-typo' of https://github.com/rudimeier/util-linux:
  cfdisk: fix typo (undeclared variable since b1f58330)

11 years agoMerge branch 'master' of https://github.com/rudimeier/util-linux
Karel Zak [Fri, 21 Mar 2014 14:02:29 +0000 (15:02 +0100)] 
Merge branch 'master' of https://github.com/rudimeier/util-linux

* 'master' of https://github.com/rudimeier/util-linux:
  tests: try hard to create swaplabel's test image
  build-sys: libmount/python/__init__.py is always a dist file
  tests: return error if failures file not usable
  tests: write tests/failures to build- instead of srcdir

11 years agolibfdisk: properly implement read-only mode
Karel Zak [Fri, 21 Mar 2014 13:04:59 +0000 (14:04 +0100)] 
libfdisk: properly implement read-only mode

Don't use fallback to read-only mode in fdisk_context_assign_device(),
it's application responsibility open the device in the right mode.

The commands fdisk and cfdisk check (and report) read-only mode now.

Reported-by: Maciej MaƂecki <me@mmalecki.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: clean up debug output
Karel Zak [Fri, 21 Mar 2014 12:33:37 +0000 (13:33 +0100)] 
libfdisk: clean up debug output

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: use new debug functions
Karel Zak [Fri, 21 Mar 2014 11:35:21 +0000 (12:35 +0100)] 
libfdisk: use new debug functions

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibblkid: use new debug functions
Karel Zak [Fri, 21 Mar 2014 11:34:50 +0000 (12:34 +0100)] 
libblkid: use new debug functions

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibmount: use new debug functions
Karel Zak [Fri, 21 Mar 2014 11:34:39 +0000 (12:34 +0100)] 
libmount: use new debug functions

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoinclude/debug: add another debug macros
Karel Zak [Fri, 21 Mar 2014 11:04:12 +0000 (12:04 +0100)] 
include/debug: add another debug macros

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoinclude/debug: fix coding style
Karel Zak [Fri, 21 Mar 2014 10:21:56 +0000 (11:21 +0100)] 
include/debug: fix coding style

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoMerge branch 'common_debug' of https://github.com/ooprala/util-linux
Karel Zak [Fri, 21 Mar 2014 09:59:58 +0000 (10:59 +0100)] 
Merge branch 'common_debug' of https://github.com/ooprala/util-linux

* 'common_debug' of https://github.com/ooprala/util-linux:
  clean up redundant macros and defines
  libfdisk: use include/debug.h
  libblkid: use include/debug.h
  libmount: further debug.h integration
  libcommon: don't mention lib versions in debug macros
  libcommon: define more debugging macros
  libmount: use macros from include/debug.h
  libcommon: add common debugging routines

11 years agobuild-sys: gettexts 0.18 -> 0.18.2 due to MKDIR_P
Karel Zak [Fri, 21 Mar 2014 09:30:22 +0000 (10:30 +0100)] 
build-sys: gettexts 0.18 -> 0.18.2 due to MKDIR_P

The autopoint is designed to not use the latest installed bug fix
release, if you specify

AM_GNU_GETTEXT_VERSION([0.18])

in your configure.ac then it really uses 0.18, rather than also
installed 0.18.2 or 0.18.3. It means that bug fix update has no any
effect. Oh...

The AM_PROG_MKDIR_P is deprecated for years, unfortunately still used
in 0.18 gettext m4 stuff. This problem should be fixed in 0.18.2 where
is the correct AC_PROG_MKDIR_P macro.

If you do not have gettext 0.18.2 (or 0.18.3) then update.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoMerge branch 'fix-unshare-defines' of https://github.com/rudimeier/util-linux
Karel Zak [Fri, 21 Mar 2014 08:19:01 +0000 (09:19 +0100)] 
Merge branch 'fix-unshare-defines' of https://github.com/rudimeier/util-linux

* 'fix-unshare-defines' of https://github.com/rudimeier/util-linux:
  unshare: include libmount.h to provide missing MS_* defines

11 years agoblkid: convert superblocks to new calling convention
Hannes Reinecke [Thu, 20 Mar 2014 10:03:50 +0000 (11:03 +0100)] 
blkid: convert superblocks to new calling convention

With the previous patch the scanning functions were
modified to return a differentiated return code.
To correctly abort scanning when an I/O error occurs
we need to differentiate between 'error' (= -1) and
'not found' (= 1) in the probe functions.
This patch updates all superblock scanning functions
to the new calling convention.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoblkid: stop scanning on I/O error
Hannes Reinecke [Thu, 20 Mar 2014 10:03:49 +0000 (11:03 +0100)] 
blkid: stop scanning on I/O error

Whenever we fail to read from a device it's pointless to
continue with probing; we should be failing immediately.
Otherwise the system will continue logging I/O errors.

This patch updates the probe functions to return the
negative error number on error and BLKID_PROBE_NONE
if not found.

[kzak@redhat.com: - fix s/return errno/return -errno/]

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: fix compile-time error fixes #59
Wolfgang Richter [Thu, 20 Mar 2014 02:42:40 +0000 (22:42 -0400)] 
cfdisk: fix compile-time error fixes #59

+ For compile to work also needs pull request #56 applied

11 years agounshare: include libmount.h to provide missing MS_* defines
Ruediger Meier [Mon, 17 Mar 2014 10:48:47 +0000 (11:48 +0100)] 
unshare: include libmount.h to provide missing MS_* defines

Since 6728ca10 we are using MS_PRIVATE and MS_REC which are not defined
in some systems's sys/mount.h.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: fix utmpdump/ipv6tobin for bigendian
Ruediger Meier [Sat, 15 Mar 2014 04:59:25 +0000 (04:59 +0000)] 
tests: fix utmpdump/ipv6tobin for bigendian

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: fix utmpdump/to-binary for bigendian
Ruediger Meier [Sat, 15 Mar 2014 03:02:26 +0000 (03:02 +0000)] 
tests: fix utmpdump/to-binary for bigendian

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: fix utmpdump/ipv6totxt for bigendian
Ruediger Meier [Sat, 15 Mar 2014 02:30:36 +0000 (02:30 +0000)] 
tests: fix utmpdump/ipv6totxt for bigendian

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: fix utmpdump/to-text for bigendian
Ruediger Meier [Sat, 15 Mar 2014 02:20:41 +0000 (02:20 +0000)] 
tests: fix utmpdump/to-text for bigendian

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: swaplabel needs to respect pagesize
Ruediger Meier [Fri, 14 Mar 2014 23:57:47 +0000 (00:57 +0100)] 
tests: swaplabel needs to respect pagesize

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agocfdisk: fix typo (undeclared variable since b1f58330)
Ruediger Meier [Fri, 14 Mar 2014 12:00:01 +0000 (13:00 +0100)] 
cfdisk: fix typo (undeclared variable since b1f58330)

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: try hard to create swaplabel's test image
Ruediger Meier [Thu, 13 Mar 2014 15:42:49 +0000 (16:42 +0100)] 
tests: try hard to create swaplabel's test image

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotravis-ci: abort if make check fails
Ruediger Meier [Thu, 13 Mar 2014 11:05:10 +0000 (12:05 +0100)] 
travis-ci: abort if make check fails

make check should work now on current travis build image.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agoipcs: fix memleak in ipc_*_get_info functions
Ruediger Meier [Thu, 13 Mar 2014 08:20:50 +0000 (09:20 +0100)] 
ipcs: fix memleak in ipc_*_get_info functions

In case of error (maxid < 0) we do not enter following for loop. It will
return 0 and free the structs afterwards because i is still 0.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agoipcs: fix ipc_sem_get_info fallback case
Ruediger Meier [Thu, 13 Mar 2014 08:07:44 +0000 (09:07 +0100)] 
ipcs: fix ipc_sem_get_info fallback case

"ipcs -s -i n" (case id >= 0) was broken since v2.22-254-g1e2418a if /sys
is not usable.

See also comments for commit "ipcs: fix ipc_msg_get_info fallback case".

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agoipcs: fix ipc_shm_get_info fallback case
Ruediger Meier [Wed, 12 Mar 2014 21:46:15 +0000 (22:46 +0100)] 
ipcs: fix ipc_shm_get_info fallback case

"ipcs -m -i n" (case id >= 0) was broken since v2.22-251-g61e14b4 if /sys
is not usable.

See also comments for commit "ipcs: fix ipc_msg_get_info fallback case".

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agoipcs: fix ipc_msg_get_info fallback case
Ruediger Meier [Wed, 12 Mar 2014 13:53:20 +0000 (14:53 +0100)] 
ipcs: fix ipc_msg_get_info fallback case

"ipcs -q" (case id < 0) was broken since v2.22-256-g35118df if /sys
is not usable. The main issue was that the use of msqid argument did not
cleanly distinguished between "queue identifier" and "index of kernel's
internal array".

Also now the fallback case and the regular case behave more equally
regarding it's return value (introducing another counter j).

Note that the case id >= 0 now performs a slower lookup. This could be
avoided but then we would better handle both case differently like it
was before the above mentioned cleanup commit.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agobuild-sys: libmount/python/__init__.py is always a dist file
Ruediger Meier [Thu, 13 Mar 2014 14:08:13 +0000 (15:08 +0100)] 
build-sys: libmount/python/__init__.py is always a dist file

"make dist" and "make distcheck" should work after a bare
./configure to give us a full featured tar ball.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: return error if failures file not usable
Ruediger Meier [Thu, 13 Mar 2014 16:40:16 +0000 (17:40 +0100)] 
tests: return error if failures file not usable

In past this could happen when doing make distcheck.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: write tests/failures to build- instead of srcdir
Ruediger Meier [Thu, 13 Mar 2014 13:35:59 +0000 (14:35 +0100)] 
tests: write tests/failures to build- instead of srcdir

All other test output goes to builddir too and moreover "make distcheck"
complains about writing to it's read-only srcdir.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agoinclude/closestream: don't wipe errno on EPIPE
Karel Zak [Thu, 13 Mar 2014 11:41:03 +0000 (12:41 +0100)] 
include/closestream: don't wipe errno on EPIPE

... the code in close_stdout() is sensitive to EPIPE, so
wipe errno is close_stream() is probably bad idea.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodmesg: don't report EPIPE
Karel Zak [Thu, 13 Mar 2014 11:39:09 +0000 (12:39 +0100)] 
dmesg: don't report EPIPE

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoclean up redundant macros and defines
Ondrej Oprala [Thu, 13 Mar 2014 10:53:31 +0000 (11:53 +0100)] 
clean up redundant macros and defines

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibfdisk: use include/debug.h
Ondrej Oprala [Thu, 13 Mar 2014 10:10:20 +0000 (11:10 +0100)] 
libfdisk: use include/debug.h

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibblkid: use include/debug.h
Ondrej Oprala [Thu, 13 Mar 2014 10:04:20 +0000 (11:04 +0100)] 
libblkid: use include/debug.h

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibfdisk: (gpt) use entry attributes as bitmap
Karel Zak [Thu, 13 Mar 2014 10:08:01 +0000 (11:08 +0100)] 
libfdisk: (gpt) use entry attributes as bitmap

 * care about endianess
 * don't use by compiler packed struct with bit array for GPT
   attributes, it's more robust use it as bitmap stored in uint64_t.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: add basic test case for ipcs -m -i n
Ruediger Meier [Wed, 12 Mar 2014 19:49:57 +0000 (20:49 +0100)] 
tests: add basic test case for ipcs -m -i n

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: add basic test case for ipcs -s -i n
Ruediger Meier [Wed, 12 Mar 2014 19:42:29 +0000 (20:42 +0100)] 
tests: add basic test case for ipcs -s -i n

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: add basic test case for ipcs -q -i n
Ruediger Meier [Thu, 13 Mar 2014 08:57:19 +0000 (09:57 +0100)] 
tests: add basic test case for ipcs -q -i n

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agotests: quote generated arguments for ipcrm
Ruediger Meier [Wed, 12 Mar 2014 19:03:06 +0000 (20:03 +0100)] 
tests: quote generated arguments for ipcrm

In case that awk fails to parse out the right id the next
ipc command will give us a clear error message instead of
telling us to use correct syntax.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agolibmount: further debug.h integration
Ondrej Oprala [Thu, 13 Mar 2014 09:53:16 +0000 (10:53 +0100)] 
libmount: further debug.h integration

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibcommon: don't mention lib versions in debug macros
Ondrej Oprala [Thu, 13 Mar 2014 09:42:11 +0000 (10:42 +0100)] 
libcommon: don't mention lib versions in debug macros

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agoipcs: cleanup jumplabel stlyes
Ruediger Meier [Thu, 13 Mar 2014 08:28:40 +0000 (09:28 +0100)] 
ipcs: cleanup jumplabel stlyes

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
11 years agolibcommon: define more debugging macros
Ondrej Oprala [Wed, 12 Mar 2014 14:40:40 +0000 (15:40 +0100)] 
libcommon: define more debugging macros

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibblkid: convert GPT attributes to host endianess
Karel Zak [Wed, 12 Mar 2014 14:09:02 +0000 (15:09 +0100)] 
libblkid: convert GPT attributes to host endianess

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibmount: use macros from include/debug.h
Ondrej Oprala [Wed, 12 Mar 2014 13:37:58 +0000 (14:37 +0100)] 
libmount: use macros from include/debug.h

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibcommon: add common debugging routines
Ondrej Oprala [Tue, 11 Mar 2014 10:27:13 +0000 (11:27 +0100)] 
libcommon: add common debugging routines

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
11 years agolibfdisk: update GPT partition types
Karel Zak [Wed, 12 Mar 2014 12:52:01 +0000 (13:52 +0100)] 
libfdisk: update GPT partition types

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agomount: update XFS mount.8 allocsize=
Karel Zak [Wed, 12 Mar 2014 11:25:23 +0000 (12:25 +0100)] 
mount: update XFS mount.8 allocsize=

Reported-by: Satoru Takeuchi
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: avoid two compiler warnings about wrong print formats
Benno Schulenberg [Thu, 13 Feb 2014 20:36:43 +0000 (21:36 +0100)] 
libfdisk: avoid two compiler warnings about wrong print formats

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: add a new command boilerplate code
Sami Kerola [Sat, 8 Mar 2014 17:01:56 +0000 (11:01 -0600)] 
docs: add a new command boilerplate code

Having howtos is good, having an working code that can be used as-is to
kickstart a write of a new command is better.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agobuild-sys: sort gitignore files
Sami Kerola [Sat, 8 Mar 2014 17:01:55 +0000 (11:01 -0600)] 
build-sys: sort gitignore files

Use 'LC_ALL=C sort -fu' order for all lists.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agotests: check swaplabel, and perform more swapon boundary tests
Sami Kerola [Sat, 8 Mar 2014 17:01:54 +0000 (11:01 -0600)] 
tests: check swaplabel, and perform more swapon boundary tests

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agomkswap: remove unnecessary usage output
Sami Kerola [Sat, 8 Mar 2014 17:01:53 +0000 (11:01 -0600)] 
mkswap: remove unnecessary usage output

The usage output changes too often making unnecessarily expected output
in test unstable.  Besides in this case the usage ouput does not even
help user, because invalid swap target size error cannot be fixed by
specificing an option.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agotests: cleanup fallocate
Karel Zak [Wed, 12 Mar 2014 10:02:15 +0000 (11:02 +0100)] 
tests: cleanup fallocate

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoMerge branch 'master' of https://github.com/rudimeier/util-linux
Karel Zak [Wed, 12 Mar 2014 09:55:47 +0000 (10:55 +0100)] 
Merge branch 'master' of https://github.com/rudimeier/util-linux

* 'master' of https://github.com/rudimeier/util-linux:
  tests, skip fallocate for unsupported filesystems

11 years agolib/colors: care about colors only on tty()
Karel Zak [Wed, 12 Mar 2014 08:27:10 +0000 (09:27 +0100)] 
lib/colors: care about colors only on tty()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibblkid: improve comment
Karel Zak [Wed, 12 Mar 2014 08:11:36 +0000 (09:11 +0100)] 
libblkid: improve comment

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests, skip fallocate for unsupported filesystems
Ruediger Meier [Tue, 11 Mar 2014 14:53:19 +0000 (15:53 +0100)] 
tests, skip fallocate for unsupported filesystems

11 years agotests: refresh fdisk outputs
Karel Zak [Tue, 11 Mar 2014 12:00:41 +0000 (13:00 +0100)] 
tests: refresh fdisk outputs

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/strutils: fix parse_size() return code
Karel Zak [Tue, 11 Mar 2014 11:59:42 +0000 (12:59 +0100)] 
lib/strutils: fix parse_size() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: update fdisk MBR and SUN tests
Karel Zak [Tue, 11 Mar 2014 11:35:44 +0000 (12:35 +0100)] 
tests: update fdisk MBR and SUN tests

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (bsd) fix output
Karel Zak [Tue, 11 Mar 2014 11:33:30 +0000 (12:33 +0100)] 
libfdisk: (bsd) fix output

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: follow terminal-colors.d
Karel Zak [Tue, 11 Mar 2014 11:22:35 +0000 (12:22 +0100)] 
cfdisk: follow terminal-colors.d

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: follow requested size rather than use all available space
Karel Zak [Tue, 11 Mar 2014 11:16:14 +0000 (12:16 +0100)] 
libfdisk: follow requested size rather than use all available space

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/colors: fix colors test
Karel Zak [Tue, 11 Mar 2014 10:51:38 +0000 (11:51 +0100)] 
lib/colors: fix colors test

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: fix colors initialization
Karel Zak [Tue, 11 Mar 2014 10:49:52 +0000 (11:49 +0100)] 
cfdisk: fix colors initialization

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: add note about colors to the man page
Karel Zak [Tue, 11 Mar 2014 10:40:00 +0000 (11:40 +0100)] 
fdisk: add note about colors to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: fix slang usage
Karel Zak [Mon, 10 Mar 2014 13:44:50 +0000 (14:44 +0100)] 
cfdisk: fix slang usage

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: ove fdisks to disk-utils
Karel Zak [Mon, 10 Mar 2014 13:15:36 +0000 (14:15 +0100)] 
build-sys: ove fdisks to disk-utils

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: merge fdisk-ask.c to fdisk.c
Karel Zak [Mon, 10 Mar 2014 12:55:43 +0000 (13:55 +0100)] 
fdisk: merge fdisk-ask.c to fdisk.c

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agosfdisk: merge partname.c
Karel Zak [Mon, 10 Mar 2014 12:36:22 +0000 (13:36 +0100)] 
sfdisk: merge partname.c

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: refresh man page
Karel Zak [Mon, 10 Mar 2014 12:21:39 +0000 (13:21 +0100)] 
cfdisk: refresh man page

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: update table index when out of range
Karel Zak [Mon, 10 Mar 2014 10:57:26 +0000 (11:57 +0100)] 
cfdisk: update table index when out of range

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (sun) add info about whole-disk partition
Karel Zak [Fri, 7 Mar 2014 12:54:17 +0000 (13:54 +0100)] 
libfdisk: (sun) add info about whole-disk partition

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: fix header
Karel Zak [Fri, 7 Mar 2014 12:44:31 +0000 (13:44 +0100)] 
cfdisk: fix header

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (sgi) cleanup, add infor about whole-disk partition
Karel Zak [Fri, 7 Mar 2014 12:44:12 +0000 (13:44 +0100)] 
libfdisk: (sgi) cleanup, add infor about whole-disk partition

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: don't count special whole-disk partitions
Karel Zak [Fri, 7 Mar 2014 12:43:39 +0000 (13:43 +0100)] 
libfdisk: don't count special whole-disk partitions

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agocfdisk: coding style, comments, etc.
Karel Zak [Fri, 7 Mar 2014 12:14:51 +0000 (13:14 +0100)] 
cfdisk: coding style, comments, etc.

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