]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
10 years agofdformat: fixing copy'n'paste issue in the manual
Jaromir Capik [Mon, 8 Sep 2014 17:42:10 +0000 (19:42 +0200)] 
fdformat: fixing copy'n'paste issue in the manual

The end track default is media specific, not zero.

10 years agotravis: whitelist branches
Karel Zak [Tue, 9 Sep 2014 13:53:37 +0000 (15:53 +0200)] 
travis: whitelist branches

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolsblk: add notes about udev to the man page
Karel Zak [Fri, 5 Sep 2014 08:02:45 +0000 (10:02 +0200)] 
lsblk: add notes about udev to the man page

Reported-by: Francis Moreau <francis.moro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: create parent directory for $(PATHFILES)
Michael Marineau [Wed, 3 Sep 2014 03:39:28 +0000 (20:39 -0700)] 
build-sys: create parent directory for $(PATHFILES)

When building outside the source tree there is nothing to guarantee the
target directory exists before writing to it. Most of the time this just
happens to work because something else creates the directory but not
always. For example:

    $ mkdir build
    $ cd build
    $ ../configure --disable-dependency-tracking
    $ make libuuid/uuid.pc
      GEN      libuuid/uuid.pc
    /bin/sh: line 2: libuuid/uuid.pc.tmp: No such file or directory
    make: *** [libuuid/uuid.pc] Error 1

10 years agolibfdisk: add support for sfdisk-like script format
Karel Zak [Tue, 2 Sep 2014 11:51:32 +0000 (13:51 +0200)] 
libfdisk: add support for sfdisk-like script format

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (gpt) follow label-id from script
Karel Zak [Mon, 1 Sep 2014 13:01:34 +0000 (15:01 +0200)] 
libfdisk: (gpt) follow label-id from script

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: add functions to apply partitiong scripts
Karel Zak [Mon, 1 Sep 2014 12:44:39 +0000 (14:44 +0200)] 
libfdisk: add functions to apply partitiong scripts

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (gpt) don't align last possible LBA
Karel Zak [Mon, 1 Sep 2014 12:42:12 +0000 (14:42 +0200)] 
libfdisk: (gpt) don't align last possible LBA

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: rename fdisk_dump_ to fdisk_script_
Karel Zak [Mon, 1 Sep 2014 09:16:21 +0000 (11:16 +0200)] 
libfdisk: rename fdisk_dump_ to fdisk_script_

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: fix fdisk_delete_all_partitions()
Karel Zak [Mon, 1 Sep 2014 09:14:18 +0000 (11:14 +0200)] 
libfdisk: fix fdisk_delete_all_partitions()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: add fdisk_apply_table() and fdisk_delete_all_partitions()
Karel Zak [Fri, 29 Aug 2014 09:18:29 +0000 (11:18 +0200)] 
libfdisk: add fdisk_apply_table() and fdisk_delete_all_partitions()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: improve debug messages
Karel Zak [Fri, 29 Aug 2014 07:57:51 +0000 (09:57 +0200)] 
libfdisk: improve debug messages

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: accept dump with quotes
Karel Zak [Fri, 29 Aug 2014 07:55:31 +0000 (09:55 +0200)] 
libfdisk: accept dump with quotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (dos) follow bootable setting when add partition
Karel Zak [Fri, 29 Aug 2014 07:19:13 +0000 (09:19 +0200)] 
libfdisk: (dos) follow bootable setting when add partition

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (gpt) allow to specify uuid and name when create new partition
Karel Zak [Thu, 28 Aug 2014 12:42:55 +0000 (14:42 +0200)] 
libfdisk: (gpt) allow to specify uuid and name when create new partition

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (gpt) set_{name,uuid} functions refactoring
Karel Zak [Thu, 28 Aug 2014 12:16:56 +0000 (14:16 +0200)] 
libfdisk: (gpt) set_{name,uuid} functions refactoring

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: add reference to context to dump
Karel Zak [Thu, 28 Aug 2014 11:03:23 +0000 (13:03 +0200)] 
libfdisk: add reference to context to dump

 * add fdisk_ref_context() function

 * context is necessary to parse label specific partition types

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: use reference counting for context
Karel Zak [Thu, 28 Aug 2014 10:49:16 +0000 (12:49 +0200)] 
libfdisk: use reference counting for context

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: extend dump parsing function
Karel Zak [Thu, 28 Aug 2014 10:37:46 +0000 (12:37 +0200)] 
libfdisk: extend dump parsing function

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (dos) fix typo
Karel Zak [Thu, 28 Aug 2014 08:45:58 +0000 (10:45 +0200)] 
libfdisk: (dos) fix typo

