Commit 1a371062 authored by Mike Hibler's avatar Mike Hibler
Browse files

Ensure that we only look at snapshots created by the blockstore code.

This way we can create backup snapshots of all datasets without
causing any problems with the blockstore code.
parent f0e9f821
#!/usr/bin/perl -wT
#
# Copyright (c) 2013-2016 University of Utah and the Flux Group.
# Copyright (c) 2013-2017 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -393,6 +393,9 @@ sub freenasVolumeList($;$)
my $vol = $snap->{'filesystem'};
next if (!$vol);
# XXX only track snapshots we create (10 digit timestamp)
next if ($snap->{'name'} !~ /^\d{10}$/);
# XXX only handle zvols right now
next if ($snap->{'parent_type'} ne 'volume');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment