diff options
author | Roderick W. Smith <rodsmith@rodsbooks.com> | 2012-09-23 21:29:10 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-29 10:59:20 +0200 |
commit | e6536360bd4496cee1f1bf2dfb0b11f6bdbbfd4b (patch) | |
tree | c8a83ab0daf8445b52770ecd60a9d6c98918577e /doc | |
parent | 6499402a18baf22f08084acb289431b731d3afda (diff) | |
download | parted-e6536360bd4496cee1f1bf2dfb0b11f6bdbbfd4b.tar.gz |
add support for a new Linux-specific GPT partition type code
* NEWS: Describe the new Linux-specific partition type code
and the new msftres flag that can be used to override this type
code, should it be necessary.
* doc/parted.texi: Describe of the new msftres flag.
* include/parted/disk.in.h [_PedPartitionFlag]: Add
PED_PARTITION_MSFT_DATA.
* libparted/disk.c: Add check for PED_PARTITION_MSFT_DATA, with
return of "msftdata", to ped_partition_flag_get_name()
* libparted/labels/gpt.c (PARTITION_LINUX_DATA_GUID): Define.
[_GPTPartitionData]: New member, "int msftdata".
(_parse_part_entry): Set the msftdata flag if and only if the
PARTITION_BASIC_DATA_GUID type code is in use;
(gpt_partition_new): Use the PARTITION_LINUX_DATA_GUID
type as the default type code
(gpt_partition_set_system): Set the PARTITION_BASIC_DATA_GUID type
code on partitions on which the msftdata flag is set and set
PARTITION_LINUX_DATA_GUID as the type by default.
Clear the msftdata flag in most tests in gpt_partition_set_flag()
(gpt_partition_set_flag): Add test for PED_PARTITION_MSFT_DATA, which
sets msftdata and other flags appropriately
(gpt_partition_get_flag): Add test for the PED_PARTITION_MSFT_DATA
item that returns the status of the msftdata flag
(gpt_partition_is_flag_available): Add test for
PED_PARTITION_MSFT_DATA item to
* tests/t0220-gpt-msftres.sh: Accommodate the fact that now,
partition table listings include "msftdata" for file systems
of type NTFS and FAT*.
For more discussion and justification, see
http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10456
Diffstat (limited to 'doc')
-rw-r--r-- | doc/parted.texi | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/parted.texi b/doc/parted.texi index 1601151..b8db19d 100644 --- a/doc/parted.texi +++ b/doc/parted.texi @@ -793,6 +793,20 @@ on a partition that partition must be bootable. For PC98 disk labels, all ext2 partitions must be bootable (this is enforced by Parted). +@item msftdata +(GPT) - This flag identifies partitions that contain Microsoft filesystems +(NTFS or FAT). It may optionally be set on Linux filesystems to mimic the +type of configuration created by parted 3.0 and earlier, in which a +separate Linux filesystem type code was not available on GPT disks. This +flag can only be removed within parted by replacing it with a competing +flag, such as boot or msftres. + +@item msftres +(GPT) - This flag identifies a "Microsoft Reserved" partition, which is +used by Windows on GPT disks. Note that this flag should not normally be +set on Windows filesystem partitions (those that contain NTFS or FAT +filesystems). + @item lba (MS-DOS) - this flag can be enabled to tell MS DOS, MS Windows 9x and MS Windows ME based operating systems to use Linear (LBA) mode. @@ -907,7 +921,7 @@ which case this unit apply instead of the default unit for this particular number, but CHS and cylinder units are not supported as a suffix. If no suffix is given, then the default unit is assumed. Parted will compute sensible ranges for the locations you specify -(e.g. a range of +/- 500 MB when you specify the location in ``G'', +(e.g., a range of +/- 500 MB when you specify the location in ``G'', and a range of +/- 500 KB when you specify the location in ``M'') and will select the nearest location in this range from the one you wrote that satisfies constraints from both the operation, the |