2026-09-23  Brian C. Lane  <bcl@redhat.com>

	version 3.8
	* NEWS: Record release date.

	NEWS: Releasing stable version 3.8

	maint: Update to latest gnulib

2026-09-17  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.7.14
	* NEWS: Record release date.

	maint: Update to latest gnulib

	NEWS: Update news for next release

2026-09-17  Brian C. Lane  <bcl@redhat.com>

	hurd: Fix gnu_read problems with block size > 512b
	This fixes offset calculations when the block size is larger than 512b
	by checking for negative offsets, and skips the copy of the length is
	zero.

	NOTE: This error was found by an AI scan of parted by AISLE, and the
	patch is mostly the patch suggested by the analysis. It has been
	reviewed by Samuel and I.

	Assisted-by: AISLE in partnership with Red Hat

2026-09-14  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.7.13
	* NEWS: Record release date.

	NEWS: Update news for next release

	maint: Update copyright statements to 2026
	by running make update-copyright

	maint: Update to latest gnulib and bootstrap script

	parted: Fix partition number allocation in do_print
	GPT can have up to 8192 partitions, but we only allocate 4 bytes (two of
	which are for a space and a \0). Increase this to 6 so that more than 99
	partitions doesn't overflow the temporary variable.

2026-09-14  Brian C. Lane  <bcl@redhat.com>

	fdasd: Make sure data set name is positive
	Passing a negative value, eg. PART-999, to atoi could result in passing
	a negative value to the setpos call when it writes f1_counter.

	This adds an exception check to ensure the result of the atoi is always
	positive, and it preserves the rest of the logic which depends on n being
	1 less than the value.

2026-09-14  Brian C. Lane  <bcl@redhat.com>

	resize: Make sure hfsc_new_cachetable cannot overflow on 32bit
	Add a couple of PED_ASSERT checks on size to make sure the ped_malloc
	call doesn't allocate less than expected.

	resize: Make sure 32bit build cannot overflow frag_count
	Add a couple of PED_ASSERT checks to fat_op_context_new that make sure
	the frag_count value can be allocated. Does not effect 64bit
	architectures.

2026-09-14  Brian C. Lane  <bcl@redhat.com>

	libparted: Catch FAT metadata triggered errors
	Bad metadata can trigger a buffer overflow in fat resize code. Trigger
	an assert when the sector count is too large, or malloc is called with a
	size of 0

	Adds a new test that checks to make sure that the assert is triggered.
	This includes a test for deep directory traversal which should be caught
	by glibc and reported as 'buffer overflow detected'.

	This also includes a check on the flag_traverse_dir dir_name length to
	prevent an overflow of the 4k buffer with deeply nested directories.
	Also include a test for this assertion.

	WARNING: parted should be build with debug enabled (which is the
	default) this enables a large number of PED_ASSERT checks which catch
	various conditions like these.

	This fixes two CVE's:
	 - CVE-2026-89085 - heap buffer overflow in _init_fats / fat_table_read
	 - CVE-2026-89088 - heap buffer overflow in duplicate_legacy_root_dir

2026-06-26  Victor Couty  <victor@couty.eu>

	Adding support for ExFAT filesystem
	Added and registered exfat probing function
	Updated msdos label probe to properly detect full-disk exfat fs
	Reflected ExFAT support in doc
	Added ExFAT detection test in t1700-probe-fs.sh

2026-04-24  Brian C. Lane  <bcl@redhat.com>

	Cleanup zero as null pointer constant warnings
	Pointer types should be set to NULL, not zero. gcc is now warning about
	these with:
	  warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]

	This cleans up all the uses found when running make with gcc 16.0.1

2026-04-14  Brian C. Lane  <bcl@redhat.com>

	README-release: Fix typos in doxygen instructions