Reported-by: https://github.com/Mikachu
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoinclude/optutils: fix typo
Karel Zak [Thu, 28 Aug 2014 06:39:54 +0000 (08:39 +0200)] 
include/optutils: fix typo

Reported-by: Rafael Ferreira <rafael.f.f1@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: fix typo in the previous commit
Karel Zak [Tue, 26 Aug 2014 20:19:11 +0000 (22:19 +0200)] 
cfdisk: fix typo in the previous commit

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: wrong interpretation of yes in non-english language
Karel Zak [Tue, 26 Aug 2014 15:03:11 +0000 (17:03 +0200)] 
cfdisk: wrong interpretation of yes in non-english language

Reported-by: tnut@nutyx.org
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (dos) fix logical partitions add/delete code
Karel Zak [Tue, 26 Aug 2014 14:35:16 +0000 (16:35 +0200)] 
libfdisk: (dos) fix logical partitions add/delete code

If you delete logical partition and then create a new one than fdisk
(and cfdisk) might write EBR to the first sector on the device. That's
wrong of course; because you will lost MBR (primary partitions).

(Probably introduced by commit bcddbe96882b88d53b6bc0495e7322c0820a5122
 where code completely clears EBR stuff.)

Reported-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: vary basic dump parsing functions
Karel Zak [Mon, 25 Aug 2014 13:33:02 +0000 (15:33 +0200)] 
libfdisk: vary basic dump parsing functions

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: move string trim function to strutils.h
Karel Zak [Mon, 25 Aug 2014 13:31:53 +0000 (15:31 +0200)] 
libblkid: move string trim function to strutils.h

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: basic fdisk_dump_* functions
Karel Zak [Fri, 22 Aug 2014 12:43:52 +0000 (14:43 +0200)] 
libfdisk: basic fdisk_dump_* functions

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: remove debug dump function, cleanup API
Karel Zak [Fri, 22 Aug 2014 08:25:35 +0000 (10:25 +0200)] 
libfdisk: remove debug dump function, cleanup API

The fdisk_dump_* prefix will be used for sfdisk-like functionality.
The patch also add FDISK_ prefix to fdisk_get_unit() options.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agomountpoint: clarify that it works on files
Dave Reisner [Thu, 21 Aug 2014 16:16:57 +0000 (12:16 -0400)] 
mountpoint: clarify that it works on files

fef4dfa174 removed the restriction that the argument must explicitly be
a directory, so let's fix up the documentation to reflect that.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agomountpoint: drop S_ISDIR check
Dave Reisner [Thu, 21 Aug 2014 12:48:12 +0000 (08:48 -0400)] 
mountpoint: drop S_ISDIR check

Files can be mountpoints, too.

10 years agolibmount: use -t for type.subtype in helpers API
Karel Zak [Thu, 21 Aug 2014 12:58:40 +0000 (14:58 +0200)] 
libmount: use -t for type.subtype in helpers API

References: https://github.com/karelzak/util-linux/issues/116
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agotests: apply travis clang PATH workaround
Sami Kerola [Wed, 20 Aug 2014 19:06:58 +0000 (22:06 +0300)] 
tests: apply travis clang PATH workaround

As seen in Travis build log the clang is not found, causing one of the
tests to fail.  This change adds a workaround from Travis issue 2607 to
util-linux.

Reference: https://travis-ci.org/karelzak/util-linux/jobs/33056101#L3630
Reference: https://github.com/travis-ci/travis-ci/issues/2607
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agologger: use generic --id=<id>
Karel Zak [Wed, 20 Aug 2014 10:24:40 +0000 (12:24 +0200)] 
logger: use generic --id=<id>

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoMerge remote-tracking branch 'sami/logger'
Karel Zak [Wed, 20 Aug 2014 10:09:38 +0000 (12:09 +0200)] 
Merge remote-tracking branch 'sami/logger'

