git://git.camperquake.de
/
time-slider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix recursive snapshot detection by removing all children of to-be-snapshotted leafs...
[time-slider.git]
/
usr
/
share
/
time-slider
/
lib
/
time_slider
/
zfs.py
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
(executable)
--- 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.
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:
recursive.insert(0, datasetname)
for datasetname in recursive: