forked from pool/parted
- changes in parted-3.1: * Changes in behavior - Floppy drives are no longer scanned on linux: they cannot be partitioned anyhow, and some users have a misconfigured BIOS that claims to have a floppy when they don't, and scanning gets hung up. - parted: the mkpart command has changed semantics with regard to specifying the end of the partition. If the end is specified using units of MiB, GiB, etc., parted subtracts one sector from the specified value. With this change, it is now possible to create partitions like 1MiB-2MiB, 2MiB-3MiB and so on. * Many bugfixes (see changelog) - changes in parted-3.0: * Changes in behavior - Remove all FS-related (file system-related) sub-commands; these commands are no longer recognized because they were all dependent on parted "knowing" too much about file system: mkpartfs, mkfs, cp, move, check. - 'resize' command changed semantics: it no longer resizes the filesystem, but only moves end sector of the partition - libparted-devel contains libparted-fs-resize library - add ability to change size of the partition (ignoring contained filesystem) with 'resize' command; this command has different semantics than the former 'resize' command which upstream decided to drop - parted-resize-command.patch (fate#316110) - when using syncmbr on POWER, make the first partition type 0x41 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=79
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
---
|
|
libparted/labels/mac.c | 9 ++++++++-
|
|
1 file changed, 8 insertions(+), 1 deletion(-)
|
|
|
|
Index: parted-3.1/libparted/labels/mac.c
|
|
===================================================================
|
|
--- parted-3.1.orig/libparted/labels/mac.c
|
|
+++ parted-3.1/libparted/labels/mac.c
|
|
@@ -468,7 +468,7 @@ _rawpart_is_void (MacRawPartition* raw_p
|
|
return _rawpart_cmp_type (raw_part, "Apple_Void");
|
|
}
|
|
|
|
-/* returns 1 if the raw_part represents a partition that is "unused space", or
|
|
+/* returns 0 if the raw_part represents a partition that is "unused space", or
|
|
* doesn't represent a partition at all. NOTE: some people make Apple_Free
|
|
* partitions with MacOS, because they can't select another type. So, if the
|
|
* name is anything other than "Extra" or "", it is treated as a "real"
|
|
@@ -533,6 +533,13 @@ _rawpart_analyse (MacRawPartition* raw_p
|
|
if (!part)
|
|
goto error;
|
|
|
|
+ /* Check for Apple_Free and set type to PED_PARTITION_FREESPACE */
|
|
+ if (_rawpart_cmp_type (raw_part, "Apple_Free")
|
|
+ && (strcmp (raw_part->name, "Extra") == 0))
|
|
+ part->type = PED_PARTITION_FREESPACE;
|
|
+ else
|
|
+ part->type = PED_PARTITION_NORMAL;
|
|
+
|
|
mac_part_data = part->disk_specific;
|
|
|
|
strncpy (mac_part_data->volume_name, raw_part->name, 32);
|