]> git.ipfire.org Git - pakfire.git/commitdiff
snapshots: Be more verbose when cleaning up snapshots
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:08:22 +0000 (15:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:08:22 +0000 (15:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/snapshot.c

index 80c2f5c6c4a80cdf8a2fd1100d994eb538eb43ab..beb5c694440ecfd25d518934388c15f1822e0a70 100644 (file)
@@ -381,6 +381,7 @@ static int pakfire_snapshot_destroy(struct pakfire_snapshot* snapshot) {
        if (r < 0) {
                switch (errno) {
                        case EWOULDBLOCK:
+                               CTX_DEBUG(snapshot->ctx, "Snapshot %s is used elsewhere\n", snapshot->path);
                                return -EBUSY;
 
                        default:
@@ -533,6 +534,8 @@ int pakfire_snapshot_clean(struct pakfire* pakfire) {
 
        struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
 
+       CTX_DEBUG(ctx, "Cleaning up snapshots...\n");
+
        // Make the path
        r = pakfire_cache_path(pakfire, path, "%s", "snapshots");
        if (r < 0)