diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index 04e1669..ad40058 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,18 @@ clog /parted-3.2.tar.xz.sig /parted-3.2.153.tar.xz /parted-3.2.153.tar.xz.sig +/parted-3.3.tar.xz +/parted-3.3.tar.xz.sig +/parted-3.3.52.tar.xz +/parted-3.3.52.tar.xz.sig +/parted-3.4.tar.xz +/parted-3.4.tar.xz.sig +/parted-3.4.64.tar.xz +/parted-3.4.64.tar.xz.sig +/parted-3.5.tar.xz +/parted-3.5.tar.xz.sig +/parted-3.5.28.tar.xz +/parted-3.5.28.tar.xz.sig +/parted-3.6.tar.xz +/parted-3.6.tar.xz.sig +/parted-3.6.tar.xz.sug diff --git a/0001-parted-Print-the-Fixing.-message-to-stderr.patch b/0001-parted-Print-the-Fixing.-message-to-stderr.patch new file mode 100644 index 0000000..bfc90de --- /dev/null +++ b/0001-parted-Print-the-Fixing.-message-to-stderr.patch @@ -0,0 +1,28 @@ +From fc16e90a9fd64e2db12a815417b538b193fe48db Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Wed, 10 Jul 2024 15:41:16 -0700 +Subject: [PATCH 1/2] parted: Print the Fixing... message to stderr + +Otherwise it messes up stdout of things like --json + +Thanks to Mikael Q for reporting this. +--- + parted/ui.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/parted/ui.c b/parted/ui.c +index 33a1808..d6d1da4 100644 +--- a/parted/ui.c ++++ b/parted/ui.c +@@ -645,7 +645,7 @@ exception_handler (PedException* ex) + /* script-mode and fix? */ + int fix_is_an_option = (ex->options & PED_EXCEPTION_FIX); + if (opt_script_mode && opt_fix_mode && fix_is_an_option) { +- printf ("Fixing, due to --fix\n"); ++ fprintf (stderr, "Fixing, due to --fix\n"); + return PED_EXCEPTION_FIX; + } + +-- +2.45.2 + diff --git a/0002-doc-Document-IEC-unit-behavior-in-the-manpage.patch b/0002-doc-Document-IEC-unit-behavior-in-the-manpage.patch new file mode 100644 index 0000000..09f116f --- /dev/null +++ b/0002-doc-Document-IEC-unit-behavior-in-the-manpage.patch @@ -0,0 +1,37 @@ +From e34c1477cfa446f1b44287b10425a9e69602b519 Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Fri, 12 Jul 2024 16:24:58 -0700 +Subject: [PATCH 2/2] doc: Document IEC unit behavior in the manpage + +Previously this has only been documented in the info page. +--- + doc/C/parted.8 | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/doc/C/parted.8 b/doc/C/parted.8 +index 3069c33..171269c 100644 +--- a/doc/C/parted.8 ++++ b/doc/C/parted.8 +@@ -151,6 +151,19 @@ Toggle the state of the disk \fIflag\fP. + .B version + Display version information and a copyright message. + .RE ++.SH UNITS ++\fBparted\fP will compute sensible ranges for the locations you specify when using ++units like "GB", "MB", etc. Use the sector unit "s" or IEC binary units like ++"GiB", "MiB", to specify exact locations. ++ ++When you specify start or end values using IEC binary units like "MiB", ++"GiB", "TiB", etc., \fBparted\fP treats those values as exact, and equivalent to ++the same number specified in bytes (i.e., with the "B" suffix), in that it ++provides no helpful range of sloppiness. Contrast that with a partition ++start request of "4GB", which may actually resolve to some sector up to 500MB ++before or after that point. Thus, when creating a partition in an exact location ++you should use units of bytes ("B"), sectors ("s"), or IEC binary units like ++"MiB", "GiB", but not "MB", "GB", etc. + .SH REPORTING BUGS + Report bugs to + .SH SEE ALSO +-- +2.45.2 + diff --git a/0003-libparted-Fail-early-when-detecting-nilfs2.patch b/0003-libparted-Fail-early-when-detecting-nilfs2.patch new file mode 100644 index 0000000..b9675bb --- /dev/null +++ b/0003-libparted-Fail-early-when-detecting-nilfs2.patch @@ -0,0 +1,55 @@ +From 8623f65e1fd064a679f75e3e075dff86f30282a7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Old=C5=99ich=20Jedli=C4=8Dka?= +Date: Sat, 6 Apr 2024 19:21:11 +0200 +Subject: [PATCH] libparted: Fail early when detecting nilfs2 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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 + +Signed-off-by: Oldřich Jedlička +Signed-off-by: Brian C. Lane +--- + libparted/fs/nilfs2/nilfs2.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/libparted/fs/nilfs2/nilfs2.c b/libparted/fs/nilfs2/nilfs2.c +index 6204542..40f8567 100644 +--- a/libparted/fs/nilfs2/nilfs2.c ++++ b/libparted/fs/nilfs2/nilfs2.c +@@ -118,11 +118,12 @@ nilfs2_probe (PedGeometry* geom) + + if (ped_geometry_read(geom, buf, 0, sectors)) + sb = (struct nilfs2_super_block*)(buf + 1024); ++ if (!sb || !is_valid_nilfs_sb(sb)) ++ return NULL; ++ + if (ped_geometry_read(geom, buff2, sb2off, sectors2)) + sb2 = (struct nilfs2_super_block*)buff2; +- +- if ((!sb || !is_valid_nilfs_sb(sb)) && +- (!sb2 || !is_valid_nilfs_sb(sb2))) ++ if (!sb2 || !is_valid_nilfs_sb(sb2)) + return NULL; + + /* reserve 4k bytes for secondary superblock */ +-- +2.47.0 + diff --git a/0004-bug-74444-PATCH-parted-fix-do_version-declaration.patch b/0004-bug-74444-PATCH-parted-fix-do_version-declaration.patch new file mode 100644 index 0000000..187e4c4 --- /dev/null +++ b/0004-bug-74444-PATCH-parted-fix-do_version-declaration.patch @@ -0,0 +1,41 @@ +From 16343bda6ce0d41edf43f8dac368db3bbb63d271 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Wed, 20 Nov 2024 12:22:22 +0000 +Subject: [PATCH] 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), + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Signed-off-by: Rudi Heitbaum +Signed-off-by: Brian C. Lane +--- + parted/parted.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/parted/parted.c b/parted/parted.c +index 3abb52f..fc2aeba 100644 +--- a/parted/parted.c ++++ b/parted/parted.c +@@ -2172,7 +2172,7 @@ do_unit (PedDevice** dev, PedDisk** diskp) + } + + static int +-do_version () ++do_version (PedDevice** dev, PedDisk** diskp) + { + printf ("\n%s\n%s", + prog_name, +-- +2.47.0 + diff --git a/0005-libparted-Fix-sun-disklabel-unhandled-exception.patch b/0005-libparted-Fix-sun-disklabel-unhandled-exception.patch new file mode 100644 index 0000000..e4c5d9f --- /dev/null +++ b/0005-libparted-Fix-sun-disklabel-unhandled-exception.patch @@ -0,0 +1,31 @@ +From 95b877cfa36c1571487c2a67a3902f1f5c4dc747 Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Tue, 7 Jan 2025 16:50:21 -0800 +Subject: [PATCH 5/8] 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. +--- + libparted/labels/sun.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libparted/labels/sun.c b/libparted/labels/sun.c +index 5ed2886..853576b 100644 +--- a/libparted/labels/sun.c ++++ b/libparted/labels/sun.c +@@ -284,7 +284,7 @@ _check_geometry_sanity (PedDisk* disk, SunRawLabel* label) + PED_BE16_TO_CPU(label->pcylcount), + PED_BE16_TO_CPU(label->ntrks), + PED_BE16_TO_CPU(label->nsect)) +- == PED_EXCEPTION_CANCEL) ++ != PED_EXCEPTION_IGNORE) + return 0; + #endif + dev->bios_geom.sectors = PED_BE16_TO_CPU(label->nsect); +-- +2.47.1 + diff --git a/0006-tests-Add-test-for-SUN-disklabel-handling.patch b/0006-tests-Add-test-for-SUN-disklabel-handling.patch new file mode 100644 index 0000000..735e60d --- /dev/null +++ b/0006-tests-Add-test-for-SUN-disklabel-handling.patch @@ -0,0 +1,116 @@ +From bdb92f73112177c091a764836a9ceaa59f7e9b15 Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Wed, 8 Jan 2025 11:59:40 -0800 +Subject: [PATCH 6/8] tests: Add test for SUN disklabel handling + +When fixed the output from script mode should be an unknown disklabel, +not sun. +--- + tests/Makefile.am | 3 ++- + tests/sun-badlabel | 42 +++++++++++++++++++++++++++++++++++++ + tests/t4002-sun-badlabel.sh | 23 ++++++++++++++++++++ + 3 files changed, 67 insertions(+), 1 deletion(-) + create mode 100755 tests/sun-badlabel + create mode 100644 tests/t4002-sun-badlabel.sh + +diff --git a/tests/Makefile.am b/tests/Makefile.am +index fa27b44..00f4a9d 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -67,6 +67,7 @@ TESTS = \ + t3400-whole-disk-FAT-partition.sh \ + t4000-sun-raid-type.sh \ + t4001-sun-vtoc.sh \ ++ t4002-sun-badlabel.sh \ + t4100-msdos-partition-limits.sh \ + t4100-dvh-partition-limits.sh \ + t4100-msdos-starting-sector.sh \ +@@ -103,7 +104,7 @@ TESTS = \ + EXTRA_DIST = \ + $(TESTS) t-local.sh t-lvm.sh \ + init.cfg init.sh t-lib-helpers.sh gpt-header-munge \ +- gpt-header-move msdos-overlap gpt-attrs ++ gpt-header-move msdos-overlap gpt-attrs sun-badlabel + + check_PROGRAMS = print-align print-flags print-max dup-clobber duplicate \ + fs-resize +diff --git a/tests/sun-badlabel b/tests/sun-badlabel +new file mode 100755 +index 0000000..6a28e86 +--- /dev/null ++++ b/tests/sun-badlabel +@@ -0,0 +1,42 @@ ++#!/usr/bin/python3 ++# Mangle the CHS values stored in a SUN disklabel ++# This sets CHS to 1 track, 2 sectors and updates the checksum ++# This triggers a bug in the SUN disklabel code when the CHS ++# error is UNHANDLED (in script mode or with a custom exception ++# handler) and it continues using a bad label which will coredump ++# when .duplicate() is called on it. ++ ++import array ++from struct import unpack_from, pack_into ++import sys ++ ++file = open(sys.argv[1],'rb+') ++header = file.read(512) ++ ++# Make sure it looks like a SUN disklabel first ++magic = unpack_from(">H", header, 0x1FC)[0] ++if magic != 0xDABE: ++ raise RuntimeError("Not a SUN disklabel. magic = 0x%04X" % magic) ++csum = unpack_from(">H", header, 0x1FE)[0] ++ntrks = unpack_from(">H", header, 0x1B4)[0] ++nsect = unpack_from(">H", header, 0x1B6)[0] ++ ++header = array.array('B', header) ++# cylinders at 0x1B0 ++# modify ntrks at offset 0x1B4 ++pack_into('>H', header, 0x1B4, 1) ++# modify nsect at offset 0x1B6 ++pack_into('>H', header, 0x1B6, 2) ++ ++## Undo old values ++csum ^= ntrks ++csum ^= nsect ++ ++## Add new ++csum ^= 1 ++csum ^= 2 ++pack_into('>H', header, 0x1FE, csum) ++ ++file.seek(0) ++file.write(header) ++file.close() +diff --git a/tests/t4002-sun-badlabel.sh b/tests/t4002-sun-badlabel.sh +new file mode 100644 +index 0000000..177c0e4 +--- /dev/null ++++ b/tests/t4002-sun-badlabel.sh +@@ -0,0 +1,23 @@ ++#!/bin/sh ++# Test exception handling on a bad SUN disklabel ++ ++. "${srcdir=.}/init.sh"; path_prepend_ ../parted $srcdir ++ss=$sector_size_ ++ ++n_sectors=2000 # number of sectors ++dev=sun-disk-file ++# create an empty file as a test disk ++dd if=/dev/zero of=$dev bs=$ss count=$n_sectors 2> /dev/null || fail=1 ++ ++# label the test disk as a sun disk ++parted -s $dev mklabel sun > out 2>&1 || fail=1 ++compare /dev/null out || fail=1 ++ ++# Mangle the disklabel to have incorrect CHS values, but a valid checksum ++sun-badlabel $dev || fail=1 ++ ++# Check the output (this should return 1, but depend on checking the output for the test) ++parted -m -s $dev p > out 2>&1 ++grep unknown out || { cat out; fail=1; } ++ ++Exit $fail +-- +2.47.1 + diff --git a/0007-libparted-Fix-dvh-disklabel-unhandled-exception.patch b/0007-libparted-Fix-dvh-disklabel-unhandled-exception.patch new file mode 100644 index 0000000..59dacde --- /dev/null +++ b/0007-libparted-Fix-dvh-disklabel-unhandled-exception.patch @@ -0,0 +1,29 @@ +From 1480769f2a7071c5a251b6c69658808199e8b05b Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Wed, 8 Jan 2025 13:35:04 -0800 +Subject: [PATCH 7/8] 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. +--- + libparted/labels/dvh.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libparted/labels/dvh.c b/libparted/labels/dvh.c +index 0f9124d..7d7dae3 100644 +--- a/libparted/labels/dvh.c ++++ b/libparted/labels/dvh.c +@@ -308,7 +308,7 @@ dvh_read (PedDisk* disk) + PED_EXCEPTION_IGNORE_CANCEL, + _("Checksum is wrong, indicating the partition " + "table is corrupt.")) +- == PED_EXCEPTION_CANCEL) ++ != PED_EXCEPTION_IGNORE) + return 0; + } + +-- +2.47.1 + diff --git a/0008-tests-Add-test-for-dvh-with-a-bad-checksum.patch b/0008-tests-Add-test-for-dvh-with-a-bad-checksum.patch new file mode 100644 index 0000000..b1f9451 --- /dev/null +++ b/0008-tests-Add-test-for-dvh-with-a-bad-checksum.patch @@ -0,0 +1,57 @@ +From 82b582996ce691eb635bed124603207515b92efe Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Wed, 8 Jan 2025 14:01:39 -0800 +Subject: [PATCH 8/8] 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. +--- + tests/Makefile.am | 1 + + tests/t4101-dvh-badlabel.sh | 23 +++++++++++++++++++++++ + 2 files changed, 24 insertions(+) + create mode 100644 tests/t4101-dvh-badlabel.sh + +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 00f4a9d..5eeab08 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -71,6 +71,7 @@ TESTS = \ + t4100-msdos-partition-limits.sh \ + t4100-dvh-partition-limits.sh \ + t4100-msdos-starting-sector.sh \ ++ t4101-dvh-badlabel.sh \ + t4200-partprobe.sh \ + t4300-nilfs2-tiny.sh \ + t4301-nilfs2-badsb2.sh \ +diff --git a/tests/t4101-dvh-badlabel.sh b/tests/t4101-dvh-badlabel.sh +new file mode 100644 +index 0000000..075c044 +--- /dev/null ++++ b/tests/t4101-dvh-badlabel.sh +@@ -0,0 +1,23 @@ ++#!/bin/sh ++# Test exception handling on a bad DVH disklabel ++ ++. "${srcdir=.}/init.sh"; path_prepend_ ../parted $srcdir ++ss=$sector_size_ ++ ++n_sectors=2000 # number of sectors ++dev=sun-disk-file ++# create an empty file as a test disk ++dd if=/dev/zero of=$dev bs=$ss count=$n_sectors 2> /dev/null || fail=1 ++ ++# label the test disk as a dvh disk ++parted -s $dev mklabel dvh > out 2>&1 || fail=1 ++compare /dev/null out || fail=1 ++ ++# Mangle the disklabel to have incorrect checksum ++dd if=/dev/zero of=$dev conv=notrunc bs=4 count=1 seek=1 ++ ++# Check the output (this should return 1, but depend on checking the output for the test) ++parted -m -s $dev p > out 2>&1 ++grep unknown out || { cat out; fail=1; } ++ ++Exit $fail +-- +2.47.1 + diff --git a/0009-tests-probing-ext4-without-journal-should-still-indi.patch b/0009-tests-probing-ext4-without-journal-should-still-indi.patch new file mode 100644 index 0000000..1fa6a1c --- /dev/null +++ b/0009-tests-probing-ext4-without-journal-should-still-indi.patch @@ -0,0 +1,52 @@ +From 43c2b908396e8b7baa475e009f3f4dbf9b9beac7 Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Wed, 28 May 2025 11:24:21 -0700 +Subject: [PATCH 09/12] 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. +--- + tests/t1700-probe-fs.sh | 10 ++++++++++ + tests/t3200-resize-partition.sh | 2 +- + 2 files changed, 11 insertions(+), 1 deletion(-) + +diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh +index 7557f92..2bf2810 100755 +--- a/tests/t1700-probe-fs.sh ++++ b/tests/t1700-probe-fs.sh +@@ -70,4 +70,14 @@ for feature in uninit_bg flex_bg; do + rm $dev + done + ++# ext4 without a journal should still indicate ext4 ++# create an ext3 file system ++dd if=/dev/null of=$dev bs=1024 seek=8192 >/dev/null || skip_ "dd failed" ++mkfs.ext4 -O ^has_journal -F $dev >/dev/null || skip_ "mkfs.ext4 failed" ++ ++# probe the file system, which should still be ext4 ++parted -m -s $dev u s print >out 2>&1 || fail=1 ++grep '^1:.*:ext4::;$' out || fail=1 ++rm $dev ++ + Exit $fail +diff --git a/tests/t3200-resize-partition.sh b/tests/t3200-resize-partition.sh +index 846fbc3..c9decab 100755 +--- a/tests/t3200-resize-partition.sh ++++ b/tests/t3200-resize-partition.sh +@@ -111,7 +111,7 @@ compare exp out || fail=1 + parted -m -s $dev u s p > out 2>&1 || fail=1 + + sed -n 3p out > k && mv k out || fail=1 +-printf "1:$default_start:$new_end:3073s:ext2::$ms;\n" > exp || fail=1 ++printf "1:$default_start:$new_end:3073s:ext4::$ms;\n" > exp || fail=1 + compare exp out || fail=1 + + umount "${dev}1" || fail=1 +-- +2.49.0 + diff --git a/0010-libparted-Do-not-detect-ext4-without-journal-as-ext2.patch b/0010-libparted-Do-not-detect-ext4-without-journal-as-ext2.patch new file mode 100644 index 0000000..2739563 --- /dev/null +++ b/0010-libparted-Do-not-detect-ext4-without-journal-as-ext2.patch @@ -0,0 +1,61 @@ +From e61584ddeb952ff04823936dabd1a6a241f04f38 Mon Sep 17 00:00:00 2001 +From: Pascal Hambourg +Date: Thu, 17 Apr 2025 18:42:33 +0200 +Subject: [PATCH 10/12] 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. + +Signed-off-by: Brian C. Lane +--- + libparted/fs/ext2/interface.c | 33 +++++++++++++++------------------ + 1 file changed, 15 insertions(+), 18 deletions(-) + +diff --git a/libparted/fs/ext2/interface.c b/libparted/fs/ext2/interface.c +index 7e0b197..5f64ab3 100644 +--- a/libparted/fs/ext2/interface.c ++++ b/libparted/fs/ext2/interface.c +@@ -52,24 +52,21 @@ _ext2_generic_probe (PedGeometry* geom, int expect_ext_ver) + int is_ext3 = 0; + int is_ext4 = 0; + +- is_ext3 = (EXT2_SUPER_FEATURE_COMPAT (*sb) +- & EXT3_FEATURE_COMPAT_HAS_JOURNAL) != 0; +- if (is_ext3) { +- is_ext4 = ((EXT2_SUPER_FEATURE_RO_COMPAT (*sb) +- & EXT4_FEATURE_RO_COMPAT_HUGE_FILE) +- || (EXT2_SUPER_FEATURE_RO_COMPAT (*sb) +- & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) +- || (EXT2_SUPER_FEATURE_RO_COMPAT (*sb) +- & EXT4_FEATURE_RO_COMPAT_DIR_NLINK) +- || (EXT2_SUPER_FEATURE_INCOMPAT (*sb) +- & EXT4_FEATURE_INCOMPAT_EXTENTS) +- || (EXT2_SUPER_FEATURE_INCOMPAT (*sb) +- & EXT4_FEATURE_INCOMPAT_64BIT) +- || (EXT2_SUPER_FEATURE_INCOMPAT (*sb) +- & EXT4_FEATURE_INCOMPAT_FLEX_BG)); +- if (is_ext4) +- is_ext3 = 0; +- } ++ is_ext4 = ((EXT2_SUPER_FEATURE_RO_COMPAT (*sb) ++ & EXT4_FEATURE_RO_COMPAT_HUGE_FILE) ++ || (EXT2_SUPER_FEATURE_RO_COMPAT (*sb) ++ & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) ++ || (EXT2_SUPER_FEATURE_RO_COMPAT (*sb) ++ & EXT4_FEATURE_RO_COMPAT_DIR_NLINK) ++ || (EXT2_SUPER_FEATURE_INCOMPAT (*sb) ++ & EXT4_FEATURE_INCOMPAT_EXTENTS) ++ || (EXT2_SUPER_FEATURE_INCOMPAT (*sb) ++ & EXT4_FEATURE_INCOMPAT_64BIT) ++ || (EXT2_SUPER_FEATURE_INCOMPAT (*sb) ++ & EXT4_FEATURE_INCOMPAT_FLEX_BG)); ++ if (!is_ext4) ++ is_ext3 = (EXT2_SUPER_FEATURE_COMPAT (*sb) ++ & EXT3_FEATURE_COMPAT_HAS_JOURNAL) != 0; + if (expect_ext_ver == 2 && (is_ext3 || is_ext4)) + return NULL; + if (expect_ext_ver == 3 && !is_ext3) +-- +2.49.0 + diff --git a/0011-nilfs2-Fixed-possible-sigsegv-in-case-of-corrupted-s.patch b/0011-nilfs2-Fixed-possible-sigsegv-in-case-of-corrupted-s.patch new file mode 100644 index 0000000..de1b0c5 --- /dev/null +++ b/0011-nilfs2-Fixed-possible-sigsegv-in-case-of-corrupted-s.patch @@ -0,0 +1,61 @@ +From 2fad7d827d27e75298f1d17b5fa6567ddfc4c338 Mon Sep 17 00:00:00 2001 +From: Anton Butenko +Date: Fri, 28 Feb 2025 16:09:18 +0100 +Subject: [PATCH 11/12] 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. + +Signed-off-by: Brian C. Lane +--- + libparted/fs/nilfs2/nilfs2.c | 2 +- + tests/t4301-nilfs2-badsb2.sh | 10 ++++++++-- + 2 files changed, 9 insertions(+), 3 deletions(-) + +diff --git a/libparted/fs/nilfs2/nilfs2.c b/libparted/fs/nilfs2/nilfs2.c +index 40f8567..74186f1 100644 +--- a/libparted/fs/nilfs2/nilfs2.c ++++ b/libparted/fs/nilfs2/nilfs2.c +@@ -88,7 +88,7 @@ is_valid_nilfs_sb(struct nilfs2_super_block *sb) + return 0; + + bytes = PED_LE16_TO_CPU(sb->s_bytes); +- if (bytes > 1024 || bytes < sumoff - 4) ++ if (bytes > 1024 || bytes < sumoff + 4) + return 0; + + crc = __efi_crc32(sb, sumoff, PED_LE32_TO_CPU(sb->s_crc_seed)); +diff --git a/tests/t4301-nilfs2-badsb2.sh b/tests/t4301-nilfs2-badsb2.sh +index 2a1205b..45b6644 100755 +--- a/tests/t4301-nilfs2-badsb2.sh ++++ b/tests/t4301-nilfs2-badsb2.sh +@@ -27,16 +27,22 @@ end=$(($len * 512 / $ss)) + parted -s $dev mklabel msdos mkpart primary 1s ${end}s || framework_failure_ + + # Write a secondary superblock with the nilfs magic number and a nilfs +-# superblock length (s_bytes) field of only 10 bytes. ++# superblock length (s_bytes) field of only 13 bytes. + # struct nilfs2_super_block starts with these four fields... + # uint32_t s_rev_level; + # uint16_t s_minor_rev_level; + # uint16_t s_magic; + # uint16_t s_bytes; + sb2_offset=$(( 24 / ($ss / 512) + 1)) +-perl -e "print pack 'LSSS.', 0, 0, 0x3434, 10, $ss" | ++perl -e "print pack 'LSSS.', 0, 0, 0x3434, 13, $ss" | + dd of=$dev bs=$ss seek=$sb2_offset count=1 conv=notrunc + ++# Write primary nilfs magic number and a nilfs ++# superblock length (s_bytes) field of only 13 bytes. ++sb_offset=3 ++perl -e "print pack 'LSSS.', 0, 0, 0x3434, 13, $ss" | ++ dd of=$dev bs=$ss seek=$sb_offset count=1 conv=notrunc ++ + # This used to give parted a sigsegv. + parted -s $dev print || fail=1 + +-- +2.49.0 + diff --git a/0012-doc-Fix-some-groff-mandoc-linting-complaints.patch b/0012-doc-Fix-some-groff-mandoc-linting-complaints.patch new file mode 100644 index 0000000..a846f6f --- /dev/null +++ b/0012-doc-Fix-some-groff-mandoc-linting-complaints.patch @@ -0,0 +1,90 @@ +From a2164c99b4d7d37334f9ca5ece55d8af95d002b7 Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Wed, 28 May 2025 13:09:32 -0700 +Subject: [PATCH 12/12] doc: Fix some groff/mandoc linting complaints + +--- + doc/C/parted.8 | 27 ++++++++++++--------------- + 1 file changed, 12 insertions(+), 15 deletions(-) + +diff --git a/doc/C/parted.8 b/doc/C/parted.8 +index 171269c..c852112 100644 +--- a/doc/C/parted.8 ++++ b/doc/C/parted.8 +@@ -54,7 +54,6 @@ Use optimum alignment as given by the disk topology information. This + aligns to a multiple of the physical block size in a way that guarantees + optimal performance. + .RE +- + .SH COMMANDS + .TP + .B [device] +@@ -62,8 +61,7 @@ The block device to be used. When none is given, \fBparted\fP will use the + first block device it finds. + .TP + .B [command [options]] +-Specifies the command to be executed. If no command is given, +-.BR parted ++Specifies the command to be executed. If no command is given, \fBparted\fP + will present a command prompt. Possible commands are: + .RS + .TP +@@ -119,8 +117,8 @@ or an LVM logical volume if necessary. + .B set \fIpartition\fP \fIflag\fP \fIstate\fP + Change the state of the \fIflag\fP on \fIpartition\fP to \fIstate\fP. + Supported flags are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba", +-"legacy_boot", "irst", "msftres", "esp", "chromeos_kernel", "bls_boot", "linux-home", +-"no_automount", "bios_grub", and "palo". ++"legacy_boot", "irst", "msftres", "esp", "chromeos_kernel", "bls_boot", ++"linux-home", "no_automount", "bios_grub", and "palo". + \fIstate\fP should be either "on" or "off". + .TP + .B unit \fIunit\fP +@@ -140,10 +138,10 @@ On MS-DOS set the type aka. partition id of \fIpartition\fP to + the type-uuid of \fIpartition\fP to \fIuuid\fP. + .TP + .B disk_set \fIflag\fP \fIstate\fP +-Change a \fIflag\fP on the disk to \fIstate\fP. A flag can be either "on" or "off". +-Some or all of these flags will be available, depending on what disk label you +-are using. Supported flags are: "pmbr_boot" on GPT to enable the boot flag on the +-GPT's protective MBR partition. ++Change a \fIflag\fP on the disk to \fIstate\fP. A flag can be either "on" or ++"off". Some or all of these flags will be available, depending on what disk ++abel you are using. Supported flags are: "pmbr_boot" on GPT to enable the ++boot flag on the GPT's protective MBR partition. + .TP + .B disk_toggle \fIflag\fP + Toggle the state of the disk \fIflag\fP. +@@ -155,24 +153,23 @@ Display version information and a copyright message. + \fBparted\fP will compute sensible ranges for the locations you specify when using + units like "GB", "MB", etc. Use the sector unit "s" or IEC binary units like + "GiB", "MiB", to specify exact locations. +- + When you specify start or end values using IEC binary units like "MiB", + "GiB", "TiB", etc., \fBparted\fP treats those values as exact, and equivalent to + the same number specified in bytes (i.e., with the "B" suffix), in that it + provides no helpful range of sloppiness. Contrast that with a partition + start request of "4GB", which may actually resolve to some sector up to 500MB +-before or after that point. Thus, when creating a partition in an exact location +-you should use units of bytes ("B"), sectors ("s"), or IEC binary units like +-"MiB", "GiB", but not "MB", "GB", etc. ++before or after that point. Thus, when creating a partition in an exact ++location you should use units of bytes ("B"), sectors ("s"), or IEC binary units ++like "MiB", "GiB", but not "MB", "GB", etc. + .SH REPORTING BUGS + Report bugs to + .SH SEE ALSO + .BR fdisk (8), + .BR mkfs (8), + The \fIparted\fP program is fully documented in the +-.BR info(1) ++.BR info (1) + format +-.IR "GNU partitioning software" ++.I "GNU partitioning software" + manual. + .SH AUTHOR + This manual page was written by Timshel Knoll , +-- +2.49.0 + diff --git a/0092-Switch-gpt-header-move-and-msdos-overlap-to-python3.patch b/0092-Switch-gpt-header-move-and-msdos-overlap-to-python3.patch deleted file mode 100644 index 1c7dff3..0000000 --- a/0092-Switch-gpt-header-move-and-msdos-overlap-to-python3.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 38badae4d6b858da713b383b9bc7bdad6294ca1b Mon Sep 17 00:00:00 2001 -From: "Brian C. Lane" -Date: Wed, 27 Jun 2018 13:47:33 -0700 -Subject: [PATCH 92/92] Switch gpt-header-move and msdos-overlap to python3 - ---- - tests/gpt-header-move | 2 +- - tests/msdos-overlap | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/gpt-header-move b/tests/gpt-header-move -index 3dda5cb..18f58d0 100755 ---- a/tests/gpt-header-move -+++ b/tests/gpt-header-move -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/python3 - - # open img file, subtract 33 from altlba address, and move the last 33 sectors - # back by 33 sectors -diff --git a/tests/msdos-overlap b/tests/msdos-overlap -index d6ae8d6..b2b03e6 100755 ---- a/tests/msdos-overlap -+++ b/tests/msdos-overlap -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/bin/python3 - """ - Write an overlapping partition to a msdos disk - --- -2.17.1 - diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..0c1cc35 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - fedora-* +decision_contexts: [bodhi_update_push_stable] +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/parted.spec b/parted.spec index e4a6237..7948ba4 100644 --- a/parted.spec +++ b/parted.spec @@ -1,11 +1,8 @@ -%define _sbindir /sbin -%define _libdir /%{_lib} - Summary: The GNU disk partition manipulation program Name: parted -Version: 3.2.153 -Release: 1%{?dist} -License: GPLv3+ +Version: 3.6 +Release: 13%{?dist} +License: GPL-3.0-or-later URL: http://www.gnu.org/software/parted Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz @@ -13,8 +10,18 @@ Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig Source2: pubkey.phillip.susi Source3: pubkey.brian.lane -# Upstream still uses python2 for these scripts -Patch0000: 0092-Switch-gpt-header-move-and-msdos-overlap-to-python3.patch +Patch0001: 0001-parted-Print-the-Fixing.-message-to-stderr.patch +Patch0002: 0002-doc-Document-IEC-unit-behavior-in-the-manpage.patch +Patch0003: 0003-libparted-Fail-early-when-detecting-nilfs2.patch +Patch0004: 0004-bug-74444-PATCH-parted-fix-do_version-declaration.patch +Patch0005: 0005-libparted-Fix-sun-disklabel-unhandled-exception.patch +Patch0006: 0006-tests-Add-test-for-SUN-disklabel-handling.patch +Patch0007: 0007-libparted-Fix-dvh-disklabel-unhandled-exception.patch +Patch0008: 0008-tests-Add-test-for-dvh-with-a-bad-checksum.patch +Patch0009: 0009-tests-probing-ext4-without-journal-should-still-indi.patch +Patch0010: 0010-libparted-Do-not-detect-ext4-without-journal-as-ext2.patch +Patch0011: 0011-nilfs2-Fixed-possible-sigsegv-in-case-of-corrupted-s.patch +Patch0012: 0012-doc-Fix-some-groff-mandoc-linting-complaints.patch BuildRequires: gcc BuildRequires: e2fsprogs-devel @@ -23,20 +30,22 @@ BuildRequires: ncurses-devel BuildRequires: gettext-devel BuildRequires: texinfo BuildRequires: device-mapper-devel -BuildRequires: libselinux-devel BuildRequires: libuuid-devel BuildRequires: libblkid-devel >= 2.17 BuildRequires: gnupg2 BuildRequires: git -BuildRequires: autoconf automake +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool BuildRequires: e2fsprogs BuildRequires: xfsprogs BuildRequires: dosfstools BuildRequires: perl-Digest-CRC BuildRequires: bc -Buildrequires: python3 +BuildRequires: python3 BuildRequires: gperf BuildRequires: make +BuildRequires: check-devel # bundled gnulib library exception, as per packaging guidelines # https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries @@ -62,32 +71,23 @@ Parted library, you need to install this package. %prep -%setup -q -gpg2 --import %{SOURCE2} %{SOURCE3} -gpg2 --verify %{SOURCE1} %{SOURCE0} -git init -git config user.email "parted-owner@fedoraproject.org" -git config user.name "Fedora Ninjas" -git add . -git commit -a -q -m "%{version} baseline." -[ -n "%{patches}" ] && git am %{patches} +%{gpgverify} --keyring='%{SOURCE3}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%autosetup -S git_am iconv -f ISO-8859-1 -t UTF8 AUTHORS > tmp; touch -r AUTHORS tmp; mv tmp AUTHORS -git commit -a -m "run iconv" %build -autoreconf -autoconf +autoreconf -fiv CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable"; export CFLAGS -%configure --enable-selinux --disable-static --disable-gcc-warnings +%configure --disable-static --disable-gcc-warnings # Don't use rpath! %{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool %{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -V=1 %{__make} %{?_smp_mflags} +%make_build %install %{__rm} -rf %{buildroot} -%{__make} install DESTDIR=%{buildroot} +%make_install # Remove components we do not ship %{__rm} -rf %{buildroot}%{_libdir}/*.la @@ -108,13 +108,13 @@ make check %license COPYING %{_sbindir}/parted %{_sbindir}/partprobe -%{_mandir}/man8/parted.8.gz -%{_mandir}/man8/partprobe.8.gz +%{_mandir}/man8/parted.8* +%{_mandir}/man8/partprobe.8* %{_libdir}/libparted.so.2 -%{_libdir}/libparted.so.2.0.2 +%{_libdir}/libparted.so.2.0.5 %{_libdir}/libparted-fs-resize.so.0 -%{_libdir}/libparted-fs-resize.so.0.0.2 -%{_infodir}/parted.info.* +%{_libdir}/libparted-fs-resize.so.0.0.5 +%{_infodir}/parted.info* %files devel %doc TODO doc/API doc/FAT @@ -126,1286 +126,101 @@ make check %changelog -* Mon Aug 12 2019 Brian C. Lane - 3.2.153-1 -- New upstream ALPHA release v3.2.153 -- Includes all patches except the python2 -> python3 change for test helpers +* Thu Jul 24 2025 Fedora Release Engineering - 3.6-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild -* Fri Jul 26 2019 Fedora Release Engineering - 3.2-43 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild +* Fri May 30 2025 Brian C. Lane - 3.6-12 +- doc: Fix some groff/mandoc linting complaints (bcl) +- nilfs2: Fixed possible sigsegv in case of corrupted superblock (abutenko) +- libparted: Do not detect ext4 without journal as ext2 (pascal) +- tests: probing ext4 without journal should still indicate ext4 (bcl) -* Wed Apr 24 2019 Björn Esser - 3.2-42 -- Remove hardcoded gzip suffix from GNU info pages +* Fri Jan 17 2025 Fedora Release Engineering - 3.6-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild -* Tue Apr 09 2019 Brian C. Lane - 3.2-41 -- Add fix and tests for nilfs2 sigsegv +* Wed Jan 15 2025 Brian C. Lane - 3.6-10 +- tests: Add test for dvh with a bad checksum (bcl) +- libparted: Fix dvh disklabel unhandled exception (bcl) +- tests: Add test for SUN disklabel handling (bcl) +- libparted: Fix sun disklabel unhandled exception (bcl) -* Fri Mar 01 2019 Brian C. Lane - 3.2-40 -- Run the CI tests using rpmbuild -- t6000-dm: Stop using private lvm root +* Wed Nov 20 2024 Brian C. Lane - 3.6-9 +- parted: Fix do_version declaration (rudi) -* Sun Feb 17 2019 Igor Gnatenko - 3.2-39 -- Rebuild for readline 8.0 +* Thu Oct 17 2024 Brian C. Lane - 3.6-8 +- libparted: Fail early when detecting nilfs2 (oldium.pro) -* Thu Jan 31 2019 Brian C. Lane - 3.2-38 -- Add missing patches from Wang Dong -- fix crash due to improper partition number (dongdwdw) -- fix wrong error label jump in mkpart (dongdwdw) -- clean the disk information when commands fail (dongdwdw) -- Remove PED_ASSERT from ped_partition_set_name (bcl) -- Added support for Windows recovery partition (Hans-Joachim.Baader) +* Fri Aug 23 2024 Brian C. Lane - 3.6-7 +- tests: Move to tmt tests and switch to a functional test (bcl) -* Tue Oct 16 2018 Brian C. Lane - 3.2-37 -- Read NVMe model names from sysfs (dann.frazier) -- Fix warnings from GCC 7's -Wimplicit-fallthrough (dann.frazier) -- ped_unit_get_name: Resolve conflicting attributes 'const' and 'pure' (dann.frazier) -- Add udf to t1700-probe-fs and to the manpage (bcl) -- libparted: Add support for MBR id, GPT GUID and detection of UDF filesystem (pali.rohar) -- Fix potential command line buffer overflow (xu.simon) -- t6100-mdraid-partitions: Use v0.90 metadata for the test (bcl) -- parted.c: Make sure dev_name is freed (bcl) -- parted.c: Always free peek_word (bcl) -- Fix the length of several strncpy calls (bcl) +* Thu Jul 18 2024 Fedora Release Engineering - 3.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild -* Thu Jul 19 2018 Brian C. Lane - 3.2-36 -- drop ldconfig, it no longer needs to be called on un/install (bcl) -- Fix msdos-overlap py3 conversion (bcl) +* Tue Jul 16 2024 Brian C. Lane - 3.6-5 +- doc: Document IEC unit behavior in the manpage (bcl) +- parted: Print the Fixing... message to stderr (bcl) -* Fri Jul 13 2018 Fedora Release Engineering - 3.2-35 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild +* Thu Jan 25 2024 Fedora Release Engineering - 3.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild -* Wed Jun 27 2018 Brian C. Lane - 3.2-34 -- Use python3 in buildroot -- Add make to BuildRequires -- Switch gpt-header-move and msdos-overlap to python3 (bcl) -- Modify gpt-header-move and msdos-overlap to work with py2 or py3 (bcl) -- Fix atari label false positives (psusi) -- Lift 512 byte restriction on fat resize (psusi) -- build: Remove unused traces of dynamic loading (cjwatson) -- Fix resizepart iec unit end sector (psusi) -- mkpart: Allow negative start value when FS-TYPE is not given (mail) -- Fix set and disk_set to not crash when no flags are supported (psusi) -- tests: fix t6100-mdraid-partitions (psusi) -- Fix make check (psusi) -- linux: Include for major() macro. (rjones) +* Sun Jan 21 2024 Fedora Release Engineering - 3.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild -* Thu Jun 07 2018 Brian C. Lane - 3.2-33 -- Use gpg2 for signature checking +* Thu Jul 20 2023 Fedora Release Engineering - 3.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild -* Sat Mar 24 2018 Richard W.M. Jones - 3.2-32 -- Fix for missing major/minor() macros in glibc 2.27. +* Mon Apr 10 2023 Brian C. Lane - 3.6-1 +- Upstream 3.6 stable release +- Dropping pre-3.5 changelog entries -* Mon Feb 19 2018 Brian C. Lane - 3.2-31 -- Add gcc BuildRequires for future minimal buildroot support -- Remove %%clean section +* Mon Mar 27 2023 Brian C. Lane - 3.5.28-1 +- Upstream 3.5.28 Alpha release +- Dropped all patches included in new upstream release +- Bumped minor version on libparted.so and libparted-fs-resize.so -* Thu Feb 08 2018 Fedora Release Engineering - 3.2-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild +* Fri Mar 17 2023 Brian C. Lane - 3.5-11 +- parted: Fix ending sector location when using kibi IEC suffix (bcl) +- tests: Fix formatting and snprintf warnings in tests. (bcl) +- ui: Add checks for prompt being NULL (bcl) +- strlist: Handle realloc error in wchar_to_str (bcl) +- libparted: Fix potential NULL dereference in ped_disk_next_partition (bcl) +- filesys: Check for null from close_fn (bcl) -* Tue Dec 19 2017 Brian C. Lane - 3.2-29 -- Add support for NVDIMM devices (sparschauer) -- libparted/labels: link with libiconv if needed (arnout) +* Tue Feb 07 2023 Brian C. Lane - 3.5-10 +- libparted: Fix problem with creating 1s partitions +- tests: Fixing libparted test framework usage -* Mon Jul 31 2017 Brian C. Lane - 3.2-28 -- atari.c: Drop xlocale.h - Resloves: rhbz#1476934 +* Mon Jan 30 2023 Brian C. Lane - 3.5-9 +- SPDX migration -* Thu Jul 27 2017 Fedora Release Engineering - 3.2-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild +* Thu Jan 19 2023 Fedora Release Engineering - 3.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild -* Tue Jun 06 2017 Brian C. Lane - 3.2-26 -- libparted: Fix udev cookie leak in _dm_resize_partition (bcl) - Resolves: rhbz#1455564 +* Wed Dec 14 2022 Brian C. Lane - 3.5-7 +- libparted: Fix handling of msdos partition types +- tests: Add a libparted test for ped_partition_set_system on msdos +- parted: Add display of GPT UUIDs in JSON output +- Add no_automount flag support +- increase xfs size to 300M -* Mon May 01 2017 Brian C. Lane - 3.2-25 -+ Updating to upstream patches -- tests/t1701-rescue-fs wait for the device to appear. (bcl) -- Increase timeout for rmmod scsi_debug and make it a framework failure (bcl) -- libparted/dasd: add test cases for the new fdasd functions (dongdwdw) -- libparted/dasd: add an exception for changing DASD-LDL partition table - (dongdwdw) -- libpartd/dasd: improve flag processing for DASD-LDL (dongdwdw) -- parted/ui: remove unneccesary information of command line (dongdwdw) -- parted: check the name of partition first when to name a partition (dongdwdw) -- Add support for RAM drives (sparschauer) -- Fix crash when localized (psusi) -- libparted: Fix typo in hfs error message (sebras) -- libparted: Fix MacOS boot support (laurent) -- mac: copy partition type and name correctly (saproj) -- libparted: Add support for atari partition tables (glaubitz) -- libparted:tests: Move get_sector_size() to common.c (glaubitz) -- tests: Update t0220 and t0280 for the swap flag. (bcl) -- libparted: set swap flag on GPT partitions (aschnell) -- libparted/dasd: add test cases for the new fdasd functions (dongdwdw) -- libparted/dasd: add new fdasd functions (dongdwdw) -- libparted/dasd: update and improve fdasd functions (dongdwdw) -- libparted/dasd: unify vtoc handling for cdl/ldl (dongdwdw) -- libparted: Don't warn if no HDIO_GET_IDENTITY ioctl (sparschauer) -- libparted: Fix starting CHS in protective MBR (petr.uzel) -- tests: Stop timing t9040 (#1172675) (bcl) +* Mon Aug 08 2022 Brian C. Lane - 3.5-6 +- Fix ped_partition_set_system handling of existing flags -* Sat Feb 11 2017 Fedora Release Engineering - 3.2-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild +* Thu Aug 04 2022 Brian C. Lane - 3.5-5 +- Update enum patch description for upstream -* Thu Jan 12 2017 Igor Gnatenko - 3.2-23 -- Rebuild for readline 7.x +* Fri Jul 22 2022 Fedora Release Engineering - 3.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild -* Tue Oct 04 2016 Brian C. Lane - 3.2-22 -- tests: t3310-flags.sh: skip pc98 when sector size != 512 (bcl) -- tests: Set optimal blocks to 64 for scsi_debug devices (bcl) -- tests: t3310-flags.sh: Add tests for remaining table types (mike.fleetwood) -- tests: t3310-flags.sh: Add test for dvh table flags (mike.fleetwood) -- tests: t3310-flags.sh: Add test for mac table flags (mike.fleetwood) -- libparted: Remove commented local variable from bsd_partition_set_flag() - (mike.fleetwood) -- libparted: Fix to report success when setting lvm flag on bsd table - (mike.fleetwood) -- tests: t3310-flags.sh: Add test for bsd table flags (mike.fleetwood) -- tests: t3310-flags.sh: Stop excluding certain flags from being tested - (mike.fleetwood) -- tests: t3310-flags.sh: Query libparted for all flags to be tested - (mike.fleetwood) -- libparted: only IEC units are treated as exact (petr.uzel) -- docs: Improve partition description in parted.texi (gareth.randall) -- Add support for NVMe devices (petr.uzel) -- libparted/dasd: correct the offset where the first partition begins - (dongdwdw) +* Mon Jun 20 2022 Adam Williamson - 3.5-3 +- Set _FIRST_ and _LAST_ macro values directly -* Wed Jun 15 2016 Brian C. Lane - 3.2-21 -- Cleanup mkpart manpage entry (#1183077) -- doc: Add information about quoting +* Tue May 17 2022 Brian C. Lane - 3.5-2 +- tests: t3200-type-change now passes (bcl) +- parted: Reset the filesystem type when changing the id/uuid (bcl) +- libparted: add swap flag for DASD label (aschnell) +- parted: add type command (aschnell) +- maint: post-release administrivia (bcl) -* Thu May 26 2016 Brian C. Lane - 3.2-20 -- libparted: Fix probing AIX disks on other arches -- partprobe: Open the device once for probing - -* Tue Apr 12 2016 Brian C. Lane 3.2-19 -- libparted: Remove fdasd geometry code from alloc_metadata (#1244833) (bcl) -- parted: Display details of partition alignment failure (#726856) (bcl) -- docs: Add list of filesystems for fs-type (#1311596) (bcl) -- Use disk geometry as basis for ext2 sector sizes. (Steven.Lang) -- parted: fix the rescue command (psusi) - -* Tue Mar 29 2016 Brian C. Lane 3.2-18 -- Use BLKSSZGET to get device sector size in _device_probe_geometry() - -* Mon Mar 07 2016 Brian C. Lane 3.2-17 -- lib-fs-resize: Prevent crash resizing FAT with very deep directories -- Add libparted/fs/.libs/ to LD_LIBRARY_PATH during make check - -* Mon Feb 29 2016 Brian C. Lane 3.2-16 -- Cleanup library path usage in specfile - pkgconfig wasn't finding libparted.pc because it was under /usr/lib64/ -- Explicitly reference the library files instead of use wildcards. -- Move libparted-fs-resize.so to the -devel package where it belongs. -- Add a pkgconfig file for the filesystem resize library -- tests: Add udevadm settle to wait_for_ loop -- tests: Add wait to t9042 -- tests: Fix t1700 failing on a host with a 4k xfs file - -* Tue Feb 09 2016 Brian C. Lane 3.2-15 -- fdasd.c Safeguard against geometry misprobing.patch (#1305931) - -* Thu Feb 04 2016 Fedora Release Engineering - 3.2-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Oct 29 2015 Brian C. Lane 3.2-13 -- parted: fix build error on s390 - -* Tue Oct 27 2015 Brian C. Lane 3.2-12 -- dasd: enhance device probing -- fdasd: geometry handling updated from upstream s390-tools - -* Fri Aug 07 2015 Brian C. Lane 3.2-11 -- tests: Fix patch 0012 test for extended partition length -- UI: Avoid memory leaks -- libparted: Fix memory leaks.patch -- libparted: Fix possible memory leaks.patch -- libparted: Stop converting . in-sys-path-to / -- libparted: Use read-only when probing devices on linux -- tests: Use wait_for_dev_to_ functions - -* Mon Jul 13 2015 Brian C. Lane 3.2-10 -- parted: Fix crash with name command and no disklabel (#1226067) - -* Thu Jun 18 2015 Fedora Release Engineering - 3.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Fri Jun 05 2015 Brian C. Lane 3.2-8 -- tests: Make sure the extended partition length is 2 (#1135493) -- libparted: BLKPG_RESIZE_PARTITION uses bytes not sectors (#1135493) - -* Tue Apr 28 2015 Brian C. Lane 3.2-7 -- Add python2 as a BuildRequires, used in some of the tests - -* Tue Apr 28 2015 Brian C. Lane 3.2-6 -- Update manpage NAME so whatis will work (bcl) -- libparted: device mapper uses 512b sectors (bcl) -- tests: Add a test for device-mapper partition sizes (bcl) -- parted: don't crash in disk_set when disk label not found (psusi) - -* Fri Nov 07 2014 Brian C. Lane 3.2-5 -- tests: Change minimum size to 256MiB for t1700-probe-fs - -* Fri Oct 31 2014 Brian C. Lane 3.2-4 -- Update to current master commit ac74b83 to fix fat16 resize (#1159083) -- tests: t3000-resize-fs.sh: Add requirement on mkfs.vfat (mike.fleetwood) -- tests: t3000-resize-fs.sh: Add FAT16 resizing test (mike.fleetwood) -- lib-fs-resize: Prevent crash resizing FAT16 file systems (mike.fleetwood) -- libparted: also link to UUID_LIBS (heirecka) - -* Sun Aug 17 2014 Fedora Release Engineering - 3.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Wed Aug 13 2014 Brian C. Lane 3.2-2 -- Use a better patch to find the UTF8 locale for t0251 - -* Wed Jul 30 2014 Brian C. Lane 3.2-1 -- Rebase on upstream stable release v3.2 -- Drop upstream patches. -- Patch t0251 to use en_US.UTF-8 if possible. Fedora doesn't have C.UTF-8 - -* Wed Jul 30 2014 Tom Callaway 3.1.90-2 -- fix license handling - -* Mon Jul 28 2014 Brian C. Lane 3.1.90-1 -- Rebase on upstream Alpha source release -- drop included patches (all but one) -- add Phillip Susi's GPG key -- make sure gcc warnings as errors remains disabled since we use git for patches - -* Mon Jul 14 2014 Brian C. Lane 3.1-29 -- Rebase on parted master commit 081ed98 -- libparted: Add support for partition resize -- parted: add resizepart command - -* Wed Jun 11 2014 Brian C. Lane 3.1-28 -- Rebase on parted master commit 1da239e2ebd2 -- libparted: Fix bug with dupe and empty name - -* Fri Jun 06 2014 Fedora Release Engineering - 3.1-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sat May 31 2014 Peter Robinson 3.1-26 -- Move dev docs to devel -- Drop duplicated/outdated docs - -* Tue May 27 2014 Brian C. Lane 3.1-25 -- Use mkfs.xfs to create files (#1101112) - -* Thu May 22 2014 Brian C. Lane 3.1-24 -- Add some missing patches from master and the loop label fixes -- tests: test loop labels (psusi) -- libparted: don't trash filesystem when writing loop label (psusi) -- libparted: give correct partition device name on loop labels (psusi) -- partprobe: do not skip loop labels (psusi) -- libparted: don't create partition on loop label (psusi) -- libparted: fix loop labels to not vanish (psusi) -- libparted: remove all old partitions, even if new label allows less (psusi) -- libparted: remove old partitions *first* before adding new ones (psusi) -- libparted: don't detect fat and ntfs boot sectors as dos MBR (psusi) -- Fix filesystem detection on non 512 byte sectors (psusi) -- tests: fix t2310-dos-extended-2-sector-min-offset.sh (psusi) -- libparted: remove last_usable_if_grown (psusi) - -* Fri May 16 2014 Brian C. Lane 3.1-23 -- Fix partition naming patch for big endian systems. - -* Fri May 16 2014 Brian C. Lane 3.1-22 -- Fix a problem with GPT Partition names using. They are UCS-2LE not UTF-16 - -* Fri Apr 18 2014 Brian C. Lane 3.1-21 -- Fix t1700 probe patch -- remove loop before making new fs - -* Thu Apr 17 2014 Brian C. Lane 3.1-20 -- Use force for xfs in t1700 and a larger file -- Make t4100 xfs filesystem larger and sparse -- Fix part dupe with empty name -- check name when duplicating -- Add ntfs vfat hfsplus to t1700 probe test - -* Wed Apr 09 2014 Brian C. Lane 3.1-19 -- Use little endian packing in gpt tests -- Fix integer overflows with DVH disk label - -* Tue Apr 08 2014 Brian C. Lane 3.1-18 -- Rebase on new upstream master commit cc382c3 -- Drop patches incorporated into upstream -- Still adds the various DASD patches - -* Thu Feb 27 2014 Brian C. Lane 3.1-17 -- Drop hfs_esp patch. Idea didn't work. - -* Wed Sep 11 2013 Brian C. Lane 3.1-16 -- tests: Restrict gpt header munge to little-endian systems -- Add perl Digest::CRC as a build requirement so more tests will run - -* Wed Sep 04 2013 Brian C. Lane 3.1-15 -- libparted: Flush parent device on open (#962611) - -* Wed Aug 28 2013 Brian C. Lane 3.1-14 -- Rebasing Fedora patches with upstream master since v3.1 release -- Summary of important changes from upstream: - - add support for a new Linux-specific GPT partition type code - - partprobe: remove partitions when there is no partition table - - libparted: refactor device-mapper partition sync code - - libparted: remove extraneous blkpg add partition ped exception - - libparted: don't probe every dm device in probe_all -- New Fedora changes: - - libparted: Add Intel Rapid Start Technology partition flag. - - libparted: Add UEFI System Partition flag. - - libparted: Add hfs_esp partition flag to GPT. - - libparted: Recognize btrfs filesystem - - tests: Add btrfs and xfs to the fs probe test - -* Sat Aug 03 2013 Fedora Release Engineering - 3.1-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Apr 17 2013 Brian C. Lane 3.1-12 -- libparted: mklabel to support EDEV DASD (#953146) -- tests: rewrite t6001 to use /dev/mapper - -* Thu Feb 14 2013 Fedora Release Engineering - 3.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Wed Dec 12 2012 Brian C. Lane 3.1-10 -- libparted: mklabel to support EAV DASD (#707032) -- libparted: Avoid dasd as default disk type while probe (#707032) - -* Thu Nov 01 2012 Brian C. Lane 3.1-9 -- don't canonicalize /dev/md/ paths (#872361) - -* Tue Oct 16 2012 Brian C. Lane 3.1-8 -- change partition UUID to use partX-UUID (#858704) -- fixup losetup usage in tests -- add support for implicit FBA DASD partitions (#707027) -- add support for EAV DASD partitions (#707032) - -* Tue Sep 04 2012 Brian C. Lane 3.1-7 -- reallocate buf after _disk_analyse_block_size (#835601) - -* Fri Aug 03 2012 Brian C. Lane 3.1-6 -- Use dm_udev_wait for dm operations (#844257) (bcl) -- use largest_partnum in _dm_reread_part_table (bcl) -- set uuid on dm partitions (#832145) (bcl) - -* Fri Jul 20 2012 Fedora Release Engineering - 3.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Jun 08 2012 Brian C. Lane 3.1-4 -- Fix crash on ppc64 with GPT (#829960) (rwmj) - -* Tue May 15 2012 Brian C. Lane 3.1-3 -- Added Provides: bundled(gnulib) (#821782) - -* Wed Mar 21 2012 Brian C. Lane 3.1-2 -- libparted: check PMBR before GPT partition table (#805272) -- tests: add a test for the new behavior - -* Tue Mar 13 2012 Brian C. Lane 3.1-1 -- Rebase to upstream parted v3.1 -- removed merged patches -- add new libparted-fs-resize library - -* Fri Feb 03 2012 Brian C. Lane - 3.0-7 -- Update patch for copying flags so that it is generic -- Copy pmbr_boot flag in gpt_duplicate - -* Thu Feb 02 2012 Brian C. Lane - 3.0-6 -- gpt: add commands to manipulate pMBR boot flag (#754850) -- parted: when printing, also print the new disk flags -- tests: update tests for new disk flags output -- tests: add test for GPT PMBR pmbr_boot flag -- doc: update parted documentation - -* Fri Jan 13 2012 Fedora Release Engineering - 3.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Oct 31 2011 Brian C. Lane - 3.0-4 -- Fix ped_disk_duplicate on GPT so that it copies the partition flags (#747947) -- Add new test to check ped_disk_duplicate on msdos, gpt, bsd disk labels -- Add e2fsprogs and dosfstools so that skipped tests will be run - -* Fri Oct 07 2011 Brian C. Lane - 3.0-3 -- Fix handling of zero-length gpt partitions (#728949) -- Fix bug in nilfs2 probe with short partitions (#728949) -- Fix bug in hfs probe code (#714758) -- Make pc98 detection depend on specific signatures (#646053) - -* Wed Jun 29 2011 Richard W.M. Jones - 3.0-2 -- (Re-)apply patch to fix Linux "3.0" problem. - -* Tue Jun 28 2011 Brian C. Lane - 3.0-1 -- Update to parted v3.0 -- Run autoreconf so that patches to .am files will work -- Add patch to Fix snap radius and don't allow values < 1 (#665496) -- Add tests for the snap radius fix. -- Drop patches included in upstream release - -* Sun Jun 5 2011 Richard W.M. Jones - 2.4-2 -- Apply patch which may fix Linux "3.0" problem. - -* Thu May 26 2011 Brian C. Lane - 2.4-1 -- Updating to latest upstream v2.4 -- Drop patches included in upstream - -* Fri Mar 11 2011 Brian C. Lane - 2.3-8 -- Add support for legacy_boot flag for GPT partitions (680562) -- Remove PED_ASSERT for dos geometry calculations (585468) - -* Wed Feb 09 2011 Brian C. Lane - 2.3-7 -- Tell GCC to stop treating unused variable warnings as errors - -* Tue Feb 08 2011 Fedora Release Engineering - 2.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Mon Dec 20 2010 Brian C. Lanr - 2.3-5 -- Document the align-check command - Resolves: #642476 -- Default to 1MiB partition alignment - Resolves: #618255 - -* Fri Dec 17 2010 Peter Jones - 2.3-4 -- Handle mac labels with differing physical/logical sector sizes better - -* Wed Sep 29 2010 jkeating - 2.3-3 -- Rebuilt for gcc bug 634757 - -* Fri Sep 17 2010 Brian C. Lane 2.3-2 -- Add patch to handle syncing partition changes when using blkext majors -- Resolves rhbz#634980 -- Related rhbz#629719 - -* Tue Jul 20 2010 Hans de Goede 2.3-1 -- Rebase to new upstream 2.3 release -- Drop all patches (all upstreamed) -- Recognize scsi disks with a high major as such (#611691) - -* Thu May 6 2010 Hans de Goede 2.2-5 -- Also recognize recovery partitions with id 27 / on gpt (#589451) - -* Fri Apr 23 2010 Hans de Goede 2.2-4 -- Properly check dm_task_run return value (#585158) -- Fix mkpartfs (ext2) on partitions >2TB (#585159) - -* Mon Apr 19 2010 Hans de Goede 2.2-3 -- Add a flag for detecting diagnostics / recovery partitions (#583626) - -* Tue Apr 6 2010 Hans de Goede 2.2-2 -- Parted should not canonicalize symlinks under /dev/mapper (#577824) - -* Tue Mar 30 2010 Hans de Goede 2.2-1 -- New upstream version 2.2 (#577478) -- Drop all our patches (all upstreamed) - -* Thu Feb 18 2010 Hans de Goede 2.1-5 -- Copy needs_clobber value in ped_disk_duplicate() (#561976) - -* Wed Feb 10 2010 Hans de Goede 2.1-4 -- Don't crash when reading a DASD disk with PV's on there (#563419) -- Don't overwrite the pmbr when merely printing a gpt table (#563211) - -* Sun Jan 31 2010 Hans de Goede 2.1-3 -- If a drive does not have alignment information available default - to an alignment of 1MiB (#559639) - -* Sun Jan 17 2010 Hans de Goede 2.1-2 -- Fix various memory leaks in error paths (#556012) -- Add %%check section to the specfile, invoking make check - -* Mon Jan 11 2010 Hans de Goede 2.1-1 -- New upstream release 2.1 -- Drop all our patches (all merged upstream) - -* Sun Dec 20 2009 Hans de Goede 1.9.0-25 -- Fix crash when partitioning loopback devices (#546622) -- Drop no-cylinder-align patch: - - its functionality is superseeded by the per disk flags - - its only user (pyparted) has been updated to use those - - this is not upstream so we don't want other programs to start using it - -* Fri Dec 18 2009 Hans de Goede 1.9.0-24 -- Allow partitioning of loopback devices (#546622) -- Add libparted function to query maximum partition length and start - addresses for a given disk (#533417) -- Add per disk flags functions from upstream, this is the way upstream - has implemented the disable cylinder alignment functionality -- Add --align cmdline option to specify how to align new partitions - see the parted man page for details (#361951) -- Make the default alignment for new partitions optimal (#361951) -- When cylinder alignment is disabled, allow use of the last (incomplete) - cylinder of the disk (#533328) -- Don't crash when printing partition tables in Russian (#543029) -- Make parted work correctly with new lvm (#525095) - -* Wed Nov 11 2009 Hans de Goede 1.9.0-23 -- Fix parted not building on s390 - -* Mon Nov 9 2009 Hans de Goede 1.9.0-22 -- Fix error when creating a fresh dasd disk on a dasd device - with a corrupted dasd label (#533808) - -* Fri Nov 6 2009 Hans de Goede 1.9.0-21 -- Fix a compiler warning which is causing build errors (#532425) - -* Tue Nov 3 2009 Hans de Goede 1.9.0-20 -- Fix error when creating a fresh dasd disk (#532425) -- Rewrite dasd disk duplication patches, as the old old ones conflicted - with fixing creating a fresh dasd disk - -* Fri Oct 30 2009 Hans de Goede 1.9.0-19 -- Fix a segfault introduced by -18 when operating on plain files - -* Thu Oct 29 2009 Hans de Goede 1.9.0-18 -- Add functions to query device / partition table alignments (#528030) - -* Thu Oct 8 2009 Hans de Goede 1.9.0-17 -- Only change the partition type to 82 when setting the swap flag on dos - labels, not when resetting it - -* Tue Oct 6 2009 Hans de Goede 1.9.0-16 -- Correctly handle GPT labels on big endian machines - -* Tue Oct 6 2009 Hans de Goede 1.9.0-15 -- ped_partition_is_busy() should not throw exceptions (#527035) -- msdos_partition_is_flag_available() should return 1 for swap flag (#513729) - -* Mon Aug 31 2009 Joel Granados 1.9.0-14 -- Patchs for 'commit to os' for linux. Thx to hansg. - -* Fri Aug 28 2009 Karsten Hopp 1.9.0-13 -- volkey is only 4 chars, don't overflow destination buffer with 84 chars - -* Fri Aug 21 2009 Joel Granados - 1.9.0-12 -- libuuid-devel is now valid for s390 builds. - -* Wed Aug 12 2009 Ville Skyttä - 1.9.0-11 -- Use xz compressed upstream tarball. - -* Wed Aug 12 2009 Joel Granados - 1.9.0-10 -- Make install with exclude docs work without an error message. - -* Wed Jul 29 2009 Joel Granados - 1.9.0-9 -- Add parenthesis where needed (#511907) - -* Mon Jul 27 2009 Joel Granados - 1.9.0-8 -- Add the swap flag to the dos type labels - -* Sat Jul 25 2009 Fedora Release Engineering - 1.9.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Thu Jul 23 2009 Joel Granados - 1.9.0-6 -- Rebuild usiing the official tar.gz at http://ftp.gnu.org/gnu/parted/parted-1.9.0.tar.gz - -* Wed Jul 22 2009 Joel Granados - 1.9.0-5.20090721git980c -- Better handle a duplicate error. - -* Tue Jul 21 2009 Joel Granados - 1.9.0-4.20090721git980c -- New snapshot. -- Add patches to make dasd duplicate disk work. - -* Sat Jul 18 2009 Lubomir Rintel - 1.9.0-3.20090610git32dc -- Fix a typo in the errno patch - -* Mon Jul 13 2009 Joel Granados - 1.9.0-2.20090610git32dc -- Correctly number the snapshot. - -* Fri Jul 10 2009 Joel Granados - 1.9.0-1 -- New version. - -* Thu Mar 26 2009 Joel Granados - 1.8.8-15 -- Begin to identify virtio devices. -- Actually change the partition type in msdos lables (dcantrell). - -* Mon Mar 23 2009 Joel Granados - 1.8.8-14 -- Correct the behavior of upated_mode functions when the ASSERT fails (thx to hansg). - -* Thu Feb 26 2009 Joel Granados - 1.8.8-13 -- Fix parted build for gcc-4.4 - -* Thu Feb 26 2009 Fedora Release Engineering - 1.8.8-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Thu Jan 22 2009 Joel Granados - 1.8.8-12 -- Avoid the calling of stat for strings that don't begin with the "/" char (#353191). - -* Sat Dec 13 2008 Tom "spot" Callaway - 1.8.8-11 -- fix typo in last patch - -* Sat Dec 13 2008 Tom "spot" Callaway - 1.8.8-10 -- enable RAID partition types on sun disklabels for sparc - -* Thu Nov 06 2008 Joel Granados - 1.8.8-9 -- Fix the build for the s390(x) archs (#470211). - -* Thu Jun 05 2008 Peter Jones - 1.8.8-8 -- Fix some of the atvrecv code (and the msftres code) so that the flags - actually stick. - -* Thu Jun 05 2008 Peter Jones - 1.8.8-7 -- Added "atvrecv" flag patch from atv-bootloader project. - -* Thu May 29 2008 Joel Granados - 1.8.8-6 -- Do a better job at recognizing the dos partition. (#246423) - -* Thu Apr 10 2008 David Cantrell - 1.8.8-5 -- Allow RAID or LVM partition types on BSD disklabels. - (jay.estabrook AT hp.com, #427114) - -* Thu Apr 10 2008 Peter Jones - 1.8.8-4 -- Don't interactively ask to fix an AlternateGPT's location when not - at the end of the disk; this is so that disk images written to a - usb-key can work reasonably. - -* Mon Feb 04 2008 David Cantrell - 1.8.8-3 -- Fixes so parted compiles with gcc-4.3 (#431397) - -* Sun Jan 13 2008 David Cantrell - 1.8.8-2 -- Move libparted libraries to /lib (#428420) - -* Wed Jan 02 2008 David Cantrell - 1.8.8-1 -- Upgraded to GNU parted-1.8.8 -- License for GNU parted is now GPLv3+ - -* Thu Dec 13 2007 David Cantrell - 1.8.6-13 -- Modify parted man page to indicate which flags are valid for which - disk labels (#242711) - -* Mon Nov 05 2007 David Cantrell - 1.8.6-12 -- Add KNOWN ISSUES section to parted(8) man page explaining that we cannot - currently do ext3 resizing inside parted (#367101) -- Update the xvd patch to include 'xvd' in the string table that parted - uses when printing device types (#366971) -- Do not install the linux.h or gnu.h headers - -* Tue Oct 30 2007 David Cantrell - 1.8.6-11 -- Do not install fdasd.h and vtoc.h header files - -* Thu Oct 04 2007 David Cantrell - 1.8.6-10 -- Do not install the testsuite tools - -* Thu Oct 04 2007 David Cantrell - 1.8.6-9 -- Always define PED_DEVICE_DM regardless of compile time options - -* Tue Aug 21 2007 David Cantrell - 1.8.6-8 -- Rebuild - -* Wed Aug 08 2007 David Cantrell - 1.8.6-7 -- Update License tag to GPLv2+ - -* Tue Aug 07 2007 David Cantrell - 1.8.6-6 -- Detect Xen virtual block devices and set model name appropriately - -* Thu Apr 19 2007 David Cantrell - 1.8.6-5 -- Spec file cleanups for merge review (#226230) - -* Fri Apr 13 2007 David Cantrell - 1.8.6-4 -- Fix primary partition cylinder alignment error for DOS disk labels (#229745) -- Do not build and package up libparted.a, only the shared library - -* Wed Apr 11 2007 David Cantrell - 1.8.6-3 -- Fix off-by-one bug in parted(8) when displaying disk label (#235901) - -* Wed Mar 21 2007 David Cantrell - 1.8.6-2 -- Do not translate partition name from disk label (#224182) - -* Tue Mar 20 2007 David Cantrell - 1.8.6-1 -- Upgrade to GNU parted-1.8.6, summary of major change(s): - a) Revert linux-swap(new) and linux-swap(old) fs types, it's - linux-swap for all swap types (#233085) - -* Tue Mar 20 2007 David Cantrell - 1.8.5-1 -- Upgrade to GNU parted-1.8.5 (added missing po files) - -* Fri Mar 16 2007 David Cantrell - 1.8.4-1 -- Upgrade to GNU parted-1.8.4, summary of major changes: - a) Update to use newest GNU developer tools - b) Use gnulib, the GNU portability library - c) HFS+ resize support - d) Windows Vista fixes - e) AIX disk label fixes - f) >512 byte logical sector read support on Linux -- Spec file cleanups per Fedora packaging guidelines - -* Thu Feb 08 2007 David Cantrell - 1.8.2-5 -- Remove period from end of summary line (package review) -- Use preferred BuildRoot (package review) -- BR device-mapper-devel - -* Tue Jan 30 2007 David Cantrell - 1.8.2-4 -- Patched parted.8 man page to show partition names apply to GPT disklabels - as well as Mac and PC98 disklabels (#221600) - -* Mon Jan 22 2007 David Cantrell - 1.8.2-3 -- Remove BR for libtermcap-devel -- Specifically preserve starting alignment of 0x800 on Windows Vista - (see http://support.microsoft.com/kb/923332 for details) -- Fix incorrect sector parameter used to initialize a new PedAlignment - -* Thu Jan 18 2007 David Cantrell - 1.8.2-2 -- Preserve starting sector for primary NTFS 3.1 partitions (Windows - Vista) when modifying the DOS disk label. NTFS 3.1 partitions do - not start on the 2nd head of the 1st cylinder at the beginning of - the drive. - -* Fri Jan 12 2007 David Cantrell - 1.8.2-1 -- Upgrade to GNU parted-1.8.2 - -* Fri Dec 15 2006 David Cantrell - 1.8.1-2 -- Fix a segfault when initializing new volumes (pjones) - -* Mon Dec 04 2006 David Cantrell - 1.8.1-1 -- Upgrade to GNU parted-1.8.1 - -* Fri Nov 17 2006 David Cantrell - 1.8.0-1 -- Upgrade to GNU parted-1.8.0 - -* Thu Nov 02 2006 David Cantrell - 1.7.1-18 -- Detect Apple_Boot partition types correctly (#204714) - -* Thu Oct 26 2006 David Cantrell - 1.7.1-17 -- For init_generic() failures on user-mode Linux block devices, goto - error_free_arch_specific instead of error_free_dev. - -* Wed Oct 04 2006 David Cantrell - 1.7.1-16 -- Don't throw PED_EXCEPTION_ERROR in ped_geometry_read() if accessing - sectors outside of partition boundary, since returning false will - shift ped_geometry_check() to the correct sectors. - -* Wed Aug 23 2006 David Cantrell - 1.7.1-15 -- Fixed gpt patch (*asked_already -> asked_already, whoops) - -* Tue Aug 22 2006 David Cantrell - 1.7.1-14 -- Improve error message returned by _parse_header() on GPT-labeled disks - so users actually have an idea of how to correct the problem -- Fix off-by-one error with LastUsableLBA and PartitionEntryLBA overlap - to prevent possible data corruption when using non-parted GPT editing - tools - -* Mon Aug 21 2006 Peter Jones - 1.7.1-13 -- Don't use the "volume name" as the device node name on dm device - partitions, it isn't really what we want at all. - -* Thu Aug 17 2006 David Cantrell - 1.7.1-12 -- Updated O_DIRECT patch to work around s390 problems -- Update LastUsableLBA on GPT-labeled disks after LUN resize (#194238) -- Fix exception when backup GPT table is not in the correction location - and parted tries to move it (#194238) - -* Tue Aug 15 2006 David Cantrell - 1.7.1-11 -- Expand error buffer to 8192 bytes in vtoc_error() -- Do not apply O_DIRECT patch on S/390 or S/390x platforms - -* Mon Aug 14 2006 David Cantrell - 1.7.1-10 -- Removed bad header file patch (#200577) - -* Wed Jul 12 2006 Jesse Keating - 1.7.1-9.1 -- rebuild - -* Wed Jul 5 2006 Peter Jones - 1.7.1-9 -- add ped_exception_get_handler() - -* Mon Jun 26 2006 Florian La Roche - 1.7.1-8 -- remove info files in preun - -* Thu Jun 22 2006 David Cantrell - 1.7.1-7 -- PED_SECTOR_SIZE -> PED_SECTOR_SIZE_DEFAULT - -* Thu Jun 22 2006 David Cantrell - 1.7.1-6 -- Roll dasd patches together -- Use O_DIRECT to prevent first partition corruption on GPT disks - -* Thu Jun 15 2006 Jeremy Katz - 1.7.1-5 -- fix segfaults with dasd devices - -* Wed Jun 7 2006 Jeremy Katz - 1.7.1-4 -- move .so symlink to -devel subpackage - -* Sun May 28 2006 David Cantrell - 1.7.1-3 -- Rebuild - -* Sun May 28 2006 David Cantrell - 1.7.1-2 -- Removed mac-swraid patch (added upstream) -- Updated device-mapper patch for parted-1.7.1 - -* Sat May 27 2006 David Cantrell - 1.7.1-1 -- Upgraded to parted-1.7.1 - -* Fri May 19 2006 David Cantrell - 1.7.0-1 -- Upgraded to parted-1.7.0 - -* Thu Apr 13 2006 David Cantrell - 1.6.25.1-1 -- Upgraded to parted-1.6.25.1 -- BuildRequires libtool - -* Tue Mar 14 2006 Jeremy Katz - 1.6.25-8 -- fix ppc swraid -- BR gettext-devel - -* Wed Feb 22 2006 Peter Jones - 1.6.25-7 -- close /proc/devices correctly - -* Fri Feb 10 2006 Jesse Keating - 1.6.25-6.1 -- bump again for double-long bug on ppc(64) - -* Tue Feb 7 2006 Peter Jones 1.6.25-6 -- Fix dm partition naming. - -* Tue Feb 7 2006 Jesse Keating 1.6.25-5.2 -- rebuilt for new gcc4.1 snapshot and glibc changes - -* Fri Dec 9 2005 Jesse Keating -- rebuilt - -* Fri Dec 2 2005 Peter Jones 1.6.25-5 -- rebuild for new device-mapper - -* Thu Dec 1 2005 Peter Jones 1.6.25-4 -- change device-mapper code to call dm_task_update_nodes() after - tasks which change device nodes. - -* Wed Nov 16 2005 Peter Jones 1.6.25-3 -- fix /proc/devices parser bug - -* Tue Nov 15 2005 Peter Jones 1.6.25-2 -- add support for partitions on dm devices - -* Wed Nov 09 2005 Chris Lumens 1.6.25-1 -- Updated to 1.6.25. -- Update DASD, iseries, and SX8 patches. - -* Tue Aug 30 2005 Chris Lumens 1.6.24-1 -- Updated to 1.6.24. - -* Mon Jul 18 2005 Chris Lumens 1.6.23-2 -- Add buildreq for texinfo. - -* Fri Jul 08 2005 Chris Lumens 1.6.23-1 -- Updated to 1.6.23. -- Get rid of separate Mac patches that are now included in upstream. -- Update DASD and AIX patches. - -* Tue Jun 07 2005 Chris Lumens 1.6.22-3 -- Modified Apple_Free patch to take care of the case where the partitions - are unnamed, causing many errors to be printed (#159047). - -* Thu May 05 2005 Chris Lumens 1.6.22-2 -- Added upstream patch to display certain Apple_Free partitions (#154479). - -* Wed Mar 23 2005 Chris Lumens 1.6.22-1 -- Updated to 1.6.22. -- Get rid of separate gc4 patch that's now included upstream. -- Take Mac LVM patch from parted CVS. - -* Mon Mar 14 2005 Chris Lumens 1.6.21-3 -- Include patches from parted CVS for new gcc4 warnings. - -* Sun Feb 20 2005 Paul Nasrat 1.6.21-2 -- Support lvm flags on mac partitions (#121266) - -* Fri Jan 21 2005 Chris Lumens 1.6.21-1 -- Updated to 1.6.21 - -* Wed Jan 12 2005 Tim Waugh 1.6.20-2 -- Rebuilt for new readline. - -* Fri Jan 07 2005 Chris Lumens 1.6.20-1 -- Updated to 1.6.20 (#139257, #142100). -- Updated DASD and AIX patches for 1.6.20. - -* Tue Dec 14 2004 Jeremy Katz - 1.6.19-2 -- add support for Promise SX8 devices - -* Sun Nov 28 2004 Jeremy Katz - 1.6.19-1 -- update to 1.6.19 (#138419) - -* Sun Nov 21 2004 Jeremy Katz - 1.6.18-1 -- update to 1.6.18 - -* Sat Nov 20 2004 Miloslav Trmac - 1.6.16-3 -- Convert pt_BR-parted.8 to UTF-8 - -* Thu Nov 11 2004 Jeremy Katz - 1.6.16-2 -- add patch from Matt Domsch to fix consistency of GPT disk labels - with the EFI specification for disks > 2TB (#138480) -- understand the new Sun UFS partition ID -- merge the new geometry probing from CVS to see if that helps the - assertions people are seeing (#138419) - -* Mon Nov 8 2004 Jeremy Katz - 1.6.16-1 -- update to 1.6.16 -- rebuild for python 2.4 - -* Mon Oct 18 2004 Jeremy Katz - 1.6.15-5 -- add patch from Matt Domsch to add a unique signature to new DOS labels - so that we can later determine which BIOS disk is which (#106674) - -* Fri Oct 15 2004 Phil Knirsch 1.6.15-4 -- Fixed dasd patch (had some duplicate file patches in it) -- Fixed problem with parted segfaulting on SCSI discs on s390 (#133997) - -* Tue Oct 12 2004 Jeremy Katz - 1.6.15-3 -- add patch from peterm to fix printing of the size of large devices (#135468) - -* Thu Oct 07 2004 Phil Knirsch 1.6.15-2 -- Fixed geometry calculation for bios_geo in dasd_init() - -* Mon Sep 20 2004 Jeremy Katz - 1.6.15-1 -- 1.6.15 - -* Fri Sep 10 2004 Jeremy Katz - 1.6.14-1 -- update to 1.6.14 - -* Tue Aug 24 2004 Jeremy Katz - 1.6.12-2 -- fix assertion error when checking flags on non-active partition (#130692) -- buildrequires: gettext-devel - -* Mon Aug 16 2004 Jeremy Katz - 1.6.12-1 -- update to 1.6.12 with major changes to CHS handling to hopefully fix #115980 -- adjust dasd patch accordingly, drop some included patches - -* Mon Jul 19 2004 Karsten Hopp 1.6.11-4 -- update dasd patch for dos-type partitions on mainframes (scsi disks) - -* Fri Jun 25 2004 Jeremy Katz - 1.6.11-3 -- install-info (#77687) - -* Tue Jun 15 2004 Elliot Lee - 1.6.11-2 -- rebuilt - -* Tue Jun 1 2004 Jeremy Katz -- -devel requires main package (#124938) - -* Thu May 13 2004 Jeremy Katz - 1.6.11-1 -- update to 1.6.11 - -* Tue May 11 2004 Jeremy Katz - 1.6.9-4 -- add patch from Matt Domsch to not use the get/set last sector ioctls - with a 2.6 kernel (#121455) - -* Thu Apr 15 2004 David Woodhouse - 1.6.9-3 -- Fix Mac partition detection to close #112937 - -* Tue Apr 13 2004 Jeremy Katz - 1.6.9-2 -- another minor tweak for 2.6's lack of sane geometry handling - -* Mon Apr 12 2004 Jeremy Katz - 1.6.9-1 -- update to 1.6.9 -- need automake17 -- python-devel is superfluous with pyparted as a separate package -- lose the fake-libtool stuff, 1.6.9 was disted with newer auto* - -* Mon Mar 15 2004 Elliot Lee 1.6.6-2 -- Fix parted's "part-static" option to close #118183. Woohoo, a fake-libtool.sh :) - -* Fri Mar 12 2004 Jeremy Katz - 1.6.6-1 -- update to 1.6.6 -- split dasd into a patch instead of included in the tarball -- python module is now in the pyparted package (separate src.rpm) -- ExcludeArch: ppc64 (#118183) - -* Tue Mar 02 2004 Elliot Lee -- rebuilt - -* Fri Feb 13 2004 Elliot Lee -- rebuilt - -* Fri Feb 6 2004 Jeremy Katz -- add automake buildrequires (#115063) - -* Thu Jan 22 2004 Jeremy Katz 1.6.3-33 -- 2.6 removes the geometry fixups that used to be present for IDE disks. - According to Andries, just follow what's in the partition table and don't - worry about what Linux "detects" - -* Thu Nov 6 2003 Jeremy Katz 1.6.3-32 -- rebuild for python 2.3 - -* Mon Oct 27 2003 Jeremy Katz 1.6.3-31 -- add patch from Michael Schwendt for segfault - -* Wed Sep 17 2003 Jeremy Katz 1.6.3-30 -- rebuild - -* Wed Sep 17 2003 Jeremy Katz 1.6.3-29 -- and don't barf on the old (broken) 1.02 gpt rev - -* Tue Sep 16 2003 Jeremy Katz 1.6.3-28 -- rebuild - -* Tue Sep 16 2003 Jeremy Katz 1.6.3-27 -- write out the correct gpt revision (#103664) -- add buildrequires on ncurses-devel - -* Thu Sep 4 2003 Bill Nottingham 1.6.3-26 -- rebuild - -* Thu Sep 4 2003 Bill Nottingham 1.6.3-25 -- don't buildreq libunicode-devel - -* Thu Aug 07 2003 Elliot Lee 1.6.3-24 -- Fix libtool - -* Wed Jul 09 2003 Phil Knirsch 1.6.3-23 -- Fixed dasd_write and dasd_read to support lvm and raid partitions. - -* Wed Jun 18 2003 Phil Knirsch 1.6.3-22 -- Fixed a small bug in VTOC fdasd_check_volume() (#97300). - -* Wed Jun 04 2003 Elliot Lee 1.6.3-21 -- rebuilt - -* Wed Jun 4 2003 Matt Wilson 1.6.3-20 -- don't detect AIX physical volumes as msdos partition tables (#91748) -- added stubbed code for manipulating AIX PVs, enough to clobber the - signature. (#91748) - -* Wed Jun 04 2003 Phil Knirsch 1.6.3-19 -- Added LDL disk layout support for s390(x). - -* Sun May 18 2003 Matt Wilson 1.6.3-18 -- use metadata partitions to protect DASD VTOC -- stash DASD specific data in disk specific areas, not arch specific - areas. - -* Fri May 16 2003 Matt Wilson 1.6.3-18 -- recongnize iseries viodasd (#90449) - -* Thu May 08 2003 Phil Knirsch 1.6.3-17 -- Fixed problem with probing partitions on s390(x) with new partition code. - -* Mon May 05 2003 Phil Knirsch 1.6.3-16 -- Fixed partiton reread code for s390(x). - -* Fri May 02 2003 Phil Knirsch 1.6.3-15 -- Rewrote partition handling for s390(x) dasd devices. No more empty partitions. - -* Wed Mar 12 2003 Phil Knirsch 1.6.3-13 -- Finished updating vtoc and fdasd code to latest s390-utils version. - -* Thu Mar 06 2003 Phil Knirsch 1.6.3-12 -- Fixed vtoc handling on s390(x) dasd devices. - -* Thu Feb 06 2003 Karsten Hopp 1.6.3-11 -- use different define to enable DASD debugging - Otherwise we'll get a lot of dasd debug output because DEBUG is - always defined - -* Wed Jan 22 2003 Tim Powers -- rebuilt - -* Wed Jan 22 2003 Karsten Hopp 1.6.3-9 -- missed one debug message - -* Tue Jan 21 2003 Karsten Hopp 1.6.3-8 -- add patch from CVS to disable debug messages on s390 - -* Tue Jan 14 2003 Matt Wilson 1.6.3-7 -- updated to a new tarball of parted that includes a fs.probe_specific binding - -* Sun Dec 1 2002 Matt Wilson 1.6.3-6 -- hack in partition.native_type (#78118) - -* Thu Nov 7 2002 Matt Wilson -- added a patch to avoid SIGFPE when fat sector size is 0 - -* Tue Nov 5 2002 Matt Wilson -- use --disable-dynamic-loading - -* Mon Nov 4 2002 Matt Wilson -- add device.disk_new_fresh() - -* Fri Nov 1 2002 Matt Wilson -- 1.6.3 - -* Fri Oct 4 2002 Jeremy Katz 1.4.24-7 -- use make LIBTOOL=/usr/bin/libtool instead of recreating everything -- add patch from Jack Howarth to self host properly -- add patch to treat GPT structs as little-endian always and treat GUIDS - as little-endian blobs -- add patch to recognize hp service partitions - -* Wed Sep 25 2002 Jeremy Katz 1.4.24-6hammer -- libtoolize, etc for x86_64 -- hack to get the python module in the right place until python.m4 - from automake is fixed - -* Fri Jun 21 2002 Tim Powers 1.4.24-6 -- automated rebuild - -* Sun May 26 2002 Tim Powers 1.4.24-5 -- automated rebuild - -* Wed May 22 2002 Jeremy Katz 1.4.24-4 -- rebuild in new environment - -* Fri Mar 22 2002 Matt Wilson 1.4.24-3 -- fixed the probe-with-open behavior (again) - -* Fri Feb 22 2002 Matt Wilson 1.4.24-1 -- rebuild - -* Tue Feb 12 2002 Matt Wilson 1.4.24-1 -- 1.4.24 - -* Wed Jan 09 2002 Tim Powers -- automated rebuild - -* Mon Jan 7 2002 Jeremy Katz 1.4.20-4 -- build with final python 2.2 - -* Wed Dec 12 2001 Jeremy Katz 1.4.20-3 -- update from CVS and rebuild in new environment - -* Thu Oct 25 2001 Jeremy Katz 1.4.20-2 -- build both python1.5 and python2 modules - -* Fri Oct 19 2001 Matt Wilson 1.4.20-1 -- 1.4.20 final - -* Thu Oct 11 2001 Matt Wilson 1.4.20-0.1pre3 -- new dist from CVS with new autoconf and automake -- gpt is in 1.4.20, removed patch1 (gpt support) -- partstatic is in 1.4.20, removed patch2 (partstatic patch) - -* Tue Aug 28 2001 Matt Wilson 1.4.16-8 -- new dist from cvs with changes to the python binding: register - DEVICE_I20 and DEVICE_ATARAID, check to make sure that a partition - exists in the PedDisk when using it to find ped_disk_next_partition - -* Tue Aug 21 2001 Matt Wilson 1.4.16-7 -- really disable pc98 support (SF #51632) - -* Fri Aug 17 2001 Matt Wilson 1.4.16-6 -- added a patch (Patch1) to link the c library in dynamically, the - rest of the libs statically for the parted binary (MF #49358) - -* Tue Aug 7 2001 Matt Wilson -- made a new dist from CVS that includes binding for - disk.get_partition_by_sector and accessing the name of a disk type - -* Mon Aug 6 2001 Matt Wilson 1.4.16-4 -- created a new dist from CVS that fixes ext3 detection when - _probe_with_open is needed (#50292) - -* Fri Jul 20 2001 Matt Wilson -- rewrite scsi id code (#49533) - -* Fri Jul 20 2001 Matt Wilson -- added build requires (#49549) - -* Tue Jul 17 2001 Matt Wilson -- 1.4.16 -- regenerated gpt patch against 1.4.16, incorporated - parted-1.4.15-pre1-gpt-printf.patch into the same patch, removed Patch1 - -* Tue Jul 10 2001 Matt Wilson -- added a new dist tarball that contains python wrappers to get disk types - -* Tue Jul 10 2001 Tim Powers -- run ldconfig on un/install - -* Tue Jul 10 2001 Matt Wilson -- added a fix from clausen for border case when there is an extended - on the last cyl - -* Mon Jul 9 2001 Matt Wilson -- 1.4.15 - -* Thu Jul 5 2001 Matt Wilson -- added patch from Arjan to enable ataraid support - -* Wed Jul 4 2001 Matt Wilson -- imported 1.4.15-pre2 into CVS and made a new dist tarball - -* Tue Jun 26 2001 Matt Wilson -- added a new dist tarball that contains a check in python code to - make sure that a partition exists within a disk before trying to - remove it from the disk -- also changed _probe_with_open to make the first probed filesystem win - -* Tue Jun 26 2001 Bill Nottingham -- fix filesystem type reading on GPT disks - -* Tue Jun 26 2001 Matt Wilson -- added another fix for ext2/ext3 -- added Patch4 to move the crc32 function into its own namespace so - we don't colide with zlib when both are in the same executable space - -* Mon Jun 25 2001 Matt Wilson -- added a new dist tarball from CVS that includes - ext3 probing - -* Wed Jun 6 2001 Matt Wilson -- updated dist with binding for partition.geom.disk - -* Tue Jun 5 2001 Matt Wilson -- make a new dist tarball that has new python binding changes - -* Tue May 29 2001 Bill Nottingham -- add major numbers for cciss -- add libunicode-devel buildprereq - -* Sun May 27 2001 Matthew Wilson -- added type, heads, and sectors to the python binding for PedDevice - -* Fri May 4 2001 Matt Wilson -- added parted-1.4.11-gpt-pmbralign.patch from Matt Domsch - -* Wed May 2 2001 Matt Wilson -- include python binding -- enable shared library (for python binding, we want fpic code) - with --enable-shared -- build parted binary static with --enable-all-static -- don't run libtoolize on this. - -* Wed May 02 2001 Bill Nottingham -- update to 1.4.11 -- add EFI GPT patch from Matt Domsch () -- don't run autoconf, it relies on a newer non-released version - of autoconf... - -* Fri Feb 23 2001 Trond Eivind Glomsrød -- langify - -* Wed Jan 17 2001 Florian La Roche -- update to 1.4.7 - -* Thu Dec 14 2000 Bill Nottingham -- rebuild because of broken fileutils - -* Fri Nov 03 2000 Florian La Roche -- update to 1.2.12 - -* Wed Nov 01 2000 Florian La Roche -- update to 1.2.11 - -* Tue Oct 17 2000 Florian La Roche -- update to 1.2.10 - -* Sun Sep 10 2000 Florian La Roche -- update to 1.2.9 - -* Tue Aug 29 2000 Florian La Roche -- fix bug when just hitting "return" with no user input - -* Sun Aug 20 2000 Florian La Roche -- 1.2.8 -- blksize patch not needed anymore -- move changelog to the end of the spec file - -* Wed Aug 16 2000 Matt Wilson -- 1.2.7 -- patched configure script to ignore the 2.4 blkpg.h header (fixes #15835). - -* Fri Aug 4 2000 Florian La Roche -- update to 1.2.6 - -* Sat Jul 22 2000 Florian La Roche -- update to 1.2.5 -- add more docu - -* Wed Jul 12 2000 Prospector -- automatic rebuild - -* Mon Jun 12 2000 Matt Wilson -- initialization of spec file. +* Mon Apr 18 2022 Brian C. Lane - 3.5-1 +- Upstream 3.5 stable release diff --git a/plans/test-parted.fmf b/plans/test-parted.fmf new file mode 100644 index 0000000..2b22c58 --- /dev/null +++ b/plans/test-parted.fmf @@ -0,0 +1,8 @@ +summary: Run a basic parted test +prepare: + how: install + package: + - parted + - jq +execute: + script: ./tests/scripts/run_tests.sh diff --git a/pubkey.brian.lane b/pubkey.brian.lane index 04ef38a..210282c 100644 --- a/pubkey.brian.lane +++ b/pubkey.brian.lane @@ -7,13 +7,13 @@ PnOOItj7qbrCMASoBx1TG8Zdg8ufehMnfb85x4xxAebXkqJQpEVTjt4lj4p6BhrW R+pIW/nBUrz3OsV7WwPKjSLjJtTJFxYX+RFSCqOdfusuysoOxpIHOx1WxjGUOB5j fnhmq41nWXf8ozb58zSpjDrJ7jGQ9pdUpAtRABEBAAG0HkJyaWFuIEMuIExhbmUg PGJjbEByZWRoYXQuY29tPokBVAQTAQoAPgIbAwIeAQIXgAULCQgHAwUVCgkICwUW -AgMBABYhBLTGtFHk+otCMsoZHhF+jBaO/jp/BQJczi7GBQkTPx1TAAoJEBF+jBaO -/jp/rvMH/2l/2Welr7i/nupMQYh+f1sUQAtDulMUyy3kT2JIDvAPUPVH/JjuQ9DV -YTRd0A5593Y9fb7V3Gsqz+paG9ThGPyWdS8UmufU1XCeGktYJDkwLSwqrLs3p+HT -qE34B9aWU1nQXpWc0/rX/a7NrgWKTs6iVkwZ3bZ+pgwFf9bPHnCCVkn9TJtU2hhA -8vBZwOqzhSTbppXZrw+76rZK83q+2WS76zOlXrFEVAWn5DrQ+sCGTxkhPWA8zLAq -OAtJ14dwZCQGUHCWr7aFY2odIWCJnhukcFr0ot9pdnx9uy2DfAynd2Q/+tiaz1CL -qnc6THA8VNDyzi5EyeDNAE0meoIpK7eIRgQQEQIABgUCS37G6QAKCRAh+2P+lxLC +AgMBABYhBLTGtFHk+otCMsoZHhF+jBaO/jp/BQJglc7SBQkW+DzfAAoJEBF+jBaO +/jp/H4sH/A/92VVmfKssdC41fIO2iBIokLLfAAYzw75unKS84ovjeussUHqgDVCt +ZzXcHixo6oiYGgtyb5/EXTgEK6blZiUgsiWLFcFAo3tvCpMz9xa3XcaSw7MKwHCI +lmcdZalnQD47cu3E0CjFRoo9p3yueDYh3ZjMEzAFilGiZOBeoMwKxCofVqQCstp0 +0XZVMjAD/ZvhuNyXmqYykAcjORY2eVq92tOAdW6cAqv963hlDs6GRdYxBbx6Jorx +8bqpTQA9o/y3g6clt/oPmjAXtBPnHQFH6XlVIXodCPc5iuEe6gFmvL29JDARTkee +hIsqNbrPy11JQkD6EfC6vaWQ5G1DbsWIRgQQEQIABgUCS37G6QAKCRAh+2P+lxLC zbmrAJ9ENIweBGv/eRERFJAhU5vS+pzqQACfbUM8Bl4ayxWcznUVmIlnAkG1+f+J AhwEEAEKAAYFAlVhGI8ACgkQ0phFpw9QF94AEBAAj9g/cR2fv6ognKbd3noTz7zt 8unMKD33s4evHaLQCaeqZLa26RPg2LDlPBmUbyAT75KMqEnAo5Mm5cLTrQY0k3mF @@ -72,13 +72,13 @@ psjonaFP8jA3TqL0QK+yzBRKJnMnLEY1nWE1FtkMRccXvzi0Z/XQVhiWQyTvDFoK tepBFrH9UqWbNHyki22aighumUsW01pcPH2ogSj+HR01r7SfI/y2EkE6loHQfCDy cHmlqYV+X6GZEvf1qu2+EHEQChsHIAxWyshsxM/ZPmx/8e5S3Xmjl7h/6E9wcsIp vnf504sLX5j4Km9I5HgJSRxHxgRPpqJ2/XiClAJanO5gCw0RdQARAQABiQE8BBgB -CgAmAhsMFiEEtMa0UeT6i0IyyhkeEX6MFo7+On8FAlzOLuYFCRM/HXMACgkQEX6M -Fo7+On8E9gf+JIm8+RBRhkKv++PMgf94UWOQo4Evro5kZZDl//M0M7TOSrZj1KVi -zfQaLWMAq+GQe74tOSQGVlRmPnrn69rpeKNcjy+YyRlDIvknG3fw+EgZUJ7BaNDn -an6nnKNzmUhxI+a2r1V/k1VjUq1cXGNgPEVcyu2Ph3V23zP7zsVrpN2YeTlr/jQB -r1EoGD6JlL0LftBusXUhBv0UhDjaLDCFGdx2dccGTZalQe9vikMQH2ahDfyXQzHc -yWztzh4xM44VBFLBpMwiuocu4yZZnz47FIbD3Oc3KKasa75Vgeh00HNdIItPwID2 -N1oNRAfiyazs6kUwmRHwpvS3JFkcaWhakJkBDQRLfsVzAQgApANWbXDuB+2VBv9G +CgAmAhsMFiEEtMa0UeT6i0IyyhkeEX6MFo7+On8FAmCVzrsFCRb4PMgACgkQEX6M +Fo7+On/svQgAnigeMeQPF3mDhjy88yNwL2cIdP8IPNU/lx70e5IJfL0cOWX8xX7n +n446Tj7KvACWLlFyhCNI3Wm9a2WMTsTKA8gG/WgDFgOONFN+2KyrCza1fgvzgv89 +ybovdksM5PGtS660O8SsMAIa7HUyObnTJHWJIUQxyzZrw9EQ6kX/JB1NHEX/zKfN +n5E0CPeBXfDYvNzUnBuJkTyBBk0zMF/k05RQ0FrA08SkF/YMAWWrzBbMQTnooSuP +7AHuVudX+P3XIqtVLL3S55HMag0hSA0aW0ghSFqiqabmvtLmJOHL7Ai3/FKCafou +SEd7AfZKfWLGgBslnLrcST5ytRNs4LI9KZkBDQRLfsVzAQgApANWbXDuB+2VBv9G i+EZWSKM7KK18xa60wLCRB73cvqxwh98UXBc+iDG3wjnVfqCsZQz+z0tL1in6scJ HpzlLreaPW99rg3RTFuCGxVxEPeALkkKUo6PD5VTJv+daZpkcXSc8j569GA9/JlS uqlBGCyP+M10oBZOPdxk/GOJtzdfDv/snj5zjiLY+6m6wjAEqAcdUxvGXYPLn3oT @@ -104,5 +104,5 @@ UH6H0kR9up567mQO3xy6Rw4NdiLwpGpBjofH8u69vkFMNXxWYwlscM70Ye3uCP6E TFYYdlnD+KHlXtaCKqu4vh9QEVV9lx6qx3Gh4gNcKYQwsGBtNi+QcGlR+cQZnIfQ yNDmEqwON6sW2LqKSrkBjwN18jK3kDSSTMXKAEIM4OTTayqD9jdoA+j6pJ3QF8m5 MupQVzWmw8NNbNuPfGmsE/s= -=a7qH +=Frrv -----END PGP PUBLIC KEY BLOCK----- diff --git a/sources b/sources index 98268d4..aed1bd4 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (parted-3.2.153.tar.xz) = 149772c95f12430f6eb64ae1dc83a905059263bf8ec9a84bb2d2ff573d3a1b76d5dd67dfb511973f9fb63a9843e098b126e5f5c2c93cec7c926b6a1abe646a43 -SHA512 (parted-3.2.153.tar.xz.sig) = 6c84f7434fd36da94472f2a8c59ce3b0a5aa22f474ea5f90def27f1db391c86bd700a851ebc82519fa7dc44a9f23c4efc2c3374b9e6f04b845d2e34399d06702 +SHA512 (parted-3.6.tar.xz) = 034a44b25718acba175212019d24f092972a791c5bd1d921ae91e17478657a77c5c5dd0c832bed7968c3a07ec6c65c0785acfac2f90c1ca5e1692f3c141693ef +SHA512 (parted-3.6.tar.xz.sig) = 7c845026937b29fb49085ef9e3354226b73a1c3b5f9082d440d9a8ac13d76b1d07dae0bc10d8c974d4e57bc582f38c0a908e80718dd1ff1adfad3b04699c672c diff --git a/tests/provision.fmf b/tests/provision.fmf deleted file mode 100644 index dd69f34..0000000 --- a/tests/provision.fmf +++ /dev/null @@ -1,5 +0,0 @@ ---- - -standard-inventory-qcow2: - qemu: - m: 4G diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100755 index 0000000..0161a84 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,30 @@ +#!/usr/bin/bash +set -eux + +DISK=/var/tmp/parted-disk.img + +# Make a temporary disk image to use for tests +fallocate -l 100MiB $DISK + +# Make a disklabel and a couple of partitions +parted -s $DISK mklabel gpt +parted -s $DISK mkpart vfat 1MiB 10MiB +parted -s $DISK mkpart ext4 10MiB 50MiB +parted -s $DISK mkpart ext4 50MiB 75MiB +parted -s $DISK set 1 boot +parted -s $DISK set 3 linux-home + +# Check p1 for ESP UUID c12a7328-f81f-11d2-ba4b-00a0c93ec93b +P1_TYPE=$(parted -s $DISK --json u MiB p | jq -r '.disk.partitions[0]."type-uuid"') +[ "$P1_TYPE" == "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ] || exit 1 + +# Check p2 for linux data type 0fc63daf-8483-4772-8e79-3d69d8477de4 +P2_TYPE=$(parted -s $DISK --json u MiB p | jq -r '.disk.partitions[1]."type-uuid"') +[ "$P2_TYPE" == "0fc63daf-8483-4772-8e79-3d69d8477de4" ] || exit 1 + +# Check p3 for linux home type 933ac7e1-2eb4-4f13-b844-0e14e2aef915 +P3_TYPE=$(parted -s $DISK --json u MiB p | jq -r '.disk.partitions[2]."type-uuid"') +[ "$P3_TYPE" == "933ac7e1-2eb4-4f13-b844-0e14e2aef915" ] || exit 1 + +echo "PASS" +exit 0 diff --git a/tests/simple/run_tests.sh b/tests/simple/run_tests.sh deleted file mode 100755 index 9d40419..0000000 --- a/tests/simple/run_tests.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -set -eux - -: ${1?"Usage: $0 TESTSDIR"} - -TESTSDIR="$1" -SOURCEDIR="${TESTSDIR}/source/" -PACKAGE=parted - -cd "${TESTSDIR}" -if [ ! -e ${PACKAGE}.spec ]; then - echo "Missing ${PACKAGE}.spec" - pwd - ls - exit 1 -fi - -# This runs from the ./tests/ directory -# Install the dependencies from the spec which MUST be copied over by tests.yml -dnf -y build-dep ${PACKAGE}.spec - -# Flattened sources from standard-role-sources -cd "${SOURCEDIR}" || exit - -# Rebuild the package in place, also runs the %check -# skip %prep, it was already run on the source before it was copied over -rpmbuild --noprep --nodeps -bb --build-in-place "${TESTSDIR}/${PACKAGE}.spec" -RET=$? -exit ${RET} diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 46066eb..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,33 +0,0 @@ ---- -# Run parted's tests by rebuilding the rpm and running the %check section -- hosts: localhost - vars: - package: parted - tenv_workdir: "/tmp/workdir" - tags: - - classic - tasks: - - name: Copy the spec file over to the workdir - copy: - src: "{{ playbook_dir }}/../{{ package }}.spec" - dest: "{{ tenv_workdir }}/" - -- hosts: localhost - vars: - tenv_workdir: "/tmp/workdir" - roles: - - role: standard-test-source - tags: - - always - - - role: standard-test-basic - tags: - - classic - - required_packages: - - dnf - - rpm-build - - tests: - - simple: - run: "./run_tests.sh {{ tenv_workdir }}"