From cb296ea21acc3f95b6a484251ad796a86c9adbf7 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Sun, 10 Nov 2024 10:42:26 +0000 Subject: [PATCH] Fix handling of full not succeeding and wrong path --- btrfs/subvolume-delta | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/btrfs/subvolume-delta b/btrfs/subvolume-delta index 7054d9e..eb8f8e5 100755 --- a/btrfs/subvolume-delta +++ b/btrfs/subvolume-delta @@ -10,9 +10,9 @@ CDATE="$(date '+%s')" SNAPSRC="$SRC" SNAPPATH="$SNAPSRC/$SNAPDIR" -PREV="$SRC/prev" -CUR="$SRC/cur" -TMP="$SRC/tmp" +PREV="$SNAPPATH/prev" +CUR="$SNAPPATH/cur" +TMP="$SNAPPATH/tmp" SNAPDEST="$SNAPPATH/$CDATE" msg() { @@ -45,7 +45,7 @@ symdel "$PREV" ln -sv "$CDATE" "$TMP" >&2 btrfs subvolume snapshot -r "$SNAPSRC" "$SNAPDEST" >&2 -delta || full +delta || full || return 1 # Mark snapshot transmission as complete [ -L "$CUR" ] && \