Karel Zak
e6d0c4c1ac
fdisk: add independent debug stuff
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-15 12:38:02 +02:00
Karel Zak
2ae3d038b9
libfdisk: move fdisk_ask_partnum() to API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-15 12:34:42 +02:00
Karel Zak
8eccde20dd
fdisk: use libfdisk public API only
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-15 12:16:55 +02:00
Karel Zak
1753a234a1
libfdisk: add geometry to API, cleanup
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-15 12:16:27 +02:00
Karel Zak
57c83d63e4
cfdisk: use only public libfdisk API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-15 10:50:33 +02:00
Karel Zak
4af064f3fc
libfdisk: fdisk_label_is_labeltype()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-15 10:49:51 +02:00
Karel Zak
5175ae8738
libfdisk: more docs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-14 21:04:01 +02:00
Karel Zak
a745611d69
libfdisk: final parttype API cleanup
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-14 13:28:37 +02:00
Karel Zak
5ab3760071
libfdisk: move get_parttypes to label API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-14 12:01:38 +02:00
Karel Zak
773aae5c51
libfdisk: (gpt) allow to specify attr bit by API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-14 11:33:46 +02:00
Karel Zak
11ee1177ff
libfdisk: make it possible to get fields for all labes
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-14 00:27:28 +02:00
Karel Zak
72d2965c44
libfdisk: cleanup label geometry API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-14 00:09:48 +02:00
Karel Zak
aa36c2cf2c
libfdisk: cleanup fdisk_is_label stuff
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 23:57:54 +02:00
Karel Zak
8d605c884a
libfdisk: clean up API (alignment.c)
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 23:27:00 +02:00
Karel Zak
6a6321360d
libfdisk: clean up API (context.c)
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 22:26:53 +02:00
Karel Zak
14620822c0
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>
2014-08-13 21:21:46 +02:00
Ondrej Oprala
143efbb911
tests: add debug tests
...
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-08-13 14:36:45 +02:00
Karel Zak
1e06330329
include/debug: allow to speficy empty masknames
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 14:19:21 +02:00
Karel Zak
03e4220d29
include/debug: cleanup masks
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 14:13:32 +02:00
Karel Zak
6d577b7089
include/debug: make masknames optional
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 13:51:42 +02:00
Ondrej Oprala
14ad2353cc
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>
2014-08-13 12:33:47 +02:00
Karel Zak
bd85d11fba
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>
2014-08-13 11:12:27 +02:00
Karel Zak
d44115f3b5
libfdisk: remove dependence on libsmartcols
...
It's application business to convert libfdisk_table to string.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 10:10:11 +02:00
Karel Zak
b8731ebcf2
lib/colors: add function to return color from scheme
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-08-13 10:09:08 +02:00
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