Commit Graph

467 Commits

Author SHA1 Message Date
Karel Zak 4d156d92eb libfdisk: (dos) retain existing boot flag when resizing a partition
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1210912
Signed-off-by: Karel Zak <kzak@redhat.com>
Co-Author:  awilliam@redhat.com
2015-04-13 10:29:00 +02:00
Karel Zak 7298680365 libfdisk: don't return empty strings from fdisk_partition_to_string()
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-27 13:47:13 +01:00
Karel Zak 5cdbe36fbc libfdisk: add fgets() callback for scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-25 16:05:14 +01:00
Karel Zak 310399cafe libfdisk: fix symbols versioning script
Really stupid copy & past mistake. The libfdisk symbols should not be
prefixed by MOUNT_ suffix.

This change makes binaries linked with libfdisk 2.26 incompatible with
new libfdisk. Fortunately, 2.26 has been the first release and very
probably the library has been used for util-linux fdisks only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-25 11:32:00 +01:00
Karel Zak 9c6f3de60f libfdisk: (gpt) check header size before verify CRC
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780834
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-23 12:03:30 +01:00
Karel Zak b7c67e6414 libfdisk: add {first,last}-lba header to sfdisk scritps
The current sfdisk does not allow to create partition that
starts before the default libfdisk First LBA (~1MiB). It
means that

 # sfdisk --dump /dev/sda > foo
 # sfdisk /dev/sdb < foo

does not work on systems where 1st partition does not start at offset
2048.

This patch add new headers to scripts to inform libfdisk about different
First/Last LBA ranges. For example:

 label: gpt
 first-lba: 34

allows to override the library default.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-02 13:58:23 +01:00
Karel Zak 0be901e535 libfdisk: fix fdisk_partition_get_parent() docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19 12:37:23 +01:00
Karel Zak 4863ddaddf libfdisk: add some docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-10 13:17:29 +01:00
Karel Zak fbec8d9fad libfdisk: ignore whole-disk partition when check order
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-10 13:00:52 +01:00
Karel Zak 943271e214 libfdisk: add fdisk_partition_is_wholedisk()
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-10 13:00:30 +01:00
Karel Zak 9992324409 libfdisk: fix compiler warning
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-06 10:34:06 +01:00
Karel Zak c603d076f8 libfdisk: make code more readable
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-06 10:24:18 +01:00
Karel Zak d527d2dd64 libfdisk: grain is in bytes, fix previous patches
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 13:44:16 +01:00
Benno Schulenberg 33b981f757 libfdisk: (dos) make a helpful message fit within 80 characters
Also add a hint for translators.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-03 13:25:27 +01:00
Karel Zak 68fe4b2822 libfdisk: don't align very small partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 13:20:45 +01:00
Karel Zak 1bb387bdbd libfdisk: fix issues with very small partitions
- cfdisk: minimal partitions size is 1 sector
 - dos: when align last sector then don't set partition size to zero
   for very small partitions.
 - don't ignore tiny partitions before free space when define
   free-space start offset
 - improve some debug messages

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 12:44:00 +01:00
Karel Zak 3d919d9583 libfdisk: (dos) write new empty label too
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 12:03:12 +01:00
Karel Zak eed0e7b9bc libfdisk: (dos) fix logical partitions errors handling
The current code in add_partition() de-increment number of partitions
on error when logical partition requested and add_logical() does the
same. The result is mess in partitions array.

