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
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
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
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
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
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
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
Andreas Henriksson
4f4daf8f90
cfdisk: reenable cursor when quitting
...
After quitting cfdisk (built with slang) the cursor would be
missing at the command prompt.
Reported-by: Martin Steigerwald <Martin@Lichtvoll.de>
Addresses-Debian-Bug: #755991
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
2014-07-28 11:09:56 +02:00
Benno Schulenberg
09af3db48e
textual: fix some typos and inconsistencies in various messages
...
Fixing plain typos, miswordings, inconsistent periods, some missing
angular brackets, and a proper pluralization (even when it involves
a constant, because for some languages the precise value matters).
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-07-23 08:56:00 +02:00
Benno Schulenberg
86407f2cae
cfdisk: actually translate the partition types in the menu
...
[kzak@redhat.com: - translate also GPT types]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-21 15:36:33 +02:00
Karel Zak
a4f0a42dd2
cfdisk: use /dev/sda by default
...
.. this all is for backward compatibility.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-18 12:54:40 +02:00
Karel Zak
d02c203512
cfdisk: make code more readable for analyzers [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-17 13:59:01 +02:00
Karel Zak
a9408274b7
cfdisk: fix possible memory leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-17 13:46:27 +02:00
Benno Schulenberg
2ddfd9e424
cfdisk: restore the license that was lost in January
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-15 13:25:19 +02:00
Karel Zak
33f7c502c6
cfdisk: fix warning usage, improve 's' help
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-15 13:12:23 +02:00
Karel Zak
bfdb3244e3
cfdisk: accept 's' as well as 'S' for sectors
...
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-15 13:01:56 +02:00
Karel Zak
ad5d45c046
cfdisk: make menus sensitive to ESC
...
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-15 12:41:30 +02:00
Karel Zak
8fc37981cf
cfdisk: use \n for messages on stdout and stderr
...
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-15 12:32:38 +02:00
Karel Zak
bc787727d4
libfdisk: make disk sync() optional
...
... this allows to avoid unnecessary sync() from cfdisk.
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-15 12:32:03 +02:00
Sami Kerola
3524452a71
cfdisk: add braces to ensure operation order
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-07-13 17:31:11 +01:00
Karel Zak
a1da27a8c0
cfdisk: fix division by zero [clang-analyze]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-01 13:25:46 +02:00
Karel Zak
d121efdb6e
cfdisk: add --zero command line option
...
The option has been supported by previous versions, we can easily
support it too.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-20 12:17:53 +02:00
Karel Zak
dd626abdbe
cfdisk: don't offer BSD
...
BSD is nested within DOS partition, so for disk without any partition
table it does not make any sense to offer BSD label.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-20 12:07:30 +02:00
Karel Zak
710ed55dcd
libsmartcols: add debug messages
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-06 13:47:06 +02:00
Karel Zak
7556c9443a
cfdisk: resize UI on SIGWINCH
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-05 14:32:51 +02:00
Karel Zak
d5314bf56f
cfdisk: add [Sort] operation
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-05 12:13:41 +02:00
Karel Zak
e66a662726
lib/colors: allow to temporary disable colors
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-13 12:09:02 +02:00
Karel Zak
a08fa9ab57
cfdisk: fix compiler warning [-Wsign-compare]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-13 09:58:58 +02:00
Karel Zak
0925a9dd6c
libsmartcols: clean up flags usage
...
* rename flags functions to scols_table_enable_*
* rename *_no_foo() functions to _nofoo()
* output formats are mutually exclusive, so don't use flags there
* don't assume symbols in scols_new_table(), use scols_table_set_symbols()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 16:09:57 +02:00
Karel Zak
c743bf744a
cfdisk: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Ondrej Oprala
baa3b270ec
Use libsmartcols in libfdisk and cfdisk
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Karel Zak
9c72131065
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
2014-03-21 15:21:16 +01:00
Karel Zak
32be26a076
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
)
2014-03-21 15:11:25 +01:00
Karel Zak
e146ae4edb
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>
2014-03-21 14:04:59 +01:00
Karel Zak
881410671f
libfdisk: use new debug functions
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-21 12:35:21 +01:00
Wolfgang Richter
03f2226e8b
cfdisk: fix compile-time error fixes #59
...
+ For compile to work also needs pull request #56 applied
2014-03-19 22:42:40 -04:00
Ruediger Meier
f0fb84ab36
cfdisk: fix typo (undeclared variable since b1f58330
)
...
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-03-14 13:28:29 +01:00
Karel Zak
ad9fe47e75
cfdisk: follow terminal-colors.d
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 12:22:35 +01:00
Karel Zak
210bb49268
cfdisk: fix colors initialization
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 11:49:52 +01:00
Karel Zak
f1512be8a5
cfdisk: fix slang usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 11:35:15 +01:00
Karel Zak
4ddd86d5d9
build-sys: ove fdisks to disk-utils
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 11:35:15 +01:00
Karel Zak
5c36a0eb7c
Imported from util-linux-2.9i tarball.
2006-12-07 00:25:37 +01:00
Karel Zak
2b6fc908bc
Imported from util-linux-2.8 tarball.
2006-12-07 00:25:35 +01:00
Karel Zak
fd6b7a7ffc
Imported from util-linux-2.7.1 tarball.
2006-12-07 00:25:34 +01:00
Karel Zak
726f69e29c
Imported from util-linux-2.5 tarball.
2006-12-07 00:25:33 +01:00
Karel Zak
6dbe3af945
Imported from util-linux-2.2 tarball.
2006-12-07 00:25:32 +01:00