X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=perl%2FAmanda%2FApplication%2FZfs.pm;h=0cbd7a186eb1be6142e89ee99ae01a620b7a5bbe;hb=96f35b20267e8b1a1c846d476f27fcd330e0b018;hp=8c7e7165e80f4dda6cca736aeda7441ea3f79a95;hpb=d74dc4d908fcbc1a4ef474edaf51e61ec90eab6b;p=debian%2Famanda diff --git a/perl/Amanda/Application/Zfs.pm b/perl/Amanda/Application/Zfs.pm index 8c7e716..0cbd7a1 100644 --- a/perl/Amanda/Application/Zfs.pm +++ b/perl/Amanda/Application/Zfs.pm @@ -379,12 +379,12 @@ sub zfs_build_snapshotname { my $snapshotname = ""; if (!defined $level) { - $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($device) . "-current"; + $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($self->{disk}) . "-current"; } else { if ($level < 0) { - $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($device) . "-check"; + $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($self->{disk}) . "-check"; } else { - $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($device) . "-" . $level; + $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($self->{disk}) . "-" . $level; } }