summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* maint: Add .dirstamp files to .gitignoreHEADmasterYegor Yefremov2023-05-151-0/+1
| | | | Signed-off-by: Brian C. Lane <bcl@redhat.com>
* parted: link to libuuidYegor Yefremov2023-05-111-0/+2
| | | | | | | | parted.c uses libuuid since 61b3a9733c0e0a79ccc43096642d378c8706add6. Hence, add UUID_LIBS to PARTED_LIBS to avoid "DSO missing from command line" error. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* maint: post-release administriviaBrian C. Lane2023-04-103-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.6v3.6Brian C. Lane2023-04-101-1/+1
| | | | * NEWS: Record release date.
* NEWS: Releasing stable version 3.6Brian C. Lane2023-04-101-0/+1
|
* maint: post-release administriviaBrian C. Lane2023-03-243-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.5.28v3.5.28Brian C. Lane2023-03-241-1/+1
| | | | * NEWS: Record release date.
* NEWS: Update newsBrian C. Lane2023-03-241-0/+11
|
* tests: Fix syntax-check warning about grep -qBrian C. Lane2023-03-241-1/+1
|
* maint: Update copyright statements to 2022Brian C. Lane2023-03-24239-241/+241
| | | | By running make update-copyright
* maint: Bump library REVISION number for releaseBrian C. Lane2023-03-242-2/+2
|
* maint: Update README-releaseBrian C. Lane2023-03-241-0/+2
|
* maint: Update to latest gnulib and bootstrap scriptBrian C. Lane2023-03-242-622/+1011
|
* parted: Fix ending sector location when using kibi IEC suffixBrian C. Lane2023-03-173-11/+51
| | | | | | | | | | | | | | | | | This fixes a bug when using KiB to specify the ending location of a partition. It was not subtracting 1s like it does with the other units because it was looking for a 'k' not a 'K'. This also fixes a quirk of the suffix checking code, it would check for matching case, but converting to the actual IEC value was case insensitive. This now uses common functions for the matching so that case doesn't matter. It also adds tests to check for the fix. The only change in behavior is that using KiB to specify the ending location of a partition will now correctly create the end 1s lower than the specified location like it does for MiB, GiB, etc.
* tests: Fix formatting and snprintf warnings in tests.Brian C. Lane2023-02-152-2/+2
| | | | | | | | | | The assert message includes sector values, which are long long int, so use the proper formatting of %lld. The snprintf warning complained about trying to write 258 bytes so I bumped the buffer size up to 259. The return value is already being checked for truncation so this is just to keep the compiler happy without having to suppress the warning.
* ui: Add checks for prompt being NULLBrian C. Lane2023-02-151-2/+5
| | | | | | | | Also removes a cast from const char* to char* when passing to readline that doesn't appear to be necessary any longer. Added asserts to make sure prompt isn't NULL after strdup and realloc calls.
* strlist: Handle realloc error in wchar_to_strBrian C. Lane2023-02-151-0/+2
| | | | | | It could return a NULL if the realloc fails. This handles the failure in the same way as other failures in wchar_to_str, it exits immediately with an error message.
* libparted: Fix potential NULL dereference in ped_disk_next_partitionBrian C. Lane2023-02-151-1/+4
|
* filesys: Check for null from close_fnBrian C. Lane2023-02-151-1/+2
| | | | If the filesystem type name isn't known it can return a NULL.
* tests: Fixing libparted test framework usageBrian C. Lane2023-02-077-30/+39
| | | | | | The fail and fail_if functions from libcheck are deprecated, replace them with ck_abort_msg and ck_assert_msg. Note that the logic of assert is the opposite of fail_if.
* libparted: Fix problem with creating 1s partitionsBrian C. Lane2023-02-064-1/+75
| | | | | | | | | There was a 1-off error in _partition_get_overlap_constraint that prevented partitions from being created in 1s free space. You could create 1s partitions as long they were done in order, but not after leaving 'holes'. This fixes this and adds tests for it on msdos and gpt disklabels.
* tests: XFS requires a minimum size of 300MBrian C. Lane2022-12-133-3/+4
|
* gpt: Add no_automount partition flagMike Fleetwood2022-12-135-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | 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-306-8/+142
| | | | | | | | | | | 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>
* tests: Add a libparted test for ped_partition_set_system on msdosBrian C. Lane2022-08-151-0/+35
| | | | | Test the libparted API to make sure the flag is not cleared by calling ped_partition_set_system.
* libparted: Fix handling of msdos partition typesBrian C. Lane2022-08-151-8/+46
| | | | | | | | | | | | | This restores the previous behavior by testing the partition type against the list of known types and skipping the filesystem type reset. Now the sequence of: ped_partition_new(...) ped_partition_set_flag(part, PED_PARTITION_BLS_BOOT, 1); ped_partition_set_system(part, ped_file_system_type_get("ext4")); Will keep the type set to PED_PARTITION_BLS_BOOT, which is how it used to behave.
* tests: Add a libparted test for ped_partition_set_system on gptBrian C. Lane2022-08-153-2/+108
| | | | | Test the libparted API to make sure the flag is not cleared by calling ped_partition_set_system.
* libparted: Fix handling of gpt partition typesBrian C. Lane2022-08-151-2/+43
| | | | | | | | | | | | | This restores the previous behavior by testing the GUID against the list of known types and skipping the filesystem GUID reset. Now the sequence of: ped_partition_new(...) ped_partition_set_flag(part, PED_PARTITION_BIOS_GRUB, 1); ped_partition_set_system(part, ped_file_system_type_get("ext4")); Will keep the GUID set to PED_PARTITION_BIOS_GRUB, which is how it used to behave.
* 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.
* parted: Simplify code for json outputArvin Schnell2022-07-271-3/+2
| | | | | | | | | _PedDiskOps::get_max_primary_partition_count is always available, the macro PT_op_function_initializers ensures it. So use ped_disk_get_max_primary_partition_count instead of _PedDiskOps::get_max_primary_partition_count directly. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* libparted: Fix check for availability of _type_id functionsArvin Schnell2022-07-271-2/+2
| | | | | | | | Fix a copy/paste error. In practice this didn't cause any problems because the *_set_type_id and *_get_type_id are either both NULL or both set to the function. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* tests: t3200-type-change now passesBrian C. Lane2022-05-131-3/+0
|
* parted: Reset the filesystem type when changing the id/uuidBrian C. Lane2022-05-131-0/+3
| | | | | | Without this the print command keeps showing the type selected with mkpart, which doesn't match the id/uuid set by the user. So rescan the partition for a filesystem.
* libparted: add swap flag for DASD labelArvin Schnell2022-05-132-70/+50
| | | | | | | | 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-1319-343/+825
| | | | | | | | | 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: post-release administriviaBrian C. Lane2022-04-183-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.5v3.5Brian C. Lane2022-04-181-1/+1
| | | | * NEWS: Record release date.
* NEWS: Mention gnulib updateBrian C. Lane2022-04-181-0/+3
|
* maint: Update to latest gnulib and bootstrap scriptBrian C. Lane2022-04-181-0/+0
|
* maint: post-release administriviaBrian C. Lane2022-04-053-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.4.64.2v3.4.64.2Brian C. Lane2022-04-051-1/+1
| | | | * NEWS: Record release date.
* NEWS: Mention bugfixBrian C. Lane2022-04-051-0/+3
|
* bug#54649: [PATCH] usage: remove the mention of "a particular partition"Benno Schulenberg2022-03-311-2/+1
| | | | | | This complements commit b20227adf5 from five months ago. Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
* maint: post-release administriviaBrian C. Lane2022-03-303-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.4.64v3.4.64Brian C. Lane2022-03-301-1/+1
| | | | * NEWS: Record release date.
* NEWS: Add new features and bugsBrian C. Lane2022-03-291-0/+31
|
* doc: Add KiB and mention rescue in documentationBrian C. Lane2022-03-282-2/+2
|
* configure.ac: Add AC_CONFIG_MACRO_DIRBrian C. Lane2022-03-251-0/+1
|
* configure.ac: Add -Wno-portabilityBrian C. Lane2022-03-251-1/+1
| | | | | This is to quiet automake warnings about Makefile.am files using GNU make extensions like pattern rules.
* configure.ac: Update macros for autoconf 2.71Brian C. Lane2022-03-251-9/+9
|