Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package partclone for openSUSE:Factory checked in at 2026-11-16 09:08:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/partclone (Old) and /work/SRC/openSUSE:Factory/.partclone.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "partclone" Mon Nov 16 09:08:47 2026 rev:35 rq:1397669 version:0.3.54 Changes: -------- --- /work/SRC/openSUSE:Factory/partclone/partclone.changes 2026-11-11 16:31:46.758106553 +0100 +++ /work/SRC/openSUSE:Factory/.partclone.new.1251/partclone.changes 2026-11-16 09:14:35.530197877 +0100 @@ -1,0 +2,10 @@ +Sun Nov 15 07:41:57 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to 0.3.54: + * zfs: fix off-by-one in log spacemap unflushed-txg filter + (gh#Thomas-Tsai/partclone#325): allocations recorded only + in log entries at the unflushed boundary were missing from + the image bitmap, leaving blocks unwritten and causing ZFS + checksum errors and data corruption on restore + +------------------------------------------------------------------- Old: ---- partclone-0.3.53.tar.gz New: ---- partclone-0.3.54.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ partclone.spec ++++++ --- /var/tmp/diff_new_pack.mng45M/_old 2026-11-16 09:14:36.197225842 +0100 +++ /var/tmp/diff_new_pack.mng45M/_new 2026-11-16 09:14:36.201226010 +0100 @@ -18,7 +18,7 @@ Name: partclone -Version: 0.3.53 +Version: 0.3.54 Release: 0 Summary: File System Clone Utilities License: GPL-2.0-or-later ++++++ partclone-0.3.53.tar.gz -> partclone-0.3.54.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/CONTRIBUTORS new/partclone-0.3.54/CONTRIBUTORS --- old/partclone-0.3.53/CONTRIBUTORS 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/CONTRIBUTORS 2026-11-15 05:27:40.000000000 +0100 @@ -1,4 +1,4 @@ - 1010 Thomas Tsai + 1013 Thomas Tsai 257 thomas 59 Patryck Rouleau 54 Kenji Okimoto diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/ChangeLog new/partclone-0.3.54/ChangeLog --- old/partclone-0.3.53/ChangeLog 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/ChangeLog 2026-11-15 05:27:40.000000000 +0100 @@ -1,3 +1,36 @@ +2026-11-15 Thomas Tsai <[email protected]> + + Merge pull request #325 from Thomas-Tsai/fix-zfs-spacemap-bitmap + partclone.zfs: fix off-by-one in log spacemap unflushed-txg filter + +2026-11-12 Thomas Tsai <[email protected]> + + partclone.zfs: fix off-by-one in log spacemap unflushed-txg filter + read_bitmap() skipped log spacemap entries with txg <= the metaslab's + ms_unflushed_phys_txgs value, assuming they were already flushed into + the metaslab's own space map. The on-disk value actually marks the + first txg that is still pending in the log: ZFS ignores only entries + strictly older than the unflushed boundary, so entries with + txg == unflushed must still be applied. + + When a pool is exported with pending log entries (normal import / + write / export churn, or forced exports), the boundary txg commonly + equals some metaslab's unflushed value. Allocations recorded only in + those entries were then missing from the image bitmap, left unwritten + at restore time and caused ZFS checksum errors / permanent data + corruption on the target. Verified against a production Clonezilla + image of a ZFS root pool: before the fix the fixed binary reproduces + the broken image bit-for-bit; after the fix all previously dropped + blocks are marked and restore byte-identically. + + Only the comparison bound changes (< instead of <=), plus comments. + tests/zfs.test gains import/export churn rounds and a post-restore + zpool scrub assertion to cover this scenario. + +2026-11-11 Thomas Tsai <[email protected]> + + Bump version to 0.3.53 + 2026-11-05 Thomas Tsai <[email protected]> Merge pull request #324 from Thomas-Tsai/fix-321-rw-mismatch-partial-tail diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/configure.ac new/partclone-0.3.54/configure.ac --- old/partclone-0.3.53/configure.ac 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/configure.ac 2026-11-15 05:27:40.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT([Partclone],[0.3.53],[[email protected]]) +AC_INIT([Partclone],[0.3.54],[[email protected]]) #condition for CPU target AC_CANONICAL_TARGET diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/de.po new/partclone-0.3.54/po/de.po --- old/partclone-0.3.53/po/de.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/de.po 2026-11-15 05:27:40.000000000 +0100 @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: Partclone 0.3.3\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2023-05-15 18:40+0300\n" "Last-Translator: Stanislav Bolshakov <[email protected]>\n" "Language-Team: Deutsch\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/fr_FR.po new/partclone-0.3.54/po/fr_FR.po --- old/partclone-0.3.53/po/fr_FR.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/fr_FR.po 2026-11-15 05:27:40.000000000 +0100 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Partclone 0.2.9\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2010-11-01 10:13+0100\n" "Last-Translator: \n" "Language-Team: French <[email protected]>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/ka.po new/partclone-0.3.54/po/ka.po --- old/partclone-0.3.53/po/ka.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/ka.po 2026-11-15 05:27:40.000000000 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: partclone 0.3.46\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2026-03-22 08:16+0100\n" "Last-Translator: Ekaterine Papava <[email protected]>\n" "Language-Team: Georgian <(nothing)>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/partclone.pot new/partclone-0.3.54/po/partclone.pot --- old/partclone-0.3.53/po/partclone.pot 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/partclone.pot 2026-11-15 05:27:40.000000000 +0100 @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: partclone 0.3.52\n" +"Project-Id-Version: partclone 0.3.53\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/pt_BR.po new/partclone-0.3.54/po/pt_BR.po --- old/partclone-0.3.53/po/pt_BR.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/pt_BR.po 2026-11-15 05:27:40.000000000 +0100 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Partclone 0.3.44\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2026-02-17 23:28-0300\n" "Last-Translator: Rafael Fontenelle <[email protected]>\n" "Language-Team: Brazilian Portuguese\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/ru.po new/partclone-0.3.54/po/ru.po --- old/partclone-0.3.53/po/ru.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/ru.po 2026-11-15 05:27:40.000000000 +0100 @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: Partclone 0.3.3\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2023-05-15 18:47+0300\n" "Last-Translator: Stanislav Bolshakov <[email protected]>\n" "Language-Team: Russian\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/vi.po new/partclone-0.3.54/po/vi.po --- old/partclone-0.3.53/po/vi.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/vi.po 2026-11-15 05:27:40.000000000 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: partclone-0.2.61\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2013-06-13 09:03+0700\n" "Last-Translator: Trần Ngọc Quân <[email protected]>\n" "Language-Team: Vietnamese <[email protected]>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/zh_CN.po new/partclone-0.3.54/po/zh_CN.po --- old/partclone-0.3.53/po/zh_CN.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/zh_CN.po 2026-11-15 05:27:40.000000000 +0100 @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: Partclone 0.2.51\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2007-11-01 11:35+0800\n" "Last-Translator: Peter Dave Hello\n" "Language-Team: Peter Dave Hello\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/po/zh_TW.po new/partclone-0.3.54/po/zh_TW.po --- old/partclone-0.3.53/po/zh_TW.po 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/po/zh_TW.po 2026-11-15 05:27:40.000000000 +0100 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Partclone 0.2.51\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2026-11-11 11:40+0800\n" +"POT-Creation-Date: 2026-11-15 12:27+0800\n" "PO-Revision-Date: 2007-11-01 11:35+0800\n" "Last-Translator: Yu-Chin Tsai <[email protected]>\n" "Language-Team: Chinese (traditional) <[email protected]>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/src/version.h new/partclone-0.3.54/src/version.h --- old/partclone-0.3.53/src/version.h 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/src/version.h 2026-11-15 05:27:40.000000000 +0100 @@ -3,5 +3,5 @@ * WHETHER THEY ARE BUILT BY OTHERS OR DURING DEVELOPMENT OR FOR THE * OFFICIAL PARTCLONE RELEASES. */ -#define git_version "a3d8b518" +#define git_version "11a55a81" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/src/zfsclone.c new/partclone-0.3.54/src/zfsclone.c --- old/partclone-0.3.53/src/zfsclone.c 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/src/zfsclone.c 2026-11-15 05:27:40.000000000 +0100 @@ -24,8 +24,11 @@ * 4. config (packed nvlist) -> vdev_tree -> top vdev -> * "com.delphix:vdev_zap_top" -> "com.delphix:ms_unflushed_phys_txgs". * 5. Replay every metaslab's space map (alloc/free) into the bitmap. - * 6. Replay log space maps with txg > per-metaslab unflushed txg - * (txg <= unflushed entries are already folded into step 5). + * 6. Replay log space map entries with txg >= per-metaslab unflushed + * txg (entries OLDER than the unflushed txg are already folded into + * step 5; entries whose txg equals the unflushed value are NOT yet + * flushed and must be applied - the on-disk value marks the first + * pending, i.e. un-replayed, txg). * If the unflushed array is unavailable, apply alloc entries and * skip frees (safe over-estimate). * 7. Mark the vdev label area (first 4 MiB; last 512 KiB) used. @@ -163,7 +166,13 @@ if (m >= ctx->ms_count) return; if (ctx->unflushed != NULL) { - if (ctx->txg <= ctx->unflushed[m]) { + /* ms_unflushed_phys_txgs[m] is the first txg whose entries + * are still pending in the log and have NOT been folded + * into the metaslab's own space map. Skip only entries + * OLDER than that boundary; an entry at exactly the + * boundary still needs to be applied (off-by-one here + * silently drops allocations and corrupts restores). */ + if (ctx->txg < ctx->unflushed[m]) { ctx->skipped++; return; /* already flushed */ } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/partclone-0.3.53/tests/zfs.test new/partclone-0.3.54/tests/zfs.test --- old/partclone-0.3.53/tests/zfs.test 2026-11-11 04:41:11.000000000 +0100 +++ new/partclone-0.3.54/tests/zfs.test 2026-11-15 05:27:40.000000000 +0100 @@ -137,6 +137,32 @@ zpool export "$POOL" print_pass "source pool '$POOL' created and exported." +# --- Step 1b: import/export churn to build log-spacemap boundary state --- +# +# Regression cover for the ms_unflushed_phys_txgs off-by-one: entries whose +# txg equals a metaslab's unflushed txg are still pending in the log spacemap +# and MUST be replayed. A few import -> rewrite -> export rounds leave the +# pool with non-flushed log entries at the boundary, which used to result in +# silently unmarked (unrestored) allocations. + +print_info "Step 1b: import/export churn rounds to stress log spacemap boundaries" + +for round in 1 2 3; do + zpool import -f -R "$SRC_ROOT" -d "$(dirname "$(readlink -f "$RAW_SRC")")" "$POOL" || + print_fail "zpool import failed in churn round $round" + # full rewrite of one file (CoW churn), a fresh file, and a small one + dd if=/dev/urandom of="$SRC_ROOT/data/random_8m.bin" bs=1M count=8 conv=notrunc status=none + dd if=/dev/urandom of="$SRC_ROOT/data/churn_$round.bin" bs=1M count=3 status=none + echo "round $round $(date)" > "$SRC_ROOT/data/churn_small_$round.txt" + sync + # refresh the checksum manifest while the pool is still mounted + pushd "$SRC_ROOT/data" > /dev/null + find . -type f -exec md5sum '{}' \; > "$SCRIPT_DIR/$CH_FILE" + popd > /dev/null + zpool export "$POOL" +done +print_pass "churn done; final manifest regenerated." + # helper: import $1 (file under test) as $POOL_CLONE under $DST_ROOT and md5 check function verify_clone() { local under_test="$1" @@ -148,6 +174,14 @@ pushd "$DST_ROOT/data" > /dev/null md5sum --quiet -c "$SCRIPT_DIR/$CH_FILE" || { popd > /dev/null; return 1; } popd > /dev/null + # Full-surface check: a scrub must end with no errors. Blocks silently + # dropped by the bitmap (the off-by-one bug class) show up here as + # permanent checksum errors even when the sampled files above are fine. + zpool scrub -w "$POOL_CLONE" || return 1 + zpool status "$POOL_CLONE" | grep -q "errors: No known data errors" || { + zpool status "$POOL_CLONE" + return 1 + } zpool export "$POOL_CLONE" || return 1 rm -rf "$vdir" "$DST_ROOT/data" return 0
