summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* gpt: Add no_automount partition flagMike Fleetwood2022-12-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Add user requested support for GPT partition type attribute bit 63 [1] so the no-auto flag in the systemd originated Discoverable Partitions Specification [2] can be manipulated. The UEFI specification [3] says partition attribute bits 48 to 63 are partition type specific, however the DPS [2] and Microsoft [4] use the bit 63 to mean no automounting / assign no drive letter and apply it to multiple partition types so don't restrict its application. [1] Request for GPT partition attribute bit 63 "no automount" editing support https://gitlab.gnome.org/GNOME/gparted/-/issues/214 [2] The Discoverable Partitions Specification (DPS), Partition Attribute Flags https://uapi-group.org/specifications/specs/discoverable_partitions_specification/ [3] UEFI Specification, version 2.8, Table 24. Defined GPT Partition Entry - Attributes https://uefi.org/sites/default/files/resources/UEFI_Spec_2_8_final.pdf [4] CREATE_PARTITION_PARAMETERS structure (vds.h) https://learn.microsoft.com/en-gb/windows/win32/api/vds/ns-vds-create_partition_parameters Signed-off-by: Mike Fleetwood <mike.fleetwood@googlemail.com> Signed-off-by: Brian C. Lane <bcl@redhat.com>
* parted: Add display of GPT UUIDs in JSON outputArvin Schnell2022-09-301-2/+11
| | | | | | | | | | | This adds 2 new disk type features, one for the whole disk UUID and another for the per-partition UUID. It adds ped_disk_get_uuid and ped_partition_get_uuid functions to retrieve them. It adds them to the JSON output on GPT disklabeled disks as "uuid" in the disk and partitions sections of the JSON output. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* disk.in.h: Remove use of enums with #defineBrian C. Lane2022-08-041-6/+9
| | | | | | | | | | The preprocessor doesn't evaluate the enum, so it ends up being 0, which causes problems for library users like pyparted which try to use the _LAST value to conditionally include support for newer flags. Instead just define the int that is the first and last entry in each enum. Thanks to adamw and dcantrell for help arriving at a solution.
* libparted: add swap flag for DASD labelArvin Schnell2022-05-131-2/+0
| | | | | | | | Support the swap flag and fix reading flags from disk. Also cleanup code by dropping the 2 flags "raid" and "lvm" from DasdPartitionData and instead use "system" directly. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* parted: add type commandArvin Schnell2022-05-131-3/+20
| | | | | | | | | Include the partition type-id and type-uuid in the JSON output. Also add the the command 'type' to set them. Remove redundant flags from DosPartitionData and use only the system variable. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* maint: Update copyright statements to 2022Brian C. Lane2022-03-2313-13/+13
| | | | By running make update-copyright
* gpt: Add linux-home flagArvin Schnell2021-09-301-2/+3
| | | | | | | This sets the partition GUID to the linux home type: 933AC7E1-2EB4-4F13-B844-0E14E2AEF915 Signed-off-by: Brian C. Lane <bcl@redhat.com>
* Move Exception Option values into enumBrian C. Lane2021-08-101-11/+16
| | | | | | | | | | | | | | | | | | Adding enums together doesn't create a new enum value, so when compiling with warnings you will get warnings like: warning: case value ‘96’ not in enumerated type for PED_EXCEPTION_IGNORE_CANCEL This moved the defines into the enum as new values so that they are recognized as valid members of the enum with the values staying the same. NOTE: PED_EXCEPTION_OPTION_LAST *MUST* be the last of the individual options, not the combined options. Thanks to D. Hugh Redelmeier for this patch.
* libparted: Add includes for gnulib redefining freeBrian C. Lane2021-01-281-0/+6
| | | | | | | | gnulib redefines free using #define, causing problems with the pt-common.h file. Work around that by including standard header files as suggested by gnulib maintainer: https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00315.html
* maint: Update copyright statements to 2021Brian C. Lane2021-01-1813-13/+13
| | | | By running make update-copyright
* maint: Update copyright statements to 2020Brian C. Lane2020-12-1113-20/+22
| | | | By running make update-copyright
* libparted: Add support for bls_boot to GPT disksBrian C. Lane2019-12-201-2/+3
| | | | | | This sets the partition GUID to bc13c2ff-59e6-4262-a352-b275fd6f7172 to indicate that the partition is a Boot Loader Specification compatible /boot partition.
* libparted: Add ChromeOS Kernel partition flagAlper Nebi Yasak2019-12-201-2/+3
| | | | | | | | | | | | | | | | | | | | This adds a GPT-only partition type flag, chromeos_kernel, for use on Chrome OS machines, with GUID FE3A2A5D-4F32-41A7-B725-ACCC3285A309. The firmware/bootloader in these machines relies on special images being written to partitions of this type. Among multiple such partitions, it decides which one it will boot from based on the GUID-specific partition attributes. This patch is not intended to and does not manipulate these bits. Google refers to these partitions as "ChromeOS kernel" partitions. They also define partitions for rootfs, firmware, and a reserved one; but these are not necessary for the boot flow and are not included here. Relevant ChromiumOS documentation: https://www.chromium.org/chromium-os/chromiumos-design-docs/disk-format Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
* maint: Update copyright statements to 2019Brian C. Lane2019-08-1213-16/+22
| | | | By running make update-copyright
* Add gcc malloc attribute to ped_alloc and ped_callocBrian C. Lane2019-08-091-2/+2
|
* include/parted/unit.in.h: Specify const attribute to ped_unit_get_name()Shin'ichiro Kawasaki2019-08-091-1/+1
| | | | | | | | | | | | | | | | | | GCC 8 fails to compile libparted/unit.c with an error: CC unit.lo unit.c:155:1: error: function might be candidate for attribute 'const' [-Werror=suggest-attribute=const] ped_unit_get_name (PedUnit unit) ^~~~~~~~~~~~~~~~~ CC disk.lo cc1: all warnings being treated as errors Const attribute is required for the function ped_unit_get_name() because its return value is not affected by program status. To avoid the build failure, change attribute of the function from pure to const. Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp> Signed-off-by: Brian C. Lane <bcl@redhat.com>
* Change 'time stamp' to 'timestamp'Brian C. Lane2019-08-091-2/+2
| | | | Caught by make syntax-check
* ped_unit_get_name: Resolve conflicting attributes 'const' and 'pure'dann frazier2018-10-161-1/+1
| | | | | | | | | | | The const and pure attributes conflict: error: ignoring attribute 'const' because it conflicts with attribute 'pure' [-Werror=attributes] pure functions may access global memory, const functions may not. ped_unit_get_name() accesses non-local variable unit_names, so drop const. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* Add support for NVDIMM devicesSebastian Parschauer2017-12-191-1/+2
| | | | | | | | | | | | | | | | | | | Recognize NVDIMM devices, so that "parted -s /dev/pmem7 p" now prints "Model: NVDIMM Device (pmem)" instead of "Model: Unknown (unknown)". In order for a device to be recognized as NVDIMM, it has to have a 'blkext' major number. But since this major can be used also by other device types, we also check that the device path contains 'pmem' as a substring. * NEWS: Mention the change * include/parted/device.h.in(PedDeviceType): Add PED_DEVICE_PMEM * libparted/arch/linux.c(_device_probe_type): Recognize NVDIMM devices. * libparted/arch/linux.c(linux_new): Handle NVDIMM devices. * parted/parted.c(do_print): Add "pmem" to list of transports. Signed-off-by: Sebastian Parschauer <sparschauer@suse.de>
* Add support for RAM drivesSebastian Parschauer2017-05-011-1/+2
| | | | | | | | | | | | | | | | | | | Recognize RAM drives, so "parted -s /dev/ram0 p" now prints "RAM Drive (brd)" instead of "Model: Unknown (unknown)". In order for a device to be recognized as RAM drive, it has to have major number 1. Also the BLKFLSBUF ioctl shouldn't be used on RAM drives as it is used to zero the device. * NEWS: Mention the change * include/parted/device.h.in(PedDeviceType): Add PED_DEVICE_RAM. * libparted/arch/linux.c(RAM_MAJOR): New define. * libparted/arch/linux.c(_device_probe_type): Recognize RAM drives. * libparted/arch/linux.c(linux_new): Handle RAM drives. * libparted/arch/linux.c(_flush_cache): Skip RAM drives. * parted/parted.c(do_print): Add "brd" to list of transports. Signed-off-by: Sebastian Parschauer <sparschauer@suse.de>
* libparted/dasd: add new fdasd functionsWang Dong2016-12-221-0/+4
| | | | | | | | | | | | | | | Introduce a set of new functions from the fdasd utility of the s390-tools to keep the code base in parted and s390-tools in sync. These new functions are: fdasd_check_volser(): validate the volser input fdasd_get_volser(): get volume serial (volser) fdasd_change_volser(): change volser with string fdasd_reuse_vtoc(): re-create vtoc labels based on the existing vtoc Signed-off-by: Wang Dong <dongdwdw@linux.vnet.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Brian C. Lane <bcl@redhat.com>
* libparted/dasd: update and improve fdasd functionsWang Dong2016-12-221-8/+6
| | | | | | | | | | | Update the fdasd_anchor_t data structure and the fdasd_cleanup() function. Also correct vtoc_changed and vlabel_changed accounting because they are important to rewrite vtoc to save the changes. Wang Dong <dongdwdw@linux.vnet.ibm.com> Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Brian C. Lane <bcl@redhat.com>
* libparted/dasd: unify vtoc handling for cdl/ldlWang Dong2016-12-221-15/+19
| | | | | | | | | Merge volume label cdl and ldl. It is convenient to manipulate the same structure. Also remove unused arguments in the functions. Signed-off-by: Wang Dong <dongdwdw@linux.vnet.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Brian C. Lane <bcl@redhat.com>
* Add support for NVMe devicesPetr Uzel2016-06-231-1/+2
| | | | | | | | | | | | | | | | | | | | Recognize NVMe Devices, so "parted -s /dev/nvme0n1" now prints "NVMe Device (nvme)" instead of "Model: Unknown (unknown)". In order for a device to be recognized as NVMe, it has to have a 'blkext' major number. But since this major can be used also by other device types, we also check the device path contains 'nvme' as a substring. * NEWS: Mention the change * include/parted/device.h.in(PedDeviceType): Add PED_DEVICE_NVME * libparted/arch/linux.c(BLKEXT_MAJOR): New define. * libparted/arch/linux.c(_is_blkext_major): New function. * libparted/arch/linux.c(_device_probe_type): Recognize NVMe devices. * libparted/arch/linux.c(linux_new): Handle NVMe devices. * parted/parted.c(do_print): Add "nvme" to list of transports. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* fdasd: geometry handling updated from upstream s390-toolsViktor Mihajlovski2015-10-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Remove the necessity for DASD-specific ioctls for partition handling. This allows to correctly handle DASD-backed virtio block devices. Note that this is necessary because virtio is just the transport. A DASD, even if provided via virtio, still has it's unique characteristics, which means that only traditional DASD partition table formats can be used (no MBR, GPT, or similar). Use bzero for initialization to make sure all struct members are properly cleared. Also changed partition list handling code to be more similar to upstream s390-tools fdasd. Further, enhanced error handling capabilities by providing a return code by fdasd_get_geometry. Code is largely backported from s390-tools project. Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com> Acked-by: Stefan Haberland <stefan.haberland@de.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Brian C. Lane <bcl@redhat.com>
* maint: run "make update-copyright"Jim Meyering2014-05-2513-13/+13
|
* libparted: Avoid dasd as default disk type while probeNageswara R Sastry2014-04-291-0/+1
| | | | | | | This patch avoids setting 'dasd' as a default disk type for 'disk image file' at the time of probe. Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com>
* libparted: mklabel to support EAV DASDNageswara R Sastry2014-04-291-1/+0
| | | | | | | | Extended Address Volume (EAV) DASDs are ECKD DASDs with more than 65520 cylinders. This patch adds support for mklabel to properly handle unformatted EAV DASDs. Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com>
* libparted: add support for EAV DASD partitionsNageswara R Sastry2014-04-292-18/+130
| | | | | | | | | | | | | Extended Address Volume (EAV) DASDs are ECKD DASDs with more than 65520 cylinders. This patch adds support for recognizing and modifying partitions on EAV DASDs to Parted. The changes are based on the EAV support added to version 1.8.1 [1] of the s390-tools package. [1] http://www.ibm.com/developerworks/linux/linux390/s390-tools-1.8.1.html Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com> Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
* libparted: add support for implicit FBA DASD partitionsNageswara R Sastry2014-04-291-0/+2
| | | | | | | | | | | | | | | | | | | | Fixed Block Access (FBA) DASDs are mainframe-specific disk devices which are layed out as a sequence of 512-byte sectors. In contrast to ECKD DASDs, these disks do not require formatting and resemble the LBA layout of non-mainframe disks. Despite this resemblance, the Linux kernel applies special handling during partition detection for FBA DASDs, resulting in a single, immutable partition being reported. While actual FBA DASD hardware is no longer available, the z/VM hypervisor can simulate FBA DASD disks, backed by either ECKD or SCSI devices. This patch adds support for recognizing FBA DASD partitions to parted. Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com> Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
* Fix filesystem detection on non 512 byte sectorsPhillip Susi2014-04-181-1/+0
| | | | | | Enable probing for filesystems with non 512 byte sectors, and fix up each filesystem to correctly handle that. Remove unused field from the fs type structure listing acceptable sector sizes.
* libparted: Add UEFI System Partition flag.Brian C. Lane2014-03-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | This adds support for the ESP partition type on MS-DOS. It also aliases it to the boot flag on GPT which sets the ESP GUID type. * NEWS (New Features): Mention it. * doc/C/parted.8: Document esp flag. * doc/parted.texti: Document esp flag. * include/parted/disk.in.h (_PedPartitionFlag): Add PED_PARTITION_ESP flag * libparted/disk.c (ped_partition_flag_get_name): Add esp flag * libparted/labels/dos.c (DosPartitionData): Likewise (raw_part_parse): Likewise (msdos_partition_new): Likewise (msdos_partition_duplicate): Likewise (msdos_partition_set_system): Likewise (clear_flags): Likewise (msdos_partition_set_flag): Likewise (msdos_partition_get_flag): Likewise (msdos_partition_is_flag_available): Likewise * libparted/labels/gpt.c (gpt_partition_set_flag): Add PED_PARTITION_ESP (gpt_partition_get_flag): Likewise (gpt_partition_is_flag_available): Likewise
* libparted: Add Intel Rapid Start Technology partition flag.Brian C. Lane2014-03-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the irst partition type flag. Sets the type to 0x84 on MS-DOS and D3BFE2DE-3DAF-11DF-BA-40-E3A556D89593 on GPT. * NEWS (New Features): Mention it. * doc/C/parted.8: Document irst flag. * doc/parted.texti: Document irst flag. * include/parted/disk.in.h (_PedPartitionFlag): Add PED_PARTITION_IRST flag * libparted/disk.c (ped_partition_flag_get_name): Add irst flag * libparted/labels/dos.c (DosPartitionData): Likewise (raw_part_parse): Likewise (msdos_partition_new): Likewise (msdos_partition_duplicate): Likewise (msdos_partition_set_system): Likewise (clear_flags): Likewise (msdos_partition_set_flag): Likewise (msdos_partition_get_flag): Likewise (msdos_partition_is_flag_available): Likewise * libparted/labels/gpt.c: Add PARTITION_IRST_GUID (GPTPartitionData): Add irst flag (_parse_part_entry): Likewise (gpt_partition_new): Likewise (gpt_partition_set_system): Likewise (gpt_partition_set_flag): Likewise (gpt_partition_get_flag): Likewise (gpt_partition_is_flag_available): Likewise
* maint: update all copyright year number rangesJim Meyering2013-01-0613-13/+13
| | | | Run "make update-copyright".
* add support for a new Linux-specific GPT partition type codeRoderick W. Smith2012-09-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* build: prefer pattern rules over suffix rulesStefano Lattarini2012-08-301-2/+1
| | | | | | | | | | | | | That is acceptable, because the GNU parted build system already requires GNU make anyway: the $(subst ...) built-in is used in the common recipe for the 'ss-1024', 'ss-2048' and 'ss-4096' targets in Makefile.am. * include/parted/Makefile.am (.in.h.h): Rename ... (%.h: %.in.h): ... as this pattern rule. (SUFFIXES): Delete, no more needed. Copyright-paperwork-exempt: yes
* lib-fs-resize: re-add HFS and FAT file-system-related codeJim Meyering2012-02-071-0/+6
| | | | | This just adds the code, without hooking it up yet. * po/POTFILES.in: Add all libparted/fs/r/**.c files.
* libparted: remove ped_realloc, now unusedJim Meyering2012-02-031-1/+0
| | | | | * include/parted/parted.in.h (ped_realloc): Remove declaration. * libparted/libparted.c (ped_realloc): Remove definition.
* gpt: add commands to manipulate pMBR boot flagMatthew Garrett2012-02-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | Some BIOS systems will only boot from GPT partitions if the boot flag is set on the protective MBR partition. This adds the ability to set this flag using the disk_set and disk_toggle commands. * include/parted/disk.in.h (_PedDiskFlag): Add PED_DISK_GPT_PMBR_BOOT * libparted/disk.c (ped_disk_flag_get_name): Add PED_DISK_GPT_PMBR_BOOT * libparted/labels/gpt.c (_GPTDiskData): Add pmbr_boot flag. (gpt_alloc): Init pmbr_boot to 0. (gpt_read_headers): Set pmbr_boot state from PMBR boot flag. (_write_pmbr): Add pmbr_boot flag and set PMBR boot flag from it. (gpt_write): Pass pmbr_boot flag through to _write_pmbr (gpt_disk_set_flag): New function (gpt_disk_is_flag_available): New function (gpt_disk_get_flag): New function (gpt_disk_ops): Add disk_set_flag, disk_get_flag, disk_is_flag_available * parted/parted.c (do_disk_set): New function (do_disk_toggle): New function (_init_commands): Add do_disk_set and do_disk_toggle * parted/ui.c (command_line_get_disk_flag): New function * parted/ui.h: Add command_line_get_disk_flag prototype.
* maint: remove "MAINTAINERCLEANFILES = Makefile.in" from Makefile.am'sJim Meyering2012-01-112-4/+1
| | | | | | | | | | | | | | * debug/Makefile.am: As above. * debug/test/Makefile.am: Likewise. * doc/C/Makefile.am: Likewise. * doc/pt_BR/Makefile.am: Likewise. * include/Makefile.am: Likewise. * include/parted/Makefile.am: Likewise. * libparted/Makefile.am: Likewise. * libparted/fs/Makefile.am: Likewise. * libparted/tests/Makefile.am: Likewise. * partprobe/Makefile.am: Likewise. * doc/Makefile.am: Likewise, for mdate-sh and texinfo.tex.
* maint: rename public .h files to .in.hJim Meyering2012-01-0916-2/+35
| | | | | | | | | | | | Generate .h files from .in.h files, so that we can continue to use _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST in the primary sources, without including them in publicly-installed files. Each generated (and later installed) header file gets expansions of those macros. * include/parted/Makefile.am: New rules. * .gitignore: Ignore the generated files. * Makefile.am (SUBDIRS): Reorder so we build in include/ before libparted, i.e., so that we generate the .h files we'll need.
* parted.h: use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE in VC'd filesJim Meyering2012-01-091-4/+1
| | | | | | However, we will replace those strings with their expansions when installing them. * include/parted/parted.h: Revert part of commit v3.0-83-gd51bfc0.
* libparted: don't use _GL_ATTRIBUTE_CONST in public parted.h, ...Jim Meyering2012-01-081-1/+10
| | | | | | | Instead, use the bare __attribute__((__const__)). * include/parted/parted.h (__attribute): Define. (ped_get_version): Use open-coded __attribute. Prompted by a report from Keshav P R.
* maint: update all copyright year number rangesJim Meyering2012-01-0113-13/+14
| | | | Run "make update-copyright".
* build: mark functions with "const" or "pure" attribute, per gcc warningsJim Meyering2011-12-0310-38/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use _GL_ATTRIBUTE_PURE or _GL_ATTRIBUTE_CONST. Mark static functions at point of definition; extern ones at point of declaration. * include/parted/crc32.h: * include/parted/device.h: Likewise. * include/parted/disk.h: Likewise. * include/parted/exception.h: Likewise. * include/parted/filesys.h: Likewise. * include/parted/geom.h: Likewise. * include/parted/natmath.h: Likewise. * include/parted/parted.h: Likewise. * include/parted/unit.h: Likewise. * libparted/arch/linux.c: Likewise. * libparted/disk.c: Likewise. * libparted/exception.c: Likewise. * libparted/fs/amiga/amiga.h: Likewise. * libparted/labels/aix.c: Likewise. * libparted/labels/bsd.c: Likewise. * libparted/labels/dos.c: Likewise. * libparted/labels/dvh.c: Likewise. * libparted/labels/efi_crc32.c: Likewise. * libparted/labels/gpt.c: Likewise. * libparted/labels/mac.c: Likewise. * libparted/labels/pc98.c: Likewise. * libparted/labels/rdb.c: Likewise. * libparted/labels/sun.c: Likewise. * libparted/unit.c: Likewise. * parted/ui.c: Likewise. * parted/strlist.c: Likewise. * parted/strlist.h: Likewise. * libparted/tests/common.h (_implemented_disk_label): Mark as pure. * libparted/cs/natmath.c (extended_euclid): Mark as pure.
* maint: unmark PedDeviceType as deprecatedPetr Uzel2011-10-011-3/+1
| | | | | | | PedDeviceType was marked as deprecated before parted started using git. Since it proved to be useful to differentiate between different device types, and nobody seems interested in removing it from the API, let's clear the deprecated flag.
* libparted: differentiate between plain files and loop devicesPetr Uzel2011-09-291-1/+2
| | | | | | | | Stop using PED_DEVICE_FILE for loopback devices; loopback are significantly different from plain files. * include/parted/device.h (PedDeviceType): Add PED_DEVICE_LOOP. * libparted/arch/linux.c (_device_probe_type): Detect loopback device. * parted/parted.c (do_print): Add "loopback" to list of transports.
* remove all top-level FS-op code and the clearfat programJim Meyering2011-05-271-14/+0
|
* UI: remove all file-system-aware sub-commandsJim Meyering2011-05-271-20/+0
| | | | | | | | | | | | Note that we are removing the resize command, even though parted appears to be the only free tool that provides the ability to resize FAT16 and FAT32 file systems. * parted/parted.c (do_mkfs, do_cp, do_mkpartfs): Remove functions. (do_move, do_check, do_resize): Likewise. (_init_commands): Remove each command-definition clause. * parted/parted.c (_partition_warn_loss): Remove now-unused function. * include/parted/filesys.h: Remove declarations of now-removed FS-munging functions
* Remove PED_ASSERT action argumentBrian C. Lane2011-03-051-3/+3
| | | | | | The action argument was a leftover from when the PED_ASSERT macro was last changed. This removes that argument from the macro and from all occurrences of it.