Skip to content

sfdisk: incremental kernel updates for -N and --append

Tianyi Chen util-linux 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libfdisk: propagate errors from fdisk_reread_changes()libfdisk/src/context.c+6 -20 replies
2/3libfdisk: limit resized DOS extended partitions to two sectorslibfdisk/src/context.c+7 -10 replies
3/3sfdisk: update only changed partitions with -N and --appenddisk-utils/sfdisk.8.adoc disk-utils/sfdisk.c tests/expected/sfdisk/dos-reduce-empty-extended +40 more+133 -420 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] sfdisk: incremental kernel updates for -N and --append

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
Signature · 1 line
2.55.0