Commit Graph

8395 Commits

Author SHA1 Message Date
Karel Zak 413b91d190 libblkid: (gpt) fix PT offset
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-11 15:59:04 +02:00
Stanislav Brabec fe122a5225 Fix bash-completion Makemodule options 2014-08-11 14:52:04 +02:00
Sami Kerola 3a9ec12d66 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>
2014-08-11 14:52:01 +02:00
Sami Kerola 3077ff49f3 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>
2014-08-11 14:51:56 +02:00
Benno Schulenberg 1d23119072 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>
2014-08-11 14:51:54 +02:00
Mike Frysinger 7845b91dbc 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>
2014-08-11 14:51:53 +02:00
Sami Kerola 1fa6c3e0b9 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>
2014-08-11 14:47:08 +02:00
Sami Kerola 2b0c19b03c zramctl: add bash completion script
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-08-11 14:40:14 +02:00
Karel Zak 342436c66a zramctl: cannonicalize devname when no fullpath specified
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-11 14:39:46 +02:00
Sami Kerola 929c7b2817 zramctl: improve error message
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-08-11 14:27:13 +02:00
Karel Zak 116c9ce23d zramctl: fail status printout when device does not exist
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-11 14:26:20 +02:00
Sami Kerola ef567176b1 zramctl: add details to --size option documentation
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-11 13:58:35 +02:00
Karel Zak 4fdde144f0 fdisk: update tests and clean up output
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-08 12:35:20 +02:00
Karel Zak 8d8a02398a 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>
2014-08-08 11:57:19 +02:00
Karel Zak c9400a1ea7 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>
2014-08-08 11:33:28 +02:00
Karel Zak cd8414f7a1 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>
2014-08-06 15:39:27 +02:00
Karel Zak 423c0d75ec zramctl: remove extra \n from usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-06 15:04:58 +02:00
Steven Honeyman 1b19ea31a3 docs: fix inconsistencies in man pages
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-06 14:50:20 +02:00
Karel Zak c52155aec5 Merge branch 'master' of https://github.com/entertainyou/util-linux 2014-08-06 09:04:29 +02:00
Karel Zak b07ca5160c zramctl: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-06 09:02:09 +02:00
HUANG Wei 82233c2a0a hexdump: Fix parse format of "byte count without repetition count" 2014-08-06 12:20:18 +08:00
Karel Zak 6ed7f01127 zramctl: fix typo
Reported-by: Steven Honeyman
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-05 15:47:36 +02:00
Karel Zak aacbd1533b Merge branch 'master' of https://github.com/ottxor/util-linux 2014-08-05 15:39:32 +02:00
Benno Schulenberg f0b3e6c2f9 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>
2014-08-05 15:37:42 +02:00
Benno Schulenberg 1c35e62517 zramctl: fix the wording of some message strings
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-08-05 15:37:41 +02:00
Sami Kerola 152635b182 tests: kill output message change
Commit 09af3db48e 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>
2014-08-05 15:37:38 +02:00
Benno Schulenberg 851c2bd55d docs: restore the mention of uhelper= and helper= in man page of umount
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-08-05 15:37:36 +02:00
Christoph Junghans b2b61efcfa 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>
2014-08-01 11:42:25 -06:00
Karel Zak 0624d8406b zrmactl: add new command to control /dev/zramN devices
Co-Author: Timofey Titovets <nefelim4ag@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-01 12:09:55 +02:00
Karel Zak d990deac55 lib/ismounted: make it more compatible with lsblk output
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-01 12:09:33 +02:00
Karel Zak 6c987ca9d7 lib/sysfs: allow to write to sysfs attributes
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-01 12:08:44 +02:00
Karel Zak f9afb37d1a Merge branch 'travis' of git://github.com/kerolasa/lelux-utiliteetit
* 'travis' of git://github.com/kerolasa/lelux-utiliteetit:
  tests: fix rename subdir check that was failing in travis
  build-sys: remove swap-common.h from sys-utils/Makemodule.am
2014-07-31 10:55:38 +02:00
Sergei Antonov 210d4595de libfdisk: (gpt) add Microsoft Storage Spaces GUID
Storage Spaces is Microsoft's logical volume management.
It has been around since Windows 8.

