diff --git a/dummy-bootcode-only-for-x86.patch b/dummy-bootcode-only-for-x86.patch index e98df3a..633c589 100644 --- a/dummy-bootcode-only-for-x86.patch +++ b/dummy-bootcode-only-for-x86.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: parted: dos: Wipe boot code only on x86 +Patch-mainline: no, custom SUSE patch --- libparted/labels/dos.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib-fs-resize-prevent-crash-resizing-FAT16.patch b/lib-fs-resize-prevent-crash-resizing-FAT16.patch index 9ccf4d8..ac39a61 100644 --- a/lib-fs-resize-prevent-crash-resizing-FAT16.patch +++ b/lib-fs-resize-prevent-crash-resizing-FAT16.patch @@ -1,7 +1,8 @@ -From 1e9e770f4bc7f3d80e09ecd1df58575fad064163 Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Sun, 28 Sep 2014 16:15:48 +0100 -Subject: [PATCH] lib-fs-resize: Prevent crash resizing FAT16 file systems +Subject: lib-fs-resize: Prevent crash resizing FAT16 file systems +Patch-mainline: v3.3 +Git-commit: 1e9e770f4bc7f3d80e09ecd1df58575fad064163 Resizing FAT16 file system crashes in libparted/fs/r/fat/resize.c create_resize_context() because it was dereferencing NULL pointer diff --git a/libparted-Add-support-for-NVDIMM-devices.patch b/libparted-Add-support-for-NVDIMM-devices.patch index 64cd0ca..5baa0d4 100644 --- a/libparted-Add-support-for-NVDIMM-devices.patch +++ b/libparted-Add-support-for-NVDIMM-devices.patch @@ -2,7 +2,8 @@ From: Sebastian Parschauer Date: Mon, 23 Oct 2017 17:47:47 +0200 Subject: Add support for NVDIMM devices References: bsc#1064446 -Patch-mainline: submitted, 2017-10-24 10:22 +0200 +Patch-mainline: v3.3 +Git-commit: 71885c5f493f3a5d950adbb3e8d17eff7e023053 Recognize NVDIMM devices, so that "parted -s /dev/pmem7 p" now prints "Model: NVDIMM Device (pmem)" instead of diff --git a/libparted-Add-support-for-NVMe-devices.patch b/libparted-Add-support-for-NVMe-devices.patch index 7ee9586..8ccac3b 100644 --- a/libparted-Add-support-for-NVMe-devices.patch +++ b/libparted-Add-support-for-NVMe-devices.patch @@ -1,7 +1,9 @@ -From 02bb5fe15b89b0a0ffd4019c9d04f16c0af29d46 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Tue, 14 Jun 2016 10:41:18 +0200 -Subject: [PATCH] Add support for NVMe devices +Subject: Add support for NVMe devices +References: bsc#982169 +Patch-mainline: v3.3 +Git-commit: e4ae4330f3e33201aeeed3b7ca88e15d98d03e13 Recognize NVMe Devices, so "parted -s /dev/nvme0n1" now prints "NVMe Device (nvme)" instead of "Model: Unknown (unknown)". diff --git a/libparted-Use-read-only-when-probing-devices-on-linu.patch b/libparted-Use-read-only-when-probing-devices-on-linu.patch index 74ae46a..3df396c 100644 --- a/libparted-Use-read-only-when-probing-devices-on-linu.patch +++ b/libparted-Use-read-only-when-probing-devices-on-linu.patch @@ -1,8 +1,8 @@ -From 44d5ae0115c4ecfe3158748309e9912c5aede92d Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 6 Aug 2015 07:17:14 -0700 -Subject: [PATCH] libparted: Use read only when probing devices on linux - (#1245144) +Subject: libparted: Use read only when probing devices on linux +Patch-mainline: v3.3 +Git-commit: 44d5ae0115c4ecfe3158748309e9912c5aede92d When a device is opened for RW closing it can trigger other actions, like udev scanning it for partition changes. Use read only for the diff --git a/libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch b/libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch index c60c651..d1ce438 100644 --- a/libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch +++ b/libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch @@ -1,7 +1,8 @@ -From 2ef86fbe0fd8a6c4b48dd8edfbe41728a7343dac Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Thu, 29 May 2014 14:50:31 +0200 -Subject: [PATCH] libparted: allow bigger snap radius if cylinders are used +Subject: libparted: allow bigger snap radius if cylinders are used +References: bnc#879387 +Patch-mainline: no, custom change for flexibility This is partial revert of commit @@ -19,8 +20,6 @@ This is partial revert of commit Only revert to the old behavior if cylinders are used in order to give parted more flexibility when snapping the partition start/end. - -References: bnc#879387 --- libparted/unit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libparted-avoid-libdevice-mapper-warnings.patch b/libparted-avoid-libdevice-mapper-warnings.patch index 9152b89..6022373 100644 --- a/libparted-avoid-libdevice-mapper-warnings.patch +++ b/libparted-avoid-libdevice-mapper-warnings.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: libparted: Avoid libdevice-mapper warnings +Patch-mainline: no, custom SUSE patch --- libparted/arch/linux.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libparted-dasd-do-not-use-first-tracks.patch b/libparted-dasd-do-not-use-first-tracks.patch index fb9ab4c..f5e943c 100644 --- a/libparted-dasd-do-not-use-first-tracks.patch +++ b/libparted-dasd-do-not-use-first-tracks.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: libparted: dasd: Do not use first tracks +Patch-mainline: v3.3, solved a bit differently in 4126d0292c75 --- libparted/labels/dasd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libparted-dasd-implicit-partition-disk-flag.patch b/libparted-dasd-implicit-partition-disk-flag.patch index c94e2a3..3c04fcb 100644 --- a/libparted-dasd-implicit-partition-disk-flag.patch +++ b/libparted-dasd-implicit-partition-disk-flag.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: libparted: dasd: Add an implicit partition disk flag +Patch-mainline: no, custom SUSE patch --- include/parted/disk.in.h | 4 +++- libparted/disk.c | 2 ++ diff --git a/libparted-fix-nvme-partition-naming.patch b/libparted-fix-nvme-partition-naming.patch index 31bd9d4..eeeaa9d 100644 --- a/libparted-fix-nvme-partition-naming.patch +++ b/libparted-fix-nvme-partition-naming.patch @@ -1,3 +1,7 @@ +From: Petr Uzel +Subject: libparted: Fix NVMe device naming +References: bsc#982169 +Patch-mainline: no, required to fix custom SUSE device naming --- libparted/arch/linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libparted-make-BLKRRPART-more-robust.patch b/libparted-make-BLKRRPART-more-robust.patch index 756c595..fb2facc 100644 --- a/libparted-make-BLKRRPART-more-robust.patch +++ b/libparted-make-BLKRRPART-more-robust.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: libparted: Make BLKRRPART more robust +Patch-mainline: no, upstream does not use BLKRRPART and leaves DASDs broken --- libparted/arch/linux.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch b/libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch index 023ba11..533eab3 100644 --- a/libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch +++ b/libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch @@ -1,7 +1,8 @@ -From 01900e056ec250836d15b5f5c3f59a8e1454b781 Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Mon, 4 Nov 2013 13:10:09 -0500 -Subject: [PATCH] libparted: make sure not to treat percentages as exact +Subject: libparted: make sure not to treat percentages as exact +Patch-mainline: v3.2, custom part from puzel still required +Git-commit: 01900e056ec250836d15b5f5c3f59a8e1454b781 If 1% of the drive size worked out ot be an even power of two, it would trigger the exact placement. Add an exception @@ -9,7 +10,6 @@ for the percent units. Petr Uzel : Also avoid this logic when the unit is specified as cylinders. - --- libparted/unit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libparted-use-BLKRRPART-for-DASD.patch.patch b/libparted-use-BLKRRPART-for-DASD.patch.patch index 4cad8a5..83d823f 100644 --- a/libparted-use-BLKRRPART-for-DASD.patch.patch +++ b/libparted-use-BLKRRPART-for-DASD.patch.patch @@ -1,9 +1,8 @@ -From ac422c32ae3be0e599f7b3f4ab6961b61129c4ba Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Fri, 14 Feb 2014 09:12:47 +0100 -Subject: [PATCH] libparted-used-BLKRRPART-for-DASD.patch - -Addresses: bnc#862139 +Subject: libparted: use BLKRRPART for DASDs +References: bnc#862139 +Patch-mainline: no, upstream dropped proper DASD support This reverts upstream commit 9fa0e1800db5b9f094ae481fd95a51da03f19e95. This reverts upstream commit 1223b9fc07859cb619c80dc057bd05458f9b5669. diff --git a/more-reliable-informing-the-kernel.patch b/more-reliable-informing-the-kernel.patch index 3d08fbf..feb6e9b 100644 --- a/more-reliable-informing-the-kernel.patch +++ b/more-reliable-informing-the-kernel.patch @@ -1,12 +1,15 @@ -# bnc#657360 -# -# This patch should make parted's process of informing the kernel -# about changes of partition table sligtly more reliable. -# It consists of 3 quite unrelated parts: -# -# 1. increase the max sleep time if partition is busy from 1 to 2 seconds -# 2. do not inform the kernel when only partition flags change - kernel -# does not care about the flags +From: Petr Uzel +Subject: parted: Make informing the kernel more reliable +References: bnc#657360 +Patch-mainline: no + +This patch should make parted's process of informing the kernel +about changes of partition table sligtly more reliable. +It consists of 2 quite unrelated parts: + +* increase the max sleep time if partition is busy from 1 to 2 seconds +* do not inform the kernel when only partition flags change - kernel + does not care about the flags --- libparted/arch/linux.c | 2 +- parted/parted.c | 28 +++++++++++++++++++++++++++- diff --git a/parted-2.4-ncursesw6.patch b/parted-2.4-ncursesw6.patch index 5a2ade4..57af31d 100644 --- a/parted-2.4-ncursesw6.patch +++ b/parted-2.4-ncursesw6.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: build: Add ncursesw6 support +Patch-mainline: no, custom SUSE patch --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parted-fatresize-autoconf.patch b/parted-fatresize-autoconf.patch index 06dfde3..a8063fe 100644 --- a/parted-fatresize-autoconf.patch +++ b/parted-fatresize-autoconf.patch @@ -1,3 +1,17 @@ +From: Petr Uzel +Subject: build: Patch fatresize build into parted package +Patch-mainline: no, custom SUSE patch + +Fatresize is used by YaST to resize FAT16/FAT32 file systems. It uses +libparted functions for that purpose but does not resize the FAT +partition afterward. That is the task of parted instead. So using it +without parted and YaST doesn't make much sense. + +Versions more recent than 0.1 like e.g. 1.0.3 are incompatible and +risk data loss by silently increasing the FS size (See: bsc#1072479). + +Upstream: https://github.com/ya-mouse/fatresize +[sparschauer: Wrote the patch description] --- Makefile.am | 2 +- configure.ac | 1 + diff --git a/parted-mac.patch b/parted-mac.patch index de06b6c..452538a 100644 --- a/parted-mac.patch +++ b/parted-mac.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: parted: mac: Print the system name +Patch-mainline: no, custom SUSE patch --- include/parted/disk.in.h | 9 +++++++-- libparted/disk.c | 33 +++++++++++++++++++++++++++++++++ diff --git a/parted-resize-alias-to-resizepart.patch b/parted-resize-alias-to-resizepart.patch index e3f9632..75240e8 100644 --- a/parted-resize-alias-to-resizepart.patch +++ b/parted-resize-alias-to-resizepart.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: parted: Add an "resize" alias for "resizepart" +Patch-mainline: no, compatibility for parted < 3.0 syntax --- parted/parted.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parted-type.patch b/parted-type.patch index 368f828..bfffd8a 100644 --- a/parted-type.patch +++ b/parted-type.patch @@ -1,3 +1,9 @@ +From: Petr Uzel +Subject: parted: Introduce a type flag +Patch-mainline: no, required by YaST + +YaST requires a type flag in order to check the current partition +type for msdos partition tables. --- include/parted/disk.in.h | 5 ++- libparted/disk.c | 2 + diff --git a/parted-wipeaix.patch b/parted-wipeaix.patch index 1b83796..83912d7 100644 --- a/parted-wipeaix.patch +++ b/parted-wipeaix.patch @@ -1,3 +1,6 @@ +From: Petr Uzel +Subject: parted: dos: Wipe AIX FS signatures +Patch-mainline: no, custom SUSE patch --- libparted/labels/dos.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/parted.changes b/parted.changes index 468b7ab..24b5ef1 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 22 17:23:25 CET 2017 - sparschauer@suse.de + +- Amend patch headers (no functional change) + ------------------------------------------------------------------- Tue Dec 19 17:23:10 UTC 2017 - sparschauer@suse.de