[packages/amanda] - fix case when device passed to amlvm-snapshot is in the form /dev/VG/LV - rel 2

baggins baggins at pld-linux.org
Fri Dec 6 19:38:07 CET 2013


commit 62014f87c525c9517a2441ad84eb24f77bbb746d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Dec 6 19:37:18 2013 +0100

    - fix case when device passed to amlvm-snapshot is in the form /dev/VG/LV
    - rel 2

 amanda.spec       | 2 +-
 amlvm-snapshot.pl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/amanda.spec b/amanda.spec
index 8ce0ebc..2d3ad6a 100644
--- a/amanda.spec
+++ b/amanda.spec
@@ -10,7 +10,7 @@ Summary:	A network-capable tape backup solution
 Summary(pl.UTF-8):	Sieciowo zorientowany system tworzenia kopii zapasowych
 Name:		amanda
 Version:	3.3.4
-Release:	1
+Release:	2
 License:	BSD
 Group:		Networking/Utilities
 Source0:	http://downloads.sourceforge.net/amanda/%{name}-%{version}.tar.gz
diff --git a/amlvm-snapshot.pl b/amlvm-snapshot.pl
index afca14f..4034455 100644
--- a/amlvm-snapshot.pl
+++ b/amlvm-snapshot.pl
@@ -281,7 +281,7 @@ sub resolve_device {
         my $real_device = $self->readlink($device);
         chomp($real_device);
 
-        if ($real_device eq $mnt_device) {
+        if (($device eq $mnt_device) || ($real_device eq $mnt_device)) {
             $self->{device} = $device;
             $self->{volume_group} = $group;
             $self->{fs_type} = $fs_type;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/amanda.git/commitdiff/62014f87c525c9517a2441ad84eb24f77bbb746d



More information about the pld-cvs-commit mailing list