Skip to content

Snapshot: Report a failed snapshot as a failure - #590

Open
dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/389-failed-snapshot-status
Open

dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/389-failed-snapshot-status

Conversation

@dualfroz

Copy link
Copy Markdown

when btrfs subvolume snapshot (or rsync) failed, create_snapshot_for_tags() logged "Failed to create snapshot" but still returned status, which was never set to false. so timeshift --create exited 0 and the gui said the snapshot was created, the only hint was the error in a terminal. it now returns false there, which should make the cli exit 1 and the gui show "With Errors". Fixes #389

create_snapshot_for_tags() logged "Failed to create snapshot" when
the btrfs or rsync step returned no snapshot, but still returned true.
The CLI exited with 0 and the GTK window showed a plain "Snapshot
Created", so a btrfs snapshot refused because of an active swapfile
looked like it went through. Return false in that case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Error not given to user when creating (trying to create) backup when swapfile exists (btrfs)

1 participant