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