The another fixed issue is that add_logical() is called if all primary
partitions are already used although 'pa->start' (the template) is
explicitly defined outside the extended partition. The right behavior
is to end with error message.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02 12:20:44 +01:00
Benno Schulenberg dc45b86e14 libfdisk: actually translate the human-readable name of the partition type
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Karel Zak 625d00fefb libfdisk: (dos) delete also logical with extended
deleting an extended partition with cfdisk leaves its contained
partitions in existence

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02 10:38:05 +01:00
Karel Zak edc4cf94a8 libfdisk: make fdisk_partition_to_string() more robust [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 10:49:51 +01:00
Karel Zak 4044d24468 libfdisk: (gpt) check return from GUID parser [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 15:10:15 +01:00
Karel Zak 9c321dfbf0 libfdisk: fix possible mem leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 15:05:14 +01:00
Karel Zak bf031d89ea libfdisk: support unknown partition types in sfdisk scripts
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1183234
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 09:57:03 +01:00
Karel Zak 9bbcf43f88 libfdisk: don't use off_t in public API
It's better to use exact and explicitly defined types (e.g. uint64_t)
rather than something like off_t to make code more portable.

[reported with gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3)]

The patch also fixes one debug message.

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-26 12:26:00 +01:00
Benno Schulenberg 54fefa078e textual: fix spellos and inconsistencies in several program messages
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-01-26 11:17:55 +01:00
Karel Zak ce9f568c25 libfdisk: accept Start offset in {B,M,G..}iB in sfdisk scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-20 14:20:47 +01:00
Karel Zak a473657eac libfdisk: (docs) fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-20 10:34:19 +01:00
Karel Zak 4a79a8f177 libfdisk: make label names case insensitive
and support 'MBR' as alias to 'DOS'.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-19 12:25:37 +01:00
Karel Zak 354f8cc8cf libfdiskL add API to print SIZE field in bytes
The patch also add --bytes to fdisk and fdisk.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-19 11:24:48 +01:00
Karel Zak 791da22d0e libfdisk: add version.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-13 13:46:31 +01:00
Karel Zak dee59a1ee6 libfdisk: fix some typos
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-13 13:46:09 +01:00
Karel Zak 2b6c532e17 docs: update API docs years
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-13 12:03:17 +01:00
Karel Zak 0c07055c39 libfdisk: cleanup gtk-docs warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-13 11:45:19 +01:00
Karel Zak 4bb82a4554 libfdisk: (gpt) cleanup header size usage
Kay reported that Windows 8.1 installed does not recognize GPT created
by libfdisk, but parted works as expected.

It seems (according to the header hexdump) that the problem is
HeaderSize GPT field where libfdisk uses 512 (header + reserved area),
but parted uses 92. The both is pretty valid according to the current
EFI standard, but 92 is probably more backwardly compatible.

I also found places in code where libfdisk gpt driver is inconsistent
and uses sometimes all sector and simetimes sizeof(gpt_header) only.
The right solution is to read all sector (into zeroized memory) and
later write again all sector to the device.

Reported-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-09 13:05:49 +01:00
Sami Kerola 7ee26cbf02 maint: fix shadow declaration
This change fixes all shadow declarations.  The worth while to mention
fix is with libfdisk sun geometry.  It comes from bitops.h cpu_to_be16
macro that further expands from include/bits/byteswap.h that has the
shadowing.

libfdisk/src/sun.c:961:173: warning: declaration of '__v' shadows a previous local [-Wshadow]
libfdisk/src/sun.c:961:69: warning: shadowed declaration is here [-Wshadow]
libfdisk/src/sun.c:961:178: warning: declaration of '__x' shadows a previous local [-Wshadow]
libfdisk/src/sun.c:961:74: warning: shadowed declaration is here [-Wshadow]

That could have caused earlier some unexpected results.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-01-07 10:08:21 +01:00
Karel Zak 764b697c56 libfdisk: fix bug in cmp_numbers() and partitions sorting
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1170191
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-12-04 13:06:03 +01:00
Karel Zak bbfc24298f libfdisk: remove 'end' from struct fdisk_partition
This struct member duplicate "start+size".

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-12-04 12:24:31 +01:00
Karel Zak 0073a4cff2 libfdisk: rename sector_t to fdisk_sector_t
.. just to avoid too generic names for public API.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-12-04 11:41:51 +01:00
Karel Zak 19ff8ff7c4 libfdisk: fix cfdisk freespace analyze
The problem is how fdisk_partition_cmp_start() compare numbers, the
function returns result from "a->start - b->start", unfortunately the
numbers are uint64, but function returns "int".

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1170191
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-12-04 10:27:39 +01:00
Karel Zak 705854f307 libfdisk: add API docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-26 19:13:57 +01:00
Karel Zak a1ef792fda libfdisk: rename and move function
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-26 17:33:07 +01:00
Karel Zak ed79557e1d build-sys: add fdisk.pc
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-26 13:20:16 +01:00
Karel Zak c820e3ffcf build-sys: add fdiskP.h to sources
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-26 12:51:32 +01:00
Karel Zak 0bb4c979c6 build-sys: create a regular shared libfdisk.so
- symbols versioning
- SONAME from configure.ac
- library version to header file
- modify build-sys to compile and install shared lib

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-26 12:45:24 +01:00
Karel Zak a78dba34a4 libfdisk: add comments to header file
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-26 11:55:45 +01:00
Karel Zak 77e46d1c06 libfdisk: add docs for SGI functions 2014-11-26 11:45:00 +01:00
Karel Zak fd979f5be7 libfdisk: add docs for SUN functions 2014-11-26 11:34:57 +01:00
Karel Zak 4e76cecd6f libfdisk: cleanup fdisk_partition_to_string() comment 2014-11-26 11:26:31 +01:00
Karel Zak 0e679d79e2 libfdisk: fix typo 2014-11-26 11:23:27 +01:00
Karel Zak 7ab7af7578 libfdisk: add docs for iterator 2014-11-26 11:21:16 +01:00
Karel Zak 5d54d9f55b libfdisk: add docs for init functions 2014-11-26 11:13:11 +01:00
Karel Zak 0077e7cd95 libfdisk: add docs for GPT functions 2014-11-26 11:11:19 +01:00
Karel Zak b7d101a20d libfdisk: add docs for DOS functions 2014-11-26 11:00:43 +01:00
Karel Zak a4e6a45e54 libfdisk: add docs for BSD functions 2014-11-26 10:28:37 +01:00
Karel Zak 1c01e44f15 libfdisk: cleanup ask API, add comments
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-25 14:36:50 +01:00
Karel Zak 0477369af4 libfdisk: remove flags from fdisk_ask API
We don't use it for anything usable, lets kill this over-engineering.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-21 15:31:55 +01:00
Karel Zak a3d834888e libfdisk: add ref.counting to ask API
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-21 11:03:08 +01:00
Karel Zak 3c5ee57cd3 agetty: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-21 09:42:23 +01:00
Karel Zak 9146a00823 ibfdisk: (gpt) allow to maximize partition
enlarge second partition:

	# echo ',+' | ./sfdisk -N2 /dev/sdb
	...
	Disk /dev/sdb: 100 MiB, 104857600 bytes, 204800 sectors

	Old situation:
	Device     Start   End Sectors Size Type
	/dev/sdb1   2048 22527   20480  10M Linux filesystem
	/dev/sdb2  22528 43007   20480  10M Linux filesystem

	New situation:
	Device     Start    End Sectors Size Type
	/dev/sdb1   2048  22527   20480  10M Linux filesystem
	/dev/sdb2  22528 204766  182239  89M Linux filesystem

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-20 13:28:41 +01:00
Karel Zak 333c376138 libfdisk: (dos) allow to maximize partition
The struct fdisk_partition has special flag "end_follow_default" to
make the partition large as much as possible. This patch makes this
flag usable for fdisk_set_partition() function.

Command line example (enlarge the first partition):

	# echo ',+' | ./sfdisk -N1 /dev/sdb
	...
	Disk /dev/sdb: 100 MiB, 104857600 bytes, 204800 sectors
	...
	Old situation:
	Device     Boot Start   End Sectors Size Id Type
	/dev/sdb1        2048 22527   20480  10M 83 Linux
			      ^^^^^
	New situation:
	Device     Boot Start    End Sectors Size Id Type
	/dev/sdb1        2048 204799  202752  99M 83 Linux
			      ^^^^^^

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-20 13:11:38 +01:00
Gabriele Giacone 96f7a117b3 libfdisk: fix partition names on GNU Hurd. 2014-11-18 02:13:22 +01:00
Boris Egorov 44374b10d1 libfdisk: fix get_partition_unused_primary()
Was:
Mentioned function returns -1 if adding of primary partition is
impossible. Caller treats this value as size_t (res variable) and then
compares it for negative values, totally ignoring errors.

Becomes:
Now function takes address to variable and fills it with partition
number. Caller treats return value as int and use it appropriately.

[kzak@redhat.com: - don't mix return code and partno at all]

Signed-off-by: Boris Egorov <egorov@linux.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-14 10:02:00 +01:00
Karel Zak d0bdf18434 libfdisk: (dos) be sure that sorted EBR list is terminated
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-13 14:37:05 +01:00
Karel Zak 2248aaf98f libfdisk: fix table_add_freespace(), add debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-13 14:17:47 +01:00
Karel Zak 6237329972 libfdisk: fix script parser, add debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-12 10:34:13 +01:00
Karel Zak 4a4616b22e libfdisk: (gpt) don't offer first sector before the first partion
The GPT first usable LBA is usually aligned to grain (1MiB), but for small
(<=4MiB) devices we strictly follow sector sizes.

In this case there is a small space in front of the aligned begin of
the first partition. This useless space should not be offered for the
next partitions.

	Sector size (logical/physical): 512 bytes / 4096 bytes
	I/O size (minimum/optimal): 4096 bytes / 32768 bytes
	Disklabel type: gpt
	Disk identifier: 041E2D54-AD0C-4C7E-A50D-363D23058D47

	Device    Start          End Size Type
	/dev/sdb1    40         2087   1M Linux filesystem

	Command (m for help): n
	Partition number (2-128, default 2):
	First sector (34-8158, default 2088):
                      ^^

first usable LBA is 34, but first aligned (recommended) LBA is 40, we
use it for the first partition. All this is correct, but the space
before the first partition should be ignored. Fixed version:

        Command (m for help): n
	Partition number (2-128, default 2):
	First sector (2088-8158, default 2088):
                      ^^^^

Note this problem does not exist for "normal" (large) devices where
first usable LBA is aligned to grain.

Reported-by: Boaz Harrosh <boaz@plexistor.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-10 14:01:09 +01:00
Karel Zak 8ccfcf70da libfdisk: (gpt) make mode more readable
* use check_ prefix for checking functions
* use plural in function names where we work with more partitions than one
* always use "ents" when when we work with gpt entries array

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-10 12:22:55 +01:00
Samuel Thibault a56b70f8ff libfdisk: fdisk_read_firstsector should seek to offset 0
The current offset of cxt->dev_fd may not be still 0, notably when
blkdev_get_size has to resort to using blkdev_find_size

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org
2014-11-10 11:57:50 +01:00
Karel Zak 4dcea32061 libfdisk: clean up debug, add help debug mask
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-11-03 13:13:32 +01:00
Karel Zak 819d9a2975 include/debug: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-24 11:19:23 +02:00
Karel Zak 7190b9b2ce libfdisk: add more comments
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-16 13:15:06 +02:00
Karel Zak dfc6db2a35 libfdisk: cleanup parttype API
* add reference counting
 * add functions to set allocated types

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-15 14:10:25 +02:00
Karel Zak 0123bd1a87 libfdisk: cleanup partno API
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-15 13:06:23 +02:00
Karel Zak ecf40cda76 libfdisk: make it possible to use zero for size and start
The zero may be valid size and start of the partition. This patch
introduces:

	fdisk_partition_has_start()
	fdisk_partition_has_size()
	fdisk_partition_unset_size()
	fdisk_partition_unset_start()

to make it possible to work with zero. The feature is internally
implemented by magic constant ((type) -1) for undefined sizes and
offsets.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-15 12:17:40 +02:00
Karel Zak 150d98ee3f libfdisk: (dos) set partition start/size only when requested 2014-10-14 19:46:17 +02:00
Karel Zak 13633a81df libfdisk: cleanup context devname usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-14 17:59:41 +02:00
Karel Zak 0c344037f0 libfdisk: (gpt) fix N-1 error for partition size
The same bug like on dos.c, the limits for the "last sector" dialog
are already with "-1".

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-14 17:26:27 +02:00
Karel Zak a389baf116 libfdisk: (dos) fix N-1 error for partition size
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-14 16:44:54 +02:00
Karel Zak b1c524aeed libfdisk: fix script unit test
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-14 14:46:16 +02:00
Benno Schulenberg 9ed38607d7 textual: grammarize an informative message, and tweak some comments
Also add two clarifying comments for translators.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2014-10-14 12:03:56 +02:00
Karel Zak 2ce7b95985 libfdisk: fix script next_token()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-10 12:53:12 +02:00
Karel Zak 2d2cb0251d libfdisk: make script header parser more pedantic
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-10 12:24:10 +02:00
Karel Zak 28d79d9b0d libfdisk: (dos) reset logical partition stuff after error
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-09 14:03:45 +02:00
Karel Zak 8f48195846 libfdisk: cleanup script dump
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-09 13:03:52 +02:00
Karel Zak bcdeacd796 libfdisk: (dos) follow explicit sizes
* this patch add to dos driver support for fdisk_partition->size_explicit
  to avoid unexpected last sector alignment for sizes explicitly specified
  in sectors

* add support for small "first LBA", the current default is to use
  1MiB offset for the first partition and for each EBR. This is not
  backwardly compatible and it makes impossible to apply sfdisk
  scripts/dumps from old systems, because original offset can be
  smaller than 2048 sectors (old sfdisk default is 1 sector).

  The solution is on the fly to detect this situation and change
  fdisk_context->first_lba to 1 sector. Nasty.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-09 12:10:36 +02:00
Karel Zak 18b266cea3 libfdisk: (gpt) follow explicit size, fiz size+1 buf
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-09 12:10:09 +02:00
Karel Zak 9b0b9fb1bf libfdisk: follow explicitly specified partition size
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-09 12:09:07 +02:00
Karel Zak 6d37c2ce9a libfdisk: add functions to play nasty games with first/last LBA
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-09 12:06:52 +02:00
Karel Zak 892c89eb76 libfdisk: allow to specify partition size by explicit number of sectors
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-09 12:02:17 +02:00
Karel Zak 0a9ac4d2f5 libfdisk: use skip_blank() in scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-08 13:11:59 +02:00
Karel Zak a536cf7106 libfdisk: (dos) don't inform about logical partition
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-08 13:00:19 +02:00
Karel Zak 4e8ee117c4 libfdisk: consolidate script parser code
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-08 12:59:50 +02:00
Karel Zak d79634cfa8 libfdisk: fix script parser
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 15:33:18 +02:00
Karel Zak 50f7514e9d libfdisk: (dos) fix booable flag usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 15:32:09 +02:00
Karel Zak 11eee4c477 libfdisk: propagate assign-device operation to parent
Let's make it possible to use fdisk_assign_device() for nested
contexts.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:33 +02:00
Karel Zak a8a4887bcd libfdisk: fix sun and sgi to be usable from sfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:33 +02:00
Karel Zak eac3aac95b libfdisk: add fdisk_label_get_field_by_name() and const for labels
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak 00665c3fe1 libfdisk: (gpt) remove 'Cylinders'
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00
Karel Zak c77ba5316f libfdisk: (gpt) parse attr bits
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-10-07 14:55:32 +02:00