From: Tianyi Chen <hi@tychen.cc>
To: util-linux@vger.kernel.org
Cc: kzak@redhat.com
Subject: [PATCH 0/3] sfdisk: incremental kernel updates for -N and --append
Date: Thu, 17 Sep 2026 01:05:11 +0800 [thread overview]
Message-ID: <20260916170514.2595842-1-hi@tychen.cc> (raw)
Hi Karel,
This implements #4634: -N and --append update only changed kernel
partitions. Two preparatory libfdisk fixes cover error returns and DOS
extended-partition sizes.
In an isolated x86_64 VM, all 111 sfdisk/libfdisk subtests passed. The new
regression fails on the baseline and passes with GCC and Clang
ASan/UBSan. I also checked 4096-byte sectors and appending alongside an
active swap partition.
Thanks,
Tianyi
Tianyi Chen (3):
libfdisk: propagate errors from fdisk_reread_changes()
libfdisk: limit resized DOS extended partitions to two sectors
sfdisk: update only changed partitions with -N and --append
44 files changed, 146 insertions(+), 45 deletions(-)
create mode 100644 tests/expected/sfdisk/reread-dos
create mode 100644 tests/expected/sfdisk/reread-gpt
create mode 100755 tests/ts/sfdisk/reread
--
2.55.0
next reply other threads:[~2026-09-16 17:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 17:05 Tianyi Chen [this message]
2026-09-16 17:05 ` [PATCH 1/3] libfdisk: propagate errors from fdisk_reread_changes() Tianyi Chen
2026-09-16 17:05 ` [PATCH 2/3] libfdisk: limit resized DOS extended partitions to two sectors Tianyi Chen
2026-09-16 17:05 ` [PATCH 3/3] sfdisk: update only changed partitions with -N and --append Tianyi Chen
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=20260916170514.2595842-1-hi@tychen.cc \
--to=hi@tychen.cc \
--cc=kzak@redhat.com \
--cc=util-linux@vger.kernel.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