From: Ralf Ertzinger Date: Wed, 12 Feb 2014 13:53:05 +0000 (+0100) Subject: Fix recursive snapshot detection by removing all children of to-be-snapshotted leafs... X-Git-Tag: 0.2.98.python3.1~39 X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=time-slider.git;a=commitdiff_plain;h=7763228f6062a102bc6b5bc34eccfa99e1b1673d Fix recursive snapshot detection by removing all children of to-be-snapshotted leafs from the recursive list --- diff --git a/usr/share/time-slider/lib/time_slider/zfs.py b/usr/share/time-slider/lib/time_slider/zfs.py index b35e58d..affab9b 100755 --- a/usr/share/time-slider/lib/time_slider/zfs.py +++ b/usr/share/time-slider/lib/time_slider/zfs.py @@ -132,6 +132,9 @@ class Datasets(Exception): if excludedchild == False: # We want recursive list sorted in alphabetical order # so insert instead of append to the list. + # Also, remove all children from the recursive + # list, as they are covered by the parent + recursive = [x for x in recursive if x not in children] recursive.insert(0, datasetname) for datasetname in recursive: