public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Robert Scheck <robert@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/partclone] f45: Upgrade to 0.3.55 (#2585339)
Date: Mon, 30 Nov 2026 00:27:05 GMT [thread overview]
Message-ID: <179599842511.1.9691670384491113874.rpms-partclone-4c019090cf39@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/partclone
Branch : f45
Commit : 4c019090cf3909de74e3b2d592af02b90a7cde97
Author : Robert Scheck <robert@fedoraproject.org>
Date : 2026-11-29T23:25:39+01:00
Stats : +5/-74 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/partclone/c/4c019090cf3909de74e3b2d592af02b90a7cde97?branch=f45
Log:
Upgrade to 0.3.55 (#2585339)
---
diff --git a/partclone-0.3.54-s390x.patch b/partclone-0.3.54-s390x.patch
deleted file mode 100644
index 91e9b67..0000000
--- a/partclone-0.3.54-s390x.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-From 93528e5384406ebe57dcb510df691f7e9481a91e Mon Sep 17 00:00:00 2001
-From: Robert Scheck <robert-scheck@users.noreply.github.com>
-Date: Mon, 16 Nov 2026 00:25:09 +0100
-Subject: [PATCH] bitmap: address bits per byte to fix big-endian image bitmaps
-
-The block bitmap is kept in memory as an array of unsigned long with
-bits addressed per long, but it is written to and read from the image
-as pc_BITS_TO_BYTES(totalblock) raw bytes. On little-endian hosts both
-layouts coincide; on big-endian hosts (s390x, ppc64) the bits of the
-last, partially used long live in its highest-addressed bytes, which
-are cut off when totalblock is not a multiple of BITS_PER_LONG.
-
-Since 0.3.51 partclone.ntfs appends a partial block for the Boot
-Record copy after the end of the volume, so totalblock becomes e.g.
-16385 and the bit of the final block is lost on restore. The new
-tests/ntfs_partial_tail.test (0.3.53) exposes this on s390x: the last
-chunk covers one block less, the checksum check fails and the backup
-boot sector is not restored.
-
-Address the bitmap per byte in pc_test_bit/pc_set_bit/pc_clear_bit.
-The in-memory layout then equals the on-disk layout on every host;
-images produced on little-endian hosts are unchanged.
-
-Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
----
- src/bitmap.h | 18 +++++++++---------
- 1 file changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/src/bitmap.h b/src/bitmap.h
-index 2f6640bc..6fca4668 100644
---- a/src/bitmap.h
-+++ b/src/bitmap.h
-@@ -39,9 +39,9 @@ pc_test_bit(unsigned long int nr, unsigned long *bitmap,
- printf("test block %lu out of boundary(%llu)\n", nr, total);
- exit(1);
- }
-- unsigned long offset = nr / PART_BITS_PER_LONG;
-- unsigned long bit = nr & (PART_BITS_PER_LONG - 1);
-- return (bitmap[offset] >> bit) & 1;
-+ unsigned long offset = nr / PART_BITS_PER_BYTE;
-+ unsigned long bit = nr & (PART_BITS_PER_BYTE - 1);
-+ return (((unsigned char *)bitmap)[offset] >> bit) & 1;
- }
-
- static inline void
-@@ -54,9 +54,9 @@ pc_set_bit(unsigned long int nr, unsigned long *bitmap,
- printf("set block %lu out of boundary(%llu)\n", nr, total);
- exit(1);
- }
-- unsigned long offset = nr / PART_BITS_PER_LONG;
-- unsigned long bit = nr & (PART_BITS_PER_LONG - 1);
-- bitmap[offset] |= 1UL << bit;
-+ unsigned long offset = nr / PART_BITS_PER_BYTE;
-+ unsigned long bit = nr & (PART_BITS_PER_BYTE - 1);
-+ ((unsigned char *)bitmap)[offset] |= 1U << bit;
- }
-
- static inline void
-@@ -69,9 +69,9 @@ pc_clear_bit(unsigned long int nr, unsigned long *bitmap,
- printf("clear block %lu out of boundary(%llu)\n", nr, total);
- exit(1);
- }
-- unsigned long offset = nr / PART_BITS_PER_LONG;
-- unsigned long bit = nr & (PART_BITS_PER_LONG - 1);
-- bitmap[offset] &= ~(1UL << bit);
-+ unsigned long offset = nr / PART_BITS_PER_BYTE;
-+ unsigned long bit = nr & (PART_BITS_PER_BYTE - 1);
-+ ((unsigned char *)bitmap)[offset] &= ~(1U << bit);
- }
-
- static inline unsigned long* pc_alloc_bitmap(unsigned long bits)
diff --git a/partclone.spec b/partclone.spec
index 6934d20..dbdfac4 100644
--- a/partclone.spec
+++ b/partclone.spec
@@ -3,7 +3,7 @@
Summary: Utility to clone and restore a partition
Name: partclone
-Version: 0.3.54
+Version: 0.3.55
Release: 1%{?dist}
# Partclone itself is GPL-2.0-or-later but uses other source codes, breakdown:
# GPL-3.0-or-later: fail-mbr/fail-mbr.S
@@ -18,7 +18,6 @@ Release: 1%{?dist}
License: BSD-2-Clause AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-only AND LGPL-2.0-or-later AND LGPL-3.0-or-later
URL: https://partclone.org/
Source0: https://github.com/Thomas-Tsai/partclone/archive/%{version}/%{name}-%{version}.tar.gz
-Patch0: https://github.com/Thomas-Tsai/partclone/pull/327.patch#/partclone-0.3.54-s390x.patch
BuildRequires: gcc
BuildRequires: make
BuildRequires: libuuid-devel
@@ -133,6 +132,9 @@ make check || { cat tests/test-suite.log; exit 1; }
%{_mandir}/man8/%{name}*.8*
%changelog
+* Sun Nov 29 2026 Robert Scheck <robert@fedoraproject.org> 0.3.55-1
+- Upgrade to 0.3.55 (#2585339)
+
* Mon Nov 16 2026 Robert Scheck <robert@fedoraproject.org> 0.3.54-1
- Upgrade to 0.3.54 (#2571474)
diff --git a/sources b/sources
index 5bedeb2..be095f1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (partclone-0.3.54.tar.gz) = 4db7c93fa60dfd127ac6c1b45969208ebec349fdc9bf83d7565135aaf833f96a5f87ace252a85f0646a8496456f5dd783990683d229aeb06c08433be0146a437
+SHA512 (partclone-0.3.55.tar.gz) = dc33c607a7558ff0bb9a1a8267b1f961db8e4ad9ab40ab24d39ea7047d92f301cd49964d3bc9d53f8da9c065775eb8745e35d5dc7c4fcb9b0297e98c7ed0fa41
reply other threads:[~2026-11-30 0:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179599842511.1.9691670384491113874.rpms-partclone-4c019090cf39@fedoraproject.org \
--to=robert@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox