]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Mon, 10 Mar 2014 12:55:43 +0000 (13:55 +0100)]
fdisk: merge fdisk-ask.c to fdisk.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 12:36:22 +0000 (13:36 +0100)]
sfdisk: merge partname.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 12:21:39 +0000 (13:21 +0100)]
cfdisk: refresh man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 10:57:26 +0000 (11:57 +0100)]
cfdisk: update table index when out of range
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:54:17 +0000 (13:54 +0100)]
libfdisk: (sun) add info about whole-disk partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:44:31 +0000 (13:44 +0100)]
cfdisk: fix header
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:44:12 +0000 (13:44 +0100)]
libfdisk: (sgi) cleanup, add infor about whole-disk partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:43:39 +0000 (13:43 +0100)]
libfdisk: don't count special whole-disk partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:14:51 +0000 (13:14 +0100)]
cfdisk: coding style, comments, etc.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:01:22 +0000 (13:01 +0100)]
cfdisk: cleanup, rename menuitem struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Feb 2014 12:28:40 +0000 (13:28 +0100)]
cfdisk: add usage() and some basic main() stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Feb 2014 12:05:19 +0000 (13:05 +0100)]
cfdisk:add page down/up
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Feb 2014 11:24:50 +0000 (12:24 +0100)]
cfdisk: support partitions list longer than screen LINES
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 13:49:13 +0000 (14:49 +0100)]
cfdisk: improve write dialog
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 13:22:04 +0000 (14:22 +0100)]
cfdisk: add help screen
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 12:58:31 +0000 (13:58 +0100)]
cfdisk: improve add parttype UI
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 12:02:30 +0000 (13:02 +0100)]
cfdisk: add parttype dialog
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 12:02:02 +0000 (13:02 +0100)]
fdisk: remove unnecessary code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Feb 2014 12:22:26 +0000 (13:22 +0100)]
cfdisk: consolidate menu descriptions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Feb 2014 12:05:09 +0000 (13:05 +0100)]
cfdisk: menu actions refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Feb 2014 11:47:22 +0000 (12:47 +0100)]
cfdisk: add create lebel UI
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 24 Feb 2014 13:27:49 +0000 (14:27 +0100)]
cfdisk: consolidate menu move code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 24 Feb 2014 12:57:08 +0000 (13:57 +0100)]
cfdisk: supports also vertical menus
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:53:03 +0000 (23:53 +0100)]
cfdisk: reorder abstract PT according to output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:52:17 +0000 (23:52 +0100)]
lib/tt: keep track about output order
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:34:54 +0000 (23:34 +0100)]
lib/tt: add tt_line_get_userdata()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:09:26 +0000 (23:09 +0100)]
libfdisk: add dump functions, make freespace code generic
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:09:02 +0000 (23:09 +0100)]
libfdisk: (dos) consolidate partition end-offset code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 20:09:55 +0000 (21:09 +0100)]
libfdisk: (dos) fix ext_index usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 19:51:30 +0000 (20:51 +0100)]
cfdisk: improve tree output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 19:50:02 +0000 (20:50 +0100)]
libfdisk: remove label specific get_freespace
- it seems we can use improved nested<->container relationship
rather than implement DOS specific function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 17:06:07 +0000 (18:06 +0100)]
libfdisk: (dos) fix log.partition delete
- deallocate sector buffer and deincrement part_max when delete last
logical partition
- zap obsolete EBR on begin of the extended partition when no logical
partition defined
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 17:05:57 +0000 (18:05 +0100)]
libfdisk: again improve freespace code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 13:40:35 +0000 (14:40 +0100)]
cfdisk: use tree-mode for extended, colorize freesapce
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 13:40:27 +0000 (14:40 +0100)]
libfdisk: improve freesapce detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:23:18 +0000 (12:23 +0100)]
libfdisk: don't ask for pri/log if wanted start within extended partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:22:31 +0000 (12:22 +0100)]
cfdisk: follow default end if possible
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:19:38 +0000 (12:19 +0100)]
libfdisk: add table sort function, use it in get_freespace
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:18:57 +0000 (12:18 +0100)]
include/list: add void data to the sort cmp function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 Jan 2014 09:35:53 +0000 (10:35 +0100)]
cfdisk: use real partno
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 Jan 2014 09:31:08 +0000 (10:31 +0100)]
cfdisk: support <size>S, and long hint messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Jan 2014 14:07:46 +0000 (15:07 +0100)]
lib/strutils: support dec.points in parse_size()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Jan 2014 11:56:01 +0000 (12:56 +0100)]
lib/strutils: use proper return codes in parse_size()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Jan 2014 11:21:11 +0000 (12:21 +0100)]
libfdisk: rewrite freespace code
* use separate function to get free space
* allow to use label-specific get_freespace() function
(this is necessary for MBR extended partitions mess)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:22:12 +0000 (14:22 +0100)]
cfdisk: add UI for linfdisk menus, ask for size
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:21:30 +0000 (14:21 +0100)]
fdisk: use ASKTYPE_MENU
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:20:40 +0000 (14:20 +0100)]
linfdisk: align free space
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:20:11 +0000 (14:20 +0100)]
libfdisk: (gpt) initialize last_lba, cleanup pa->{start,size} usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:19:05 +0000 (14:19 +0100)]
libfdisk: initialize last_lba
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:17:41 +0000 (14:17 +0100)]
libfdisk: add fdisk_partition_*_follow_default()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:15:30 +0000 (14:15 +0100)]
libfdisk: add ASKTYPE_MENU and context last_lba
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:09:54 +0000 (14:09 +0100)]
lib/mbalign: add mbs_safe_width() from tt.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Jan 2014 16:31:24 +0000 (17:31 +0100)]
fdisk: fix 'p'rint error on empty PT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 13:22:35 +0000 (14:22 +0100)]
cfdisk: improve info line and menu updates
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 12:05:19 +0000 (13:05 +0100)]
cfdisk: improve info line, add Delete action
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 10:53:34 +0000 (11:53 +0100)]
cfdisk: update menu according to the current partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 10:52:50 +0000 (11:52 +0100)]
libfdisk: add fdisk_table_get_partition()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 10:10:54 +0000 (11:10 +0100)]
cfdisk: add menu action functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Jan 2014 13:49:45 +0000 (14:49 +0100)]
cfdisk: basic UI stuff
Karel Zak [Thu, 9 Jan 2014 13:48:49 +0000 (14:48 +0100)]
include/xalloc: add xvasprintf()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 6 Jan 2014 07:32:20 +0000 (08:32 +0100)]
libfdisk: add fdisk_table_get_nents()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Dec 2013 12:58:46 +0000 (13:58 +0100)]
libfdisk: tiny clean up in fdisk_table_to_string()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Dec 2013 12:25:51 +0000 (13:25 +0100)]
libfdisk: clean up cylinder column
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Dec 2013 09:38:43 +0000 (10:38 +0100)]
libfdisk: remove tt stuff from API
The include/tt.h has to be used only internally by the library (for
example to convert fdisk_table to string).
The fdisk_ask API should not be more used for complex tasks like print
partition table. The application has to use fdisk_get_table() and
fdisk_table_to_string() or something else.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Dec 2013 09:28:55 +0000 (10:28 +0100)]
libfdisk: use fdisk_table to generate output
* add generic fdisk_iter iterator
* use fdisk_table to convert partition table to human readable output
* clean up partition.c API (don't use reference to fdisk_context in
fdisk_partition struct)
* extern table.c API to use fdisk_iter iterator
* remove old fdisk_list_partitions()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Dec 2013 09:22:32 +0000 (10:22 +0100)]
include/tt: add function to convert table to string
Note that open_memstream() is POSIX-1.2008, so it's possible than not
all libc have already implemented this function.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Dec 2013 12:59:48 +0000 (13:59 +0100)]
libfdisk: move partition stuff to partition.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 13 Dec 2013 18:56:21 +0000 (19:56 +0100)]
libfdisk: add table container
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 13 Dec 2013 18:26:29 +0000 (19:26 +0100)]
libfdisk: add reference counting to fdisk_partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 12 Dec 2013 16:22:52 +0000 (17:22 +0100)]
libfdisk: add support to list free space
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 29 Nov 2013 20:55:53 +0000 (21:55 +0100)]
libfdisk: use partition template
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Nov 2013 11:56:12 +0000 (12:56 +0100)]
libfdisk: remove fdisk_get_partition_type()
Let's use more generic:
fdisk_get_partition()
fdisk_partition_get_parttype()
rather than fdisk_get_partition_type().
The patch also improves fdisk_get_partition() semantic to allocate
a new partition struct if the argument is NULL.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Nov 2013 11:17:45 +0000 (12:17 +0100)]
libfdisk: (sun) remove get_partition_type()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Nov 2013 11:13:31 +0000 (12:13 +0100)]
libfdisk: (sgi) remove get_partition_type()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Nov 2013 11:06:50 +0000 (12:06 +0100)]
libfdisk: (dos) remove get_partition_type()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Nov 2013 11:01:59 +0000 (12:01 +0100)]
libfdisk: (bsd) remove get_partition_type()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Nov 2013 10:52:52 +0000 (11:52 +0100)]
libfdisk: (gpt) remove get_partition_type()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Nov 2013 10:00:18 +0000 (11:00 +0100)]
libfdisk: (sun) use new list() and get_part() API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 27 Nov 2013 15:49:13 +0000 (16:49 +0100)]
libfdisk: (sgi) use new list() and get_part() API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 27 Nov 2013 13:34:05 +0000 (14:34 +0100)]
libfdisk: (dos) use new list() and get_part() API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 27 Nov 2013 13:33:01 +0000 (14:33 +0100)]
libfdisk: add new list() columns, cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 26 Nov 2013 14:32:31 +0000 (15:32 +0100)]
libfdisk: (bsd) use new get_part() API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 26 Nov 2013 14:28:03 +0000 (15:28 +0100)]
libfdisk: improve conversion to string
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 26 Nov 2013 12:29:23 +0000 (13:29 +0100)]
libfdisk: add struct fdisk_partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 13:06:44 +0000 (14:06 +0100)]
lib/tt: add reduce term width functionality
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 12:53:29 +0000 (13:53 +0100)]
lib/tt: add TT_FL_MAX to fill screen
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 12:31:15 +0000 (13:31 +0100)]
lib/tt: add tb_get_nlines()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 10:34:12 +0000 (11:34 +0100)]
lib/tt: don't hardcode stdout as output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 09:21:54 +0000 (10:21 +0100)]
libfdisk: (gpt) use fdisk_column
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 09:20:15 +0000 (10:20 +0100)]
libfdisk: implement generic functions for FDISK_COL_ stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 09:08:37 +0000 (10:08 +0100)]
libfdisk: extend API definition to list info about partitions
This change adds a struct fdisk_column to provide generic description
for information about partitions. The struct is used for tt tables as
well as lists of possible columns for specified label driver.
We use the same concept in all applications linked with tt.c (lsblk,
findmnt, partx, ...) where is possible to dynamically change columns,
order of the columns etc. Now it will be possible to do the same with
fdisk.
And it's also possible to use FDISK_COL_* Ids to address data, for
example:
fdisk_partition_get_data(cxt, FDISK_COL_SIZE, 1, &data);
returns a string with human readable size (<num>{MGT}) of the second
partition.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Nov 2013 09:07:36 +0000 (10:07 +0100)]
include/tt: add tt_is_empty()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 10:22:07 +0000 (11:22 +0100)]
ipcs: fix size_t overflow
Addresses: https://github.com/karelzak/util-linux/issues/51
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 09:38:15 +0000 (10:38 +0100)]
lib/colors: support <name>.enable too
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 09:05:32 +0000 (10:05 +0100)]
lib/colors: add info to man pages, add terminal-colors.d.5
Co-Author: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Ondrej Oprala [Thu, 23 Jan 2014 12:03:45 +0000 (13:03 +0100)]
lib/colors: check for /etc/terminal-colors.d/[util].disable
[kzak@redhat.com: - move paths to pathnames.h,
- use static path buffer]
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 16 Feb 2014 15:22:56 +0000 (15:22 +0000)]
tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 16 Feb 2014 15:22:55 +0000 (15:22 +0000)]
tools: make config-gen to require build target argument
When argument is not supplied help user by telling what arguments can be
used.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 7 Mar 2014 10:14:46 +0000 (11:14 +0100)]
lsblk: add PARTFLAGS column
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 6 Mar 2014 12:09:16 +0000 (13:09 +0100)]
libmount: add statfs_magic.h
Signed-off-by: Karel Zak <kzak@redhat.com>