[PATCH-SERIES qemu-server v2 0/7] fix #7383: agent: fsfreeze: skip freeze if already frozen

Fiona Ebner
2026-04-23T12:40:16Z

Changes in v2:
* Drop already applied patches.
* Rebase on master, making use of the new should_fs_freeze() function.
* Add patch to switch to v5.36 and use subroutine signatures.
* Add patch renaming guest_fs{freeze,thaw} to guest_fs_{freeze,thaw}.
* Drop patch for changing signature of get_qga_key().
* Rename guest_fsfreeze_applicable() to guest_fs_freeze_applicable().
* Simplify log function (usage) in guest_fsfreeze_applicable().
* Drop $is_backup argument from guest_fs_freeze_applicable() now that
there is no backup-specific option anymore (is an alias for the
general one).
* Pass guest agent config for move disk caller of clone_disk() for
completenetss.

The first patch migrates the agent module to use v5.36 and subroutine
signatures.

The second patch renames guest_fs{freeze,thaw} to
guest_fs_{freeze,thaw} for consistency with should_fs_freeze().

The next four patches lead up to harmonizing the checks for guest
filesystem freeze which previously were duplicated to three different
places and improve encapsulation of the agent module.

The last patch closes bug #7383 and checks if the filesystem is
already frozen before attempting freeze to avoid a confusing error
message.

qemu-server:

Fiona Ebner (7):
agent: migrate to v5.36 and use subroutine signatures
agent: rename guest_fs{freeze,thaw} to guest_fs_{freeze,thaw}
agent: parse: change signature to take property string rather than
full VM config
agent: should fs freeze: change signature to take property string
rather than full VM config
clone disk/block jobs: change signatures to take guest agent property
string
agent: fs freeze: harmonize checks for guest fs freeze
fix #7383: agent: fsfreeze: skip freeze if already frozen

src/PVE/API2/Qemu.pm | 10 +--
src/PVE/QMPClient.pm | 2 +-
src/PVE/QemuConfig.pm | 18 +++--
src/PVE/QemuServer.pm | 8 +--
src/PVE/QemuServer/Agent.pm | 121 +++++++++++++++++++++------------
src/PVE/QemuServer/BlockJob.pm | 19 ++----
src/PVE/VZDump/QemuServer.pm | 24 +++----
7 files changed, 109 insertions(+), 93 deletions(-)

Summary over all repositories:
7 files changed, 109 insertions(+), 93 deletions(-)

--
Generated by git-murpp 0.5.0