Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lnussel:legacyfree
snapper
0001-Call-delete-snapshot-plugin-earlier.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Call-delete-snapshot-plugin-earlier.patch of Package snapper
From 5d17e5ed33b87026f39cffe42b566396465f8be4 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Tue, 21 Jun 2022 13:39:03 +0200 Subject: [PATCH] Call delete-snapshot plugin earlier Call the delete-snapshot plugin before actually removing any files, in case it still needs to fetch information from the snapshot. --- snapper/Snapshot.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snapper/Snapshot.cc b/snapper/Snapshot.cc index abf17aa..51ff1e8 100644 --- a/snapper/Snapshot.cc +++ b/snapper/Snapshot.cc @@ -764,6 +764,8 @@ namespace snapper snapshot->isActive()) SN_THROW(IllegalSnapshotException()); + Hooks::delete_snapshot(snapper->subvolumeDir(), snapper->getFilesystem(), *snapshot); + snapshot->deleteFilesystemSnapshot(); SDir info_dir = snapshot->openInfoDir(); @@ -792,8 +794,6 @@ namespace snapper SDir infos_dir = snapper->openInfosDir(); infos_dir.unlink(decString(snapshot->getNum()), AT_REMOVEDIR); - Hooks::delete_snapshot(snapper->subvolumeDir(), snapper->getFilesystem(), *snapshot); - entries.erase(snapshot); } -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor