From 8ce4f5e49785ba875d8722a60ffab185a3425fcb Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 17 Jun 2012 21:14:05 +0200 Subject: [PATCH] Creation des snapshots LVM en lecture seule --- virt-backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-backup b/virt-backup index ac46883..066a366 100644 --- a/virt-backup +++ b/virt-backup @@ -4,7 +4,7 @@ # Daniel Berteaud # # COPYRIGHT -# Copyright (C) 2009-2011 Daniel Berteaud +# Copyright (C) 2009-2012 Daniel Berteaud # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -605,7 +605,7 @@ sub create_snapshot{ my $ret = 0; print "Running: $opts{lvcreate} -p r -s -n " . $blk . $suffix . " -L $opts{snapsize} $blk > /dev/null 2>&1\n" if $opts{debug}; - if ( system("$opts{lvcreate} -s -n " . $blk . $suffix . + if ( system("$opts{lvcreate} -p r -s -n " . $blk . $suffix . " -L $opts{snapsize} $blk > /dev/null 2>&1") == 0 ) { $ret = 1; open SNAPLIST, ">>$backupdir.meta/snapshots" or die "Error, couldn't open snapshot list file\n";