2026-04-14  Colin Watson  <cjwatson@debian.org>

	maint: Distribute Doxyfile
	This makes it easier for downstream packages to ship API documentation
	(see e.g. https://bugs.debian.org/1119679).

	* Makefile.am (EXTRA_DIST): Add Doxyfile.

2026-04-14  bug-parted@gnu.org  <bug-parted@gnu.org>

	bug#80795: [PATCH] build: mark functions with const attribute, per gcc warnings
	fixes warning since glibc-2.43

	For ISO C23, the functions wcschr that return pointers into their
	input arrays now have definitions as macros that return a pointer
	to a const-qualified type when the input argument is a pointer to a
	const-qualified type.

	../../parted/strlist.c: In function 'wchar_strchr':
	../../parted/strlist.c:61:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
	   61 |         return wcschr (str, ch);
	      |                ^~~~~~

2026-04-08  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.7
	* NEWS: Record release date.

	NEWS: Releasing stable version 3.7

2026-03-24  Brian C. Lane  <bcl@redhat.com>

	README-release: Add missing perl Digest SHA3 package
	and reword the release tag paragraph to make it more clear that the
	script makes the changes, not you.

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.6.37
	* NEWS: Record release date.

	maint: regenerate .po, .pot files

	NEWS: Update news

2026-03-24  Mike Fleetwood  <mike.fleetwood@googlemail.com>

	tests: t2420: New test confirming updating msdos doesn't add boot code

2026-03-24  Mike Fleetwood  <mike.fleetwood@googlemail.com>

	libparted: Stop adding boot code in MBR when updating msdos table
	fdisk from util-linux doesn't write boot code into the msdos MBR when it
	updates the partition table.  Neither does libparted when updating the
	protective partition in the MBR as part of a GPT.  Writing boot code is
	the responsibility of boot loader installation, not a partitioning tool.

	New behaviour, matching what fdisk does:
	1. If there's no recognisable msdos partition table then a new MBR will
	   be written including zeroed boot code.
	2. When updating an msdos partition table existing boot code in the MBR
	   will be maintained.

	Original report:
	Unwanted install of loader in MBR
	https://gitlab.gnome.org/GNOME/gparted/-/issues/205

2026-03-23  Pascal Hambourg  <pascal@plouf.fr.eu.org>

	disk.c: Update metadata after reading partition table
	Make sure metadata and free space are updated after reading the
	partition table. Else non-standard metadata length for an empty GPT
	table may be incorrectly reported until a change is performed.

	Fixes: #79720

2026-03-23  Felipe Magno de Almeida  <felipe@expertise.dev>

	Fix initialization of atr_c_locale inside PED_ASSERT
	PED_ASSERT is disabled when used --disable-debug, which causes the
	expression to not be executed and atr_c_locale never being assigned
	and a crash on ped_disk_atari_done when exiting the application.

2026-03-23  Brian C. Lane  <bcl@redhat.com>

	fat: Reword the failed to resize error

	doc: Add more detail to --script documentation

	Change AUTHORS urls to point to savannah.gnu.org

	bootstrap.conf: Remove unused gnulib-tests

	doc: API documentation moved to API.md

	cfg.mk: Adjust maint.mk for the parted codebase
	- Do not complain about u_int* which is extensively used in s390 code
	- Do not complain about u_short which is used in the bsd code
	- Do not run indent check

2026-03-17  Brian C. Lane  <bcl@redhat.com>

	maint: Mention COPYING and INSTALL in README

	Upate include error.h

	tests: Use license URL not the old address

	doc: Use license URL not the old address

	maint: Update copyright statements to 2026
	By running make update-copyright

	maint: Update to latest gnulib and bootstrap script

2025-10-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	hurd: Support USB device names

2025-05-30  Brian C. Lane  <bcl@redhat.com>

	doc: Fix some groff/mandoc linting complaints

2025-05-30  Anton Butenko  <abutenko@akamai.com>

	nilfs2: Fixed possible sigsegv in case of corrupted superblock
	bytes value comes from the superblock and it must be at least as long as
	s_sum which is a 32 bit value. So sumoff + 4 is the correct lower limit
	for it, not sumoff - 4.

2025-05-30  Pascal Hambourg  <pascal@plouf.fr.eu.org>

	libparted: Do not detect ext4 without journal as ext2
	ext4 may have other incompatible features than journal and cannot be
	mounted as ext2 by linux, so detect it as ext4 even without journal
	if it has other incompatible features.

2025-05-28  Brian C. Lane  <bcl@redhat.com>

	tests: probing ext4 without journal should still indicate ext4
	t1700 tests a fix for the ext filesystem probe code, it was previously
	returning ext2 when the filesystem is really ext4 without a journal.

	t3200 is updated to reflect the correct filesystem type -- it creates a
	fs too small for a journal so it used to identify it as ext2 but now
	correctly identifies it as ext4.

2025-01-08  Brian C. Lane  <bcl@redhat.com>

	tests: Add test for dvh with a bad checksum
	When using script mode it should return an unknown partition type, not
	dvh, because the exception is unhandled.

	libparted: Fix dvh disklabel unhandled exception
	When an exception is using PED_EXCEPTION_IGNORE_CANCEL it should check
	for !PED_EXCEPTION_IGNORE so that an unhandled exception is treated the
	same as cancel. Otherwise it could lead to using the disklabel with
	incorrect values.

	tests: Add test for SUN disklabel handling
	When fixed the output from script mode should be an unknown disklabel,
	not sun.

2025-01-08  Brian C. Lane  <bcl@redhat.com>

	libparted: Fix sun disklabel unhandled exception
	The CHS warning should only continue if ignored, not if unhandled.

	Script mode, or exception handlers can return PED_EXCEPTION_UNHANDLED
	which should act the same as a cancel. Previously it would only exit if
	cancel was selected, allowing it to continue to use the bad CHS and
	crash later.

2024-11-20  Rudi Heitbaum  <rudi@heitbaum.com>

	bug#74444: [PATCH] parted: fix do_version declaration
	With gcc 15-20241117 compile fails with the below error, update the
	do_version declaration to match the header in command.h

	../../parted/parted.c: In function '_init_commands':
	../../parted/parted.c:2469:9: error: passing argument 2 of 'command_create' from incompatible pointer type [-Wincompatible-pointer-types]
	 2469 |         do_version,
	      |         ^~~~~~~~~~
	      |         |
	      |         int (*)(void)
	In file included from ../../parted/parted.c:28:
	../../parted/command.h:35:39: note: expected 'int (*)(PedDevice **, PedDisk **)' {aka 'int (*)(struct _PedDevice **, struct _PedDisk **)'} but argument is of type 'int (*)(void)'
	   35 |                                 int (*method) (PedDevice** dev, PedDisk** diskp),
	      |                                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2024-10-17  Oldřich Jedlička  <oldium.pro@gmail.com>

	libparted: Fail early when detecting nilfs2
	When the disk is encrypted with TCG Opal HW encryption (supported by
	cryptsetup 2.7.0+), the partition initially contains locked area, which
	shows reading errors in kernel logs and may lead to configuring the disk
	to work with lower reading speed. When the disk area is unlocked with
	password, the reading succeeds. The beginning of the protected partition is
	not locked and contains LUKS header, this is always readable.

	To work around the errors when reading from the locked area, try first
	detecting nilfs2 at the beginning (may be an unprotected LUKS header area)
	and only check the second superblock that is at the end of the area (and
	possibly locked) if the first one is valid (meaning the partition is not
	LUKS-protected).

	This is a change in behavior, but is consistent with the nilfs2 code, which
	considers both superblocks mandatory, see [1].

	[1] https://github.com/nilfs-dev/nilfs-utils/blob/master/lib/sb.c#L135-L158

2024-07-12  Brian C. Lane  <bcl@redhat.com>

	doc: Document IEC unit behavior in the manpage
	Previously this has only been documented in the info page.

2024-07-10  Brian C. Lane  <bcl@redhat.com>

	parted: Print the Fixing... message to stderr
	Otherwise it messes up stdout of things like --json

	Thanks to Mikael Q for reporting this.

2023-12-19  Brian C. Lane  <bcl@redhat.com>

	docs: Finish setup of libparted API docs
	I think 16 years is long enough to wait. Back in 2007 the doc/API file
	was being transitioned to a doxygen document at
	https://www.gnu.org/software/parted/api/ but it was never finished, and
	never updated.

	This commit updates it to be compatible with Doxygen 1.9.6, and it
	updates doc/API to be doc/API.md which is used as the main page of the
	document. I'm sure this isn't complete, but it gives a good starting
	point for further maintenance. Updating the webpage has been documented
	at the end of the README-release file.

2023-10-06  Brian C. Lane  <bcl@redhat.com>

	m4: Remove unused parted.m4
	This removes a macro, PARTED_CHECK_LIBPARTED, which as far as I can
	tell has never been used. It makes assumptions about the version
	number returned by ped_get_version() that have never been true -- we use
	X.Y for releases and X.Y.Z for alpha, etc. so it would never have
	worked.

2023-06-13  Khem Raj  <raj.khem@gmail.com>

	bug#64034: [PATCH] libparted: link libparted-fs-resize.so to libuuid
	uuid_generate() is used in this library
	Hence, add UUID_LIBS to libparted_fs_resize_la_LIBADD to avoid

	"ld.lld: error: undefined reference due to --no-allow-shlib-undefined: uuid_generate"

	This is uncovered by lld linker linking fatresize package
	due to this linker defaulting to --no-allow-shlib-undefined.

2023-05-15  Yegor Yefremov  <yegorslists@googlemail.com>

	maint: Add .dirstamp files to .gitignore

2023-05-11  Yegor Yefremov  <yegorslists@googlemail.com>

	parted: link to libuuid
	parted.c uses libuuid since 61b3a9733c0e0a79ccc43096642d378c8706add6.
	Hence, add UUID_LIBS to PARTED_LIBS to avoid
	"DSO missing from command line" error.

2023-04-10  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.6
	* NEWS: Record release date.

	NEWS: Releasing stable version 3.6

2023-03-24  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.5.28
	* NEWS: Record release date.

	NEWS: Update news

	tests: Fix syntax-check warning about grep -q

	maint: Update copyright statements to 2022
	By running make update-copyright

	maint: Bump library REVISION number for release

	maint: Update README-release

	maint: Update to latest gnulib and bootstrap script

2023-03-17  Brian C. Lane  <bcl@redhat.com>

	parted: Fix ending sector location when using kibi IEC suffix
	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.

2023-02-15  Brian C. Lane  <bcl@redhat.com>

	tests: Fix formatting and snprintf warnings in tests.
	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.

2023-02-15  Brian C. Lane  <bcl@redhat.com>

	ui: Add checks for prompt being NULL
	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.

2023-02-15  Brian C. Lane  <bcl@redhat.com>

	strlist: Handle realloc error in wchar_to_str
	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_partition

	filesys: Check for null from close_fn
	If the filesystem type name isn't known it can return a NULL.

2023-02-07  Brian C. Lane  <bcl@redhat.com>

	tests: Fixing libparted test framework usage
	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.

2023-02-06  Brian C. Lane  <bcl@redhat.com>

	libparted: Fix problem with creating 1s partitions
	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.

2022-12-13  Brian C. Lane  <bcl@redhat.com>

	tests: XFS requires a minimum size of 300M

2022-12-13  Mike Fleetwood  <mike.fleetwood@googlemail.com>

	gpt: Add no_automount partition flag
	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

2022-09-30  Arvin Schnell  <aschnell@suse.com>

	parted: Add display of GPT UUIDs in JSON output
	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.

2022-08-15  Brian C. Lane  <bcl@redhat.com>

	tests: Add a libparted test for ped_partition_set_system on msdos
	Test the libparted API to make sure the flag is not cleared by calling
	ped_partition_set_system.

2022-08-15  Brian C. Lane  <bcl@redhat.com>

	libparted: Fix handling of msdos partition types
	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.

2022-08-15  Brian C. Lane  <bcl@redhat.com>

	tests: Add a libparted test for ped_partition_set_system on gpt
	Test the libparted API to make sure the flag is not cleared by calling
	ped_partition_set_system.

2022-08-15  Brian C. Lane  <bcl@redhat.com>

	libparted: Fix handling of gpt partition types
	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.

2022-08-04  Brian C. Lane  <bcl@redhat.com>

	disk.in.h: Remove use of enums with #define
	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.

2022-07-27  Arvin Schnell  <aschnell@suse.com>

	parted: Simplify code for json output
	_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.

	libparted: Fix check for availability of _type_id functions
	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.

2022-05-13  Brian C. Lane  <bcl@redhat.com>

	tests: t3200-type-change now passes

	parted: Reset the filesystem type when changing the id/uuid
	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.

2022-05-13  Arvin Schnell  <aschnell@suse.com>

	libparted: add swap flag for DASD label
	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.

	parted: add type command
	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.

2022-04-18  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.5
	* NEWS: Record release date.

	NEWS: Mention gnulib update

	maint: Update to latest gnulib and bootstrap script

2022-04-05  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.4.64.2
	* NEWS: Record release date.

	NEWS: Mention bugfix

2022-03-31  Benno Schulenberg  <bensberg@telfort.nl>

	bug#54649: [PATCH] usage: remove the mention of "a particular partition"
	This complements commit b20227adf5 from five months ago.

2022-03-30  Brian C. Lane  <bcl@redhat.com>

	maint: post-release administrivia
	* NEWS: Add header line for next release.
	* .prev-version: Record previous version.
	* cfg.mk (old_NEWS_hash): Auto-update.

	version 3.4.64
	* NEWS: Record release date.

2022-03-29  Brian C. Lane  <bcl@redhat.com>

	NEWS: Add new features and bugs

2022-03-28  Brian C. Lane  <bcl@redhat.com>

	doc: Add KiB and mention rescue in documentation

2022-03-25  Brian C. Lane  <bcl@redhat.com>

	configure.ac: Add AC_CONFIG_MACRO_DIR

	configure.ac: Add -Wno-portability
	This is to quiet automake warnings about Makefile.am files using GNU
	make extensions like pattern rules.

	configure.ac: Update macros for autoconf 2.71

	tests: Remove trailing blanks

	parted: Fix config.h include in jsonwrt.c

	libparted: Fix syntax-check sc_avoid_if_before_free error
	It is safe to free even if they are NULL.

2022-03-23  Brian C. Lane  <bcl@redhat.com>

	gpt: Include xalloc-oversized.h

	maint: Add ./lib/malloc and libparted-fs-resize.pc to .gitignore

	maint: Update copyright statements to 2022
	By running make update-copyright

	maint: Bump library REVISION number for release

	maint: Update to latest gnulib and bootstrap script

2021-12-01  Brian C. Lane  <bcl@redhat.com>

	doc: Add bios_grub to parted manpage

2021-10-06  Brian C. Lane  <bcl@redhat.com>

	docs: Update documentation to be consistent
	This fixes some missing commands in the parted.texi file used to
	generate the web manual and info document. It also removes documentation
	for the never-implemented 'print NUMBER' command which only returns 1.

	The parted manpage has been updated to document the available print
	options, disk_set, and disk_toggle commands.

2021-09-30  Brian C. Lane  <bcl@redhat.com>

	gpt: Revert to filesystem GUID when setting flag to off

	tests: Add a test to make sure GPT GUIDs default to filesystem
	When no flag is set on a GPT partition the GUID should fall back to the
	filesystem type for fat32, swap, and hfs+ and if no filesystem is found
	it should default to linux filesystem data type, showing no filesystem
	and no flags.

	doc: Document gpt linux-home flag

2021-09-30  Arvin Schnell  <aschnell@suse.com>

	gpt: Add linux-home flag
	This sets the partition GUID to the linux home type:
	933AC7E1-2EB4-4F13-B844-0E14E2AEF915

2021-09-29  Arvin Schnell  <aschnell@suse.com>

	gpt: Map PED_PARTITON_ flags to GUID values
	Drop the 14 flags from _GPTPartitionData that correspond to a
	partition type/uuid. Use the type/uuid directly instead.

2021-09-23  Arvin Schnell  <aschnell@suse.com>

	keep GUID specific attributes
	Keep GUID specific attributes when writing GPT.

2021-09-22  Colin Watson  <cjwatson@ubuntu.com>

	hurd: Implement partition table rereading
	We have to tell both the device for the drive itself, it case it
	implements the partitioned devices, and tell the partition devices
	to go away, in case they are implemented on their own by using parted.

2021-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	hurd: Support rumpdisk-based device names

2021-09-22  Colin Watson  <cjwatson@ubuntu.com>

	hurd: Fix partition paths
	We have always had an 's' to separate drive number from partition
	number.

2021-08-25  Arvin Schnell  <aschnell@suse.com>

	parted: Add --json cmdline switch to output JSON
	This outputs the disk's details as a JSON object. eg. a disk image with
	a single partition from 1M to 100M:

	{
	   "disk": {
	      "path": "/root/disk1.img",
	      "size": "2097152s",
	      "model": "",
	      "transport": "file",
	      "logical-sector-size": 512,
	      "physical-sector-size": 512,
	      "label": "gpt",
	      "max-partitions": 128,
	      "partitions": [
	         {
	            "number": 0,
	            "start": "34s",
	            "end": "2047s",
	            "size": "2014s",
	            "type": "free"
	         },{
	            "number": 1,
	            "start": "2048s",
	            "end": "200703s",
	            "size": "198656s",
	            "type": "primary",
	            "name": "root"
	         },{
	            "number": 0,
	            "start": "200704s",
	            "end": "2097118s",
	            "size": "1896415s",
	            "type": "free"
	         }
	      ]
	   }
	}

2021-08-25  Arvin Schnell  <aschnell@suse.com>

	parted: Allow empty string for partition name
	This makes it possible to pass an empty string in script mode e.g. to
	set no partition name (on GPT):

	parted -s ./disk.img mklabel gpt mkpart '""' ext2 1 100M

	Includes a new test for this feature.

2021-08-25  Brian C. Lane  <bcl@redhat.com>

	libparted: Check devpath before passing to strlen

2021-08-10  Brian C. Lane  <bcl@redhat.com>

	libparted: Tell libdevmapper to retry remove when BUSY
	This sets the libdevmapper retry remove flag, which will retry a remove
	command if it is BUSY.

	parted already has it's own BUSY retry code, but when run with
	device-mapper an error can be printed by libdevmapper which can be
	confusing to the user.

	Resolves: rhbz#1980697

2021-08-10  Brian C. Lane  <bcl@redhat.com>

	parted: Escape colons and backslashes in machine output
	The device path, device model, and partition name could all contain
	colons or backslashes. This escapes all of these with a backslash.

	Thanks to Arvin Schnell for the patch.

2021-08-10  Ross Burton  <ross.burton@arm.com>

	tests: check for vfat kernel support and tools
	t1100-busy-label.sh and t1101-busy-partition.sh create and mount VFAT
	partitions, so check for both the tools and the kernel support.

	Fixes bug#49594.

2021-08-10  Ross Burton  <ross.burton@arm.com>

	tests: add a helper to check the kernel knows about a file system
	Some tests need both the file system tools (eg mkfs.vfat) and kernel
	support (eg vfat kernel module) to pass.

	There are already helpers such as require_fat_ which check for mkfs.vfat,
	but if the kernel doesn't support the filesystem then mounting the disk
	image will fail.

	Add require_filesystem_, which checks for either the filesystem name in
	/proc/filesystems (so it's built-in, or already loaded) or if the name
	is a valid module (so can be loaded on demand).

2021-08-10  Ross Burton  <ross.burton@arm.com>

	tests: add aarch64 and mips64 as a valid 64-bit machines
	require_64_bit_ in t-lib-helpers.sh has a hard-coded list of uname
	machines that are 64-bit, so add aarch64 and mips64 to cover the major
	architectures.

2021-08-10  Brian C. Lane  <bcl@redhat.com>

	libparted: Add swap flag to msdos disklabel
	Previously you had to set the filesystem type to one of the linux-swap
	options at creation time. With this change you can now toggle the
	partition swap type using the 'swap' partition flag in the same way that
	you can on gpt disklabels.

	Thanks to Arvin Schnell for this patch.

2021-08-10  Brian C. Lane  <bcl@redhat.com>

	Move Exception Option values into enum
	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.

2021-07-29  Brian C. Lane  <bcl@redhat.com>

	tests/t3000: Use mkfs.hfsplus and fsck.hfsplus for resize tests

2021-07-15  Brian C. Lane  <bcl@redhat.com>

	tests/t3000: Check for hfs and vfat support separately
	Previously the whole test would be skipped if either mkfs.hfs or
	mkfs.vfat were not installed, leading to missing test coverage. This
	change checks for them individually so that the test will run with
	either or both of them installed

2021-07-14  Brian C. Lane  <bcl@redhat.com>

	tests/t6006: Change dev_size_mb to 10
	This is backed by memory, so using more than is needed limits the size
	of the system it can run on.

	tests/t3200: Change dev_size_mb to 10
	This is backed by memory, so using more than is needed limits the size
	of the system it can run on.

2021-07-14  Brian C. Lane  <bcl@redhat.com>

	tests/t3000: Change dev_size_mb to 267
	FAT32 needs a minimum partition size of 256MB so this is as small as we
	can make it.

	This is backed by memory, so using more than is needed limits the size
	of the system it can run on.

2021-07-12  Brian C. Lane  <bcl@redhat.com>

	tests/t1701: Change dev_size_mb to 10
	This is backed by memory, so using more than is needed limits the size
	of the system it can run on.

	tests/t1102: Change dev_size_mb to 10
	This is backed by memory, so using more than is needed limits the size
	of the system it can run on.

	tests/t1101: Change dev_size_mb to 10
	This is backed by memory, so using more than is needed limits the size
	of the system it can run on.

	tests/t1100: Change dev_size_mb to 10
	This is backed by memory, so using more than is needed limits the size
	of the system it can run on.

2021-06-14  Brian C. Lane  <bcl@redhat.com>

	tests: t9050 Use /dev/zero for temporary file and mkswap
	and clean up the usage a little bit by giving it a proper name and
	removing the file when finished.

	tests: t0400 - Work around a mkswap bug by using /dev/zero
	mkswap gets stuck, in some situations, when operating on a file full of
	holes (see https://bugzilla.redhat.com/show_bug.cgi?id=1971877) so work
	around that by using /dev/zero instead of /dev/null

2021-06-11  Brian C. Lane  <bcl@redhat.com>

	libparted: Fix potential memory leak in gpt_write
	_generate_header() can return with 1 after allocating gpt so it needs to
	be freed in the error path.

	libparted: Fix warning about buffer size in Atari label
	When the Atari table is empty it copies 'PARTEDATARI' into the id, and
	the start and size bytes. This can be confusion, so turn it into a
	union of the string and the non-empty values.

	parted: Fix memory leaks in do_resizepart

	parted: Free tmp usage inside do_print
	str_list_create calls gettext_to_wchar which makes a copy of it.

	parted: Fix end_input leak in do_mkpart

	fs: Fix copy-paste error in HFS journal code

	libparted: Fix potential memory leak in sdmmc_get_product_info

	libparted: Fix fd check in _flush_cache
	In theory open() could return 0 so the correct error value is -1.

2021-02-09  Brian C. Lane  <bcl@redhat.com>

	t0501-duplicate.sh: Add some more disk label types to the duplicate test
	Add sun, atari, mac, and pc98 to the disklabels that we test
	ped_disk_duplicate on.

	aix isn't included because it doesn't support adding partitions.
	dvh doesn't support boot partition
	loop cannot be partitioned

2021-02-09  Brian C. Lane  <bcl@redhat.com>

	tests: Increase disk size for duplicate test
	Increase it from 8MiB to 32MiB and start the first partition at 2048
	sector boundary instead of 32 so that no matter the sector size it will
	be aligned.

2021-01-28  Cristian Klein  <cristian.klein@elastisys.com>