Cc: Karel Zak <kzak@redhat.com>
Signed-off-by: Sergei Antonov <saproj@gmail.com>
2014-07-31 10:50:42 +02:00
Sami Kerola a009e86e8e tests: fix rename subdir check that was failing in travis
Apparently some or all travis build servers has a bit older coreutils
version.  The coreutils v8.13 added a feature to readlink that allows
user to specify multiple arguments.  Earlier versions gave exactly the
type of error travis_script log has.

+readlink: extra operand `rename_aa/sublink.2'
+Try `readlink --help' for more information.

The commit 0f85e0535b introduced the travis
readlink issue, and has caused failures for 8 days in row (builds 192 -
213).

Reference: https://travis-ci.org/karelzak/util-linux/builds
Reviewed-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-07-31 07:11:57 +01:00
Sami Kerola 3d595f92c8 build-sys: remove swap-common.h from sys-utils/Makemodule.am
The commit 25a365e moved the file to include/

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-07-30 20:48:46 +01:00
Karel Zak 80b037cc6f fdformat: clean up usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-29 13:53:26 +02:00
Jaromir Capik e0402441a1 fdformat: Add new switches -f/--from, -t/--to, -r/--repair
This commit introduces a support for user configurable
from/to track and a basic repair mode for broken floppies.
It also fixes a recently introduced bug that causes
a line breakage when printing the track number.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-29 13:44:04 +02:00
Karel Zak 426ee7cb78 docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-29 13:17:35 +02:00
Karel Zak 47f42c1d14 nsenter: allow to use --set{uid,gid} for all namespaces
Now it's possible to set UID and GID for user namespaces only. This
patch removes this restriction and allow to use --set{uid,gid} in all
cases. The default for user namespaces is still GID=0, UID=0.

Reported-by: Tomas Doran <bobtfish@bobtfish.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-29 13:07:44 +02:00
Andreas Henriksson be0e5d2c55 tests: allow non-inotify tailf to keep up
When tailf is not using inotify, it seems to sleep for 0.25s between
checks. Just giving a 0.1s time window between update and removal of the
input file thus gives little chance for tailf to succeed.
Similar between startup and append to file, make sure initial
content is read before appending additional data by bumping the time.

This should possibly be bumped much larger to make sure that
the tailf process actually gets a chance to run at all in the
given time window. Otherwise it might fail on really slow/overloaded
machines.
The drawback would then ofcourse be to increase the time it takes
to run the testsuite.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
2014-07-29 12:18:22 +02:00
Benno Schulenberg b45413a860 docs: bring the runuser and su man pages closer to standard formatting
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-07-29 12:14:58 +02:00
Benno Schulenberg 75ca43bbb2 docs: give the man page of utmpdump the proper User Commands header
Also bring the formatting closer to standard.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-07-29 12:14:58 +02:00
Benno Schulenberg bf967a6cab docs: improve the formatting of the chfn and chsh man pages
Also fix a pasting mistake where the chfn man page suggested
to use ypchsh or lchsh for non-local entries.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-07-29 12:14:57 +02:00
Benno Schulenberg d6983300a2 docs: remove all mention of helper= and uhelper= from umount man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-07-29 12:14:57 +02:00
Benno Schulenberg ae4cc2adea docs: sort the options in the man pages of hwclock and uuidd
Also improve the formatting a bit.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-07-29 12:14:56 +02:00
Benno Schulenberg 61ef38eb1b docs: bring the rtcwake man page closer to standard formatting
Also sort the options alphabetically, and use the standard comma
instead of the vertical bar to separate short from long option.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-07-29 12:14:56 +02:00
Karel Zak 7eec45f2d8 logger: fix untranslated message
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-29 12:13:24 +02:00
Karel Zak 1042ce18df logger: require --{server,socket} to remote rfc542/rfc3164 log
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-29 12:08:47 +02:00
Karel Zak b928bb109a Revert "wall: wrap message header when it exceeds 79 characters"
This reverts commit 93d7baf250.

Ooops... it wasn't my plan to merge this patch. Sorry.
2014-07-29 11:57:01 +02:00
Karel Zak e598686d3c logger: fix -i=ppid
For short options (-i) the optional argument contains '='.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-29 11:49:00 +02:00