10 years agolibfdisk: fix fdisk_get_optimal_iosize() and update tests
Karel Zak [Wed, 20 Aug 2014 09:43:02 +0000 (11:43 +0200)] 
libfdisk: fix fdisk_get_optimal_iosize() and update tests

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agotests: fix fdisk/bsd for the two possible sectors/offsets
Aurelien Jarno [Thu, 14 Aug 2014 22:26:24 +0000 (00:26 +0200)] 
tests: fix fdisk/bsd for the two possible sectors/offsets

BSD disklabels depend on the endianess, but also on the architecture as
one can see in include/pt-bsd.h with the BSD_LABELSECTOR and
BSD_LABELOFFSET #define. This cause the testsuite to fail on the
affected architectures as the disk image is not the same as the expected
result.

Commit 180b3a7e tried to fix the endianess, but the special PowerPC case
has been chosen as a reference, so it still fails for example on MIPS BE
or S/390.

This patch fixes the testsuite by converting the md5sums to the expected
values, still depending on the endianess, but also for the two possible
sectors/offsets. This has been tested on Alpha, MIPS, PowerPC and x86-64,
so this should cover all 4 cases.

Cc: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
10 years agodocs: bring the chrt and taskset man pages closer to standard formatting
Benno Schulenberg [Tue, 12 Aug 2014 20:15:18 +0000 (22:15 +0200)] 
docs: bring the chrt and taskset man pages closer to standard formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agotextual: make the license of chrt and taskset slightly more explicit
Benno Schulenberg [Tue, 12 Aug 2014 20:15:17 +0000 (22:15 +0200)] 
textual: make the license of chrt and taskset slightly more explicit

This makes it match the license of the man pages.
While there, also tweak some other comment lines.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: make the man-page licenses of chrt and taskset match their intent
Benno Schulenberg [Tue, 12 Aug 2014 20:15:16 +0000 (22:15 +0200)] 
docs: make the man-page licenses of chrt and taskset match their intent

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: improve the description of --size in the man page of zramctl
Benno Schulenberg [Mon, 11 Aug 2014 20:23:39 +0000 (22:23 +0200)] 
docs: improve the description of --size in the man page of zramctl

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: mentintion default udp and tcp ports logger is using
Sami Kerola [Sat, 9 Aug 2014 08:09:16 +0000 (09:09 +0100)] 
docs: mentintion default udp and tcp ports logger is using

The fact that 'syslog tcp/514' does not exist in RFS's, which has lead
to 'syslog-conn 601/tcp' be used in place could be a suprice and should
be told in manual.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agologger: set function arguments read-only when possible
Sami Kerola [Sat, 9 Aug 2014 07:57:51 +0000 (08:57 +0100)] 
logger: set function arguments read-only when possible

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agologger: optimize string initializations
Sami Kerola [Sat, 9 Aug 2014 07:38:58 +0000 (08:38 +0100)] 
logger: optimize string initializations

Setting whole array to be completely full of nulls cannot be as quick as
making the only significant member of the array when needed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agologger: remove openlog(3) options
Sami Kerola [Sat, 9 Aug 2014 00:04:50 +0000 (01:04 +0100)] 
logger: remove openlog(3) options

One variable less, and more importantly bit operations become unnecessary
in if statements.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agologger: allow use of --id=ppid when logging locally
Sami Kerola [Fri, 8 Aug 2014 23:49:46 +0000 (00:49 +0100)] 
logger: allow use of --id=ppid when logging locally

