]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
10 years agolibcommon: add common debugging routines
Ondrej Oprala [Tue, 11 Mar 2014 10:27:13 +0000 (11:27 +0100)] 
libcommon: add common debugging routines

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
10 years agolibfdisk: update GPT partition types
Karel Zak [Wed, 12 Mar 2014 12:52:01 +0000 (13:52 +0100)] 
libfdisk: update GPT partition types

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agomount: update XFS mount.8 allocsize=
Karel Zak [Wed, 12 Mar 2014 11:25:23 +0000 (12:25 +0100)] 
mount: update XFS mount.8 allocsize=

Reported-by: Satoru Takeuchi
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: avoid two compiler warnings about wrong print formats
Benno Schulenberg [Thu, 13 Feb 2014 20:36:43 +0000 (21:36 +0100)] 
libfdisk: avoid two compiler warnings about wrong print formats

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: add a new command boilerplate code
Sami Kerola [Sat, 8 Mar 2014 17:01:56 +0000 (11:01 -0600)] 
docs: add a new command boilerplate code

Having howtos is good, having an working code that can be used as-is to
kickstart a write of a new command is better.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agobuild-sys: sort gitignore files
Sami Kerola [Sat, 8 Mar 2014 17:01:55 +0000 (11:01 -0600)] 
build-sys: sort gitignore files

Use 'LC_ALL=C sort -fu' order for all lists.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agotests: check swaplabel, and perform more swapon boundary tests
Sami Kerola [Sat, 8 Mar 2014 17:01:54 +0000 (11:01 -0600)] 
tests: check swaplabel, and perform more swapon boundary tests

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agomkswap: remove unnecessary usage output
Sami Kerola [Sat, 8 Mar 2014 17:01:53 +0000 (11:01 -0600)] 
mkswap: remove unnecessary usage output

The usage output changes too often making unnecessarily expected output
in test unstable.  Besides in this case the usage ouput does not even
help user, because invalid swap target size error cannot be fixed by
specificing an option.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agotests: cleanup fallocate
Karel Zak [Wed, 12 Mar 2014 10:02:15 +0000 (11:02 +0100)] 
tests: cleanup fallocate

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoMerge branch 'master' of https://github.com/rudimeier/util-linux
Karel Zak [Wed, 12 Mar 2014 09:55:47 +0000 (10:55 +0100)] 
Merge branch 'master' of https://github.com/rudimeier/util-linux

* 'master' of https://github.com/rudimeier/util-linux:
  tests, skip fallocate for unsupported filesystems

10 years agolib/colors: care about colors only on tty()
Karel Zak [Wed, 12 Mar 2014 08:27:10 +0000 (09:27 +0100)] 
lib/colors: care about colors only on tty()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: improve comment
Karel Zak [Wed, 12 Mar 2014 08:11:36 +0000 (09:11 +0100)] 
libblkid: improve comment

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agotests, skip fallocate for unsupported filesystems
Ruediger Meier [Tue, 11 Mar 2014 14:53:19 +0000 (15:53 +0100)] 
tests, skip fallocate for unsupported filesystems

10 years agotests: refresh fdisk outputs
Karel Zak [Tue, 11 Mar 2014 12:00:41 +0000 (13:00 +0100)] 
tests: refresh fdisk outputs

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/strutils: fix parse_size() return code
Karel Zak [Tue, 11 Mar 2014 11:59:42 +0000 (12:59 +0100)] 
lib/strutils: fix parse_size() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agotests: update fdisk MBR and SUN tests
Karel Zak [Tue, 11 Mar 2014 11:35:44 +0000 (12:35 +0100)] 
tests: update fdisk MBR and SUN tests

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (bsd) fix output
Karel Zak [Tue, 11 Mar 2014 11:33:30 +0000 (12:33 +0100)] 
libfdisk: (bsd) fix output

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: follow terminal-colors.d
Karel Zak [Tue, 11 Mar 2014 11:22:35 +0000 (12:22 +0100)] 
cfdisk: follow terminal-colors.d

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: follow requested size rather than use all available space
Karel Zak [Tue, 11 Mar 2014 11:16:14 +0000 (12:16 +0100)] 
libfdisk: follow requested size rather than use all available space

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/colors: fix colors test
Karel Zak [Tue, 11 Mar 2014 10:51:38 +0000 (11:51 +0100)] 
lib/colors: fix colors test

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: fix colors initialization
Karel Zak [Tue, 11 Mar 2014 10:49:52 +0000 (11:49 +0100)] 
cfdisk: fix colors initialization

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: add note about colors to the man page
Karel Zak [Tue, 11 Mar 2014 10:40:00 +0000 (11:40 +0100)] 
fdisk: add note about colors to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: fix slang usage
Karel Zak [Mon, 10 Mar 2014 13:44:50 +0000 (14:44 +0100)] 
cfdisk: fix slang usage

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: ove fdisks to disk-utils
Karel Zak [Mon, 10 Mar 2014 13:15:36 +0000 (14:15 +0100)] 
build-sys: ove fdisks to disk-utils

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: merge fdisk-ask.c to fdisk.c
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>
10 years agosfdisk: merge partname.c
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>
10 years agocfdisk: refresh man page
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>
10 years agocfdisk: update table index when out of range
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>
10 years agolibfdisk: (sun) add info about whole-disk partition
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>
10 years agocfdisk: fix header
Karel Zak [Fri, 7 Mar 2014 12:44:31 +0000 (13:44 +0100)] 
cfdisk: fix header

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (sgi) cleanup, add infor about whole-disk partition
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>
10 years agolibfdisk: don't count special whole-disk partitions
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>
10 years agocfdisk: coding style, comments, etc.
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>
10 years agocfdisk: cleanup, rename menuitem struct
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>
10 years agocfdisk: add usage() and some basic main() stuff
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>
10 years agocfdisk:add page down/up
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>
10 years agocfdisk: support partitions list longer than screen LINES
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>
10 years agocfdisk: improve write dialog
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>
10 years agocfdisk: add help screen
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>
10 years agocfdisk: improve add parttype UI
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>
10 years agocfdisk: add parttype dialog
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>
10 years agofdisk: remove unnecessary code
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>
10 years agocfdisk: consolidate menu descriptions
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>
10 years agocfdisk: menu actions refactoring
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>
10 years agocfdisk: add create lebel UI
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>
10 years agocfdisk: consolidate menu move code
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>
10 years agocfdisk: supports also vertical menus
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>
10 years agocfdisk: reorder abstract PT according to output
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>
10 years agolib/tt: keep track about output order
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>
10 years agolib/tt: add tt_line_get_userdata()
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>
10 years agolibfdisk: add dump functions, make freespace code generic
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>
10 years agolibfdisk: (dos) consolidate partition end-offset code
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>
10 years agolibfdisk: (dos) fix ext_index usage
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>
10 years agocfdisk: improve tree output
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>
10 years agolibfdisk: remove label specific get_freespace
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>
10 years agolibfdisk: (dos) fix log.partition delete
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>
10 years agolibfdisk: again improve freespace code
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>
10 years agocfdisk: use tree-mode for extended, colorize freesapce
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>
10 years agolibfdisk: improve freesapce detection
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>
10 years agolibfdisk: don't ask for pri/log if wanted start within extended partition
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>
10 years agocfdisk: follow default end if possible
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>
10 years agolibfdisk: add table sort function, use it in get_freespace
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>
10 years agoinclude/list: add void data to the sort cmp function
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>
10 years agocfdisk: use real partno
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>
10 years agocfdisk: support <size>S, and long hint messages
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>
10 years agolib/strutils: support dec.points in parse_size()
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>
10 years agolib/strutils: use proper return codes in parse_size()
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>
10 years agolibfdisk: rewrite freespace code
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>
10 years agocfdisk: add UI for linfdisk menus, ask for size
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>
10 years agofdisk: use ASKTYPE_MENU
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>
10 years agolinfdisk: align free space
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>
10 years agolibfdisk: (gpt) initialize last_lba, cleanup pa->{start,size} usage
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>
10 years agolibfdisk: initialize last_lba
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>
10 years agolibfdisk: add fdisk_partition_*_follow_default()
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>
10 years agolibfdisk: add ASKTYPE_MENU and context last_lba
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>
10 years agolib/mbalign: add mbs_safe_width() from tt.c
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>
10 years agofdisk: fix 'p'rint error on empty PT
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>
10 years agocfdisk: improve info line and menu updates
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>
10 years agocfdisk: improve info line, add Delete action
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>
10 years agocfdisk: update menu according to the current partition
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>
10 years agolibfdisk: add fdisk_table_get_partition()
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>
10 years agocfdisk: add menu action functions
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>
10 years agocfdisk: basic UI stuff
Karel Zak [Thu, 9 Jan 2014 13:49:45 +0000 (14:49 +0100)] 
cfdisk: basic UI stuff

10 years agoinclude/xalloc: add xvasprintf()
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>
10 years agolibfdisk: add fdisk_table_get_nents()
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>
10 years agolibfdisk: tiny clean up in fdisk_table_to_string()
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>
10 years agolibfdisk: clean up cylinder column
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>
10 years agolibfdisk: remove tt stuff from API
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>
10 years agolibfdisk: use fdisk_table to generate output
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>
10 years agoinclude/tt: add function to convert table to string
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>
10 years agolibfdisk: move partition stuff to partition.c
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>
10 years agolibfdisk: add table container
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>
10 years agolibfdisk: add reference counting to fdisk_partition
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>
10 years agolibfdisk: add support to list free space
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>
10 years agolibfdisk: use partition template
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>
10 years agolibfdisk: remove fdisk_get_partition_type()
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>
10 years agolibfdisk: (sun) remove get_partition_type()
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>
10 years agolibfdisk: (sgi) remove get_partition_type()
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>
10 years agolibfdisk: (dos) remove get_partition_type()
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>
10 years agolibfdisk: (bsd) remove get_partition_type()
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>