There is no obvious way to make syslog(3) to print both pid or ppid, so
duplicate the libc syslog() to logger.  Making the ppid printing work
using unix socket has side effect of local becoming capable to use both
rfc format output, which is hopefully seen as good thing.  The
syslog_local() is format wise one-to-one copy with glibc syslog(3)
format.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agofdisk: add independent debug stuff
Karel Zak [Fri, 15 Aug 2014 10:38:02 +0000 (12:38 +0200)] 
fdisk: add independent debug stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: move fdisk_ask_partnum() to API
Karel Zak [Fri, 15 Aug 2014 10:34:42 +0000 (12:34 +0200)] 
libfdisk: move fdisk_ask_partnum() to API

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: use libfdisk public API only
Karel Zak [Fri, 15 Aug 2014 10:16:55 +0000 (12:16 +0200)] 
fdisk: use libfdisk public API only

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: add geometry to API, cleanup
Karel Zak [Fri, 15 Aug 2014 10:16:27 +0000 (12:16 +0200)] 
libfdisk: add geometry to API, cleanup

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: use only public libfdisk API
Karel Zak [Fri, 15 Aug 2014 08:50:33 +0000 (10:50 +0200)] 
cfdisk: use only public libfdisk API

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: fdisk_label_is_labeltype()
Karel Zak [Fri, 15 Aug 2014 08:49:51 +0000 (10:49 +0200)] 
libfdisk: fdisk_label_is_labeltype()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: more docs
Karel Zak [Thu, 14 Aug 2014 19:04:01 +0000 (21:04 +0200)] 
libfdisk: more docs

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: final parttype API cleanup
Karel Zak [Thu, 14 Aug 2014 11:28:37 +0000 (13:28 +0200)] 
libfdisk: final parttype API cleanup

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: move get_parttypes to label API
Karel Zak [Thu, 14 Aug 2014 10:01:38 +0000 (12:01 +0200)] 
libfdisk: move get_parttypes to label API

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (gpt) allow to specify attr bit by API
Karel Zak [Thu, 14 Aug 2014 09:33:46 +0000 (11:33 +0200)] 
libfdisk: (gpt) allow to specify attr bit by API

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: make it possible to get fields for all labes
Karel Zak [Wed, 13 Aug 2014 22:27:28 +0000 (00:27 +0200)] 
libfdisk: make it possible to get fields for all labes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: cleanup label geometry API
Karel Zak [Wed, 13 Aug 2014 22:09:48 +0000 (00:09 +0200)] 
libfdisk: cleanup label geometry API

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: cleanup fdisk_is_label stuff
Karel Zak [Wed, 13 Aug 2014 21:57:54 +0000 (23:57 +0200)] 
libfdisk: cleanup fdisk_is_label stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: clean up API (alignment.c)
Karel Zak [Wed, 13 Aug 2014 21:27:00 +0000 (23:27 +0200)] 
libfdisk: clean up API (alignment.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: clean up API (context.c)
Karel Zak [Wed, 13 Aug 2014 20:26:53 +0000 (22:26 +0200)] 
libfdisk: clean up API (context.c)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: add libfdisk independent debug stuff
Karel Zak [Wed, 13 Aug 2014 19:21:46 +0000 (21:21 +0200)] 
cfdisk: add libfdisk independent debug stuff

Now it's possible to use
CFDISK_DEBUG=0xffff ./cfdisk
to debug only cfdisk UI.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agotests: add debug tests
Ondrej Oprala [Wed, 13 Aug 2014 12:36:45 +0000 (14:36 +0200)] 
tests: add debug tests

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
10 years agoinclude/debug: allow to speficy empty masknames
Karel Zak [Wed, 13 Aug 2014 12:19:21 +0000 (14:19 +0200)] 
include/debug: allow to speficy empty masknames

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoinclude/debug: cleanup masks
Karel Zak [Wed, 13 Aug 2014 12:13:32 +0000 (14:13 +0200)] 
include/debug: cleanup masks

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoinclude/debug: make masknames optional
Karel Zak [Wed, 13 Aug 2014 11:51:42 +0000 (13:51 +0200)] 
include/debug: make masknames optional

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibs/debug: accept human readable names for _DEBUG=
Ondrej Oprala [Thu, 31 Jul 2014 11:23:07 +0000 (13:23 +0200)] 
libs/debug: accept human readable names for _DEBUG=

For example
$ LIBMOUNT_DEBUG=tab,cache findmnt

to debug only TAB and CACHE subsystem.

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: rename fdisk_column to fdisk_field
Karel Zak [Wed, 13 Aug 2014 09:12:27 +0000 (11:12 +0200)] 
libfdisk: rename fdisk_column to fdisk_field

.. to make the API and fdisk(s) code more readable.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: remove dependence on libsmartcols
Karel Zak [Wed, 13 Aug 2014 08:10:11 +0000 (10:10 +0200)] 
libfdisk: remove dependence on libsmartcols

It's application business to convert libfdisk_table to string.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/colors: add function to return color from scheme
Karel Zak [Wed, 13 Aug 2014 08:09:08 +0000 (10:09 +0200)] 
lib/colors: add function to return color from scheme

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: (gpt) fix PT offset
Karel Zak [Mon, 11 Aug 2014 13:59:04 +0000 (15:59 +0200)] 
libblkid: (gpt) fix PT offset

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoFix bash-completion Makemodule options
Stanislav Brabec [Fri, 8 Aug 2014 17:30:55 +0000 (19:30 +0200)] 
Fix bash-completion Makemodule options

10 years agotests: make ipcs limit calculations work when numbers are large
Sami Kerola [Wed, 6 Aug 2014 22:04:31 +0000 (23:04 +0100)] 
tests: make ipcs limit calculations work when numbers are large

Test suite  failed when I ran it with kernel 3.16.  Error is the
following.

tests/ts/ipcs/limits2: line 31: [: 18446744073692774399: integer expression expected

Reference: http://lkml.iu.edu/hypermail/linux/kernel/1406.0/01869.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agoswapon: remove invalid error string print outs
Sami Kerola [Wed, 6 Aug 2014 20:52:18 +0000 (21:52 +0100)] 
swapon: remove invalid error string print outs

To avoid messages like this:

$ swapon /dev/zram0
swapon: /dev/zram0: read swap header failed: Success

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agotextual: remove some inconsistent periods from error messages
Benno Schulenberg [Wed, 6 Aug 2014 20:35:06 +0000 (22:35 +0200)] 
textual: remove some inconsistent periods from error messages

While doing so, also improve translatability and some wordings.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agolscpu: clean up vmware inline asm
Mike Frysinger [Tue, 5 Aug 2014 22:59:50 +0000 (18:59 -0400)] 
lscpu: clean up vmware inline asm

This code is not PIC clean which means it fails to build on hardened
32bit x86 systems (i.e. building as PIE).

While here, optimize the existing cpuid logic slightly.

URL: https://bugs.gentoo.org/518936
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agozramctl: improve option combination error messaging
Sami Kerola [Wed, 6 Aug 2014 09:35:30 +0000 (10:35 +0100)] 
zramctl: improve option combination error messaging

Use of --algorithm or --streams is not expected to work without
reseting device, that happens when --size is specified, so ensure the
former options to be combined with the later.

[kzak@redhat.com: - make it more generic]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agozramctl: add bash completion script
Sami Kerola [Sun, 3 Aug 2014 14:10:50 +0000 (15:10 +0100)] 
zramctl: add bash completion script

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agozramctl: cannonicalize devname when no fullpath specified
Karel Zak [Mon, 11 Aug 2014 12:39:46 +0000 (14:39 +0200)] 
zramctl: cannonicalize devname when no fullpath specified

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agozramctl: improve error message
Sami Kerola [Sun, 3 Aug 2014 12:42:32 +0000 (13:42 +0100)] 
zramctl: improve error message

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agozramctl: fail status printout when device does not exist
Karel Zak [Mon, 11 Aug 2014 12:26:20 +0000 (14:26 +0200)] 
zramctl: fail status printout when device does not exist

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agozramctl: add details to --size option documentation
Sami Kerola [Sat, 2 Aug 2014 17:43:42 +0000 (18:43 +0100)] 
zramctl: add details to --size option documentation

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: update tests and clean up output
Karel Zak [Fri, 8 Aug 2014 10:35:20 +0000 (12:35 +0200)] 
fdisk: update tests and clean up output

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: (gpt) use real sector size to set PTMAGIC_OFFSET
Karel Zak [Fri, 8 Aug 2014 09:56:06 +0000 (11:56 +0200)] 
libblkid: (gpt) use real sector size to set PTMAGIC_OFFSET

So stupid and 5 years old bug...

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: always print warning for mis-aligned partitions
Karel Zak [Fri, 8 Aug 2014 09:33:28 +0000 (11:33 +0200)] 
fdisk: always print warning for mis-aligned partitions

This patch restores the original fdisk behavior and always prints
information about misaligned partitions in 'p'print output.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: move curs_set(1) to ui_end()
Karel Zak [Wed, 6 Aug 2014 13:39:27 +0000 (15:39 +0200)] 
cfdisk: move curs_set(1) to ui_end()

This is probably correct to have curs_set() in ui_end(), but according
to Martin it does not work with slang library from signal handler.

Reported-by: Martin Steigerwald <Martin@lichtvoll.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agozramctl: remove extra \n from usage()
Karel Zak [Wed, 6 Aug 2014 12:55:42 +0000 (14:55 +0200)] 
zramctl: remove extra \n from usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: fix inconsistencies in man pages
Steven Honeyman [Sun, 3 Aug 2014 15:22:24 +0000 (16:22 +0100)] 
docs: fix inconsistencies in man pages

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoMerge branch 'master' of https://github.com/entertainyou/util-linux
Karel Zak [Wed, 6 Aug 2014 07:04:29 +0000 (09:04 +0200)] 
Merge branch 'master' of https://github.com/entertainyou/util-linux

10 years agozramctl: fix typo
Karel Zak [Wed, 6 Aug 2014 07:02:09 +0000 (09:02 +0200)] 
zramctl: fix typo

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agohexdump: Fix parse format of "byte count without repetition count"
HUANG Wei [Wed, 6 Aug 2014 04:20:18 +0000 (12:20 +0800)] 
hexdump: Fix parse format of "byte count without repetition count"

10 years agozramctl: fix typo
Karel Zak [Tue, 5 Aug 2014 13:47:36 +0000 (15:47 +0200)] 
zramctl: fix typo

Reported-by: Steven Honeyman
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoMerge branch 'master' of https://github.com/ottxor/util-linux
Karel Zak [Tue, 5 Aug 2014 13:39:32 +0000 (15:39 +0200)] 
Merge branch 'master' of https://github.com/ottxor/util-linux

10 years agodocs: improve the wording and formatting of the zramctl man page
Benno Schulenberg [Fri, 1 Aug 2014 12:19:08 +0000 (14:19 +0200)] 
docs: improve the wording and formatting of the zramctl man page

Especially fix the mistaken short option -h for --noheadings.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agozramctl: fix the wording of some message strings
Benno Schulenberg [Fri, 1 Aug 2014 12:19:07 +0000 (14:19 +0200)] 
zramctl: fix the wording of some message strings

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agotests: kill output message change
Sami Kerola [Thu, 31 Jul 2014 22:05:25 +0000 (23:05 +0100)] 
tests: kill output message change

Commit 09af3db48e01e5744f15fd8a2395e0fed36526ea changed how a missing
process is reported, which caused kill test to fail when the test suite
is ran as root.

Reference: https://travis-ci.org/karelzak/util-linux/jobs/31312170
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agodocs: restore the mention of uhelper= and helper= in man page of umount
Benno Schulenberg [Thu, 31 Jul 2014 20:43:29 +0000 (22:43 +0200)] 
docs: restore the mention of uhelper= and helper= in man page of umount

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agobuild-sys: fix double prefix with explict --libdir
Christoph Junghans [Fri, 1 Aug 2014 17:37:08 +0000 (11:37 -0600)] 
build-sys: fix double prefix with explict --libdir

* with configure --prefix=$HOME --libdir=$HOME usrlib_execdir
  ends up being ${exec_prefix}/${libbir}, which is double-prefixed

* fix: use explict given ${libbir} if is matches ${prefix}/*

Signed-off-by: Christoph Junghans <ottxor@gentoo.org>
11 years agozrmactl: add new command to control /dev/zramN devices
Karel Zak [Fri, 1 Aug 2014 10:09:55 +0000 (12:09 +0200)] 
zrmactl: add new command to control /dev/zramN devices

Co-Author: Timofey Titovets <nefelim4ag@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/ismounted: make it more compatible with lsblk output
Karel Zak [Fri, 1 Aug 2014 10:09:33 +0000 (12:09 +0200)] 
lib/ismounted: make it more compatible with lsblk output

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/sysfs: allow to write to sysfs attributes
Karel Zak [Fri, 1 Aug 2014 10:08:44 +0000 (12:08 +0200)] 
lib/sysfs: allow to write to sysfs attributes

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