Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 56df6aeb16f0196736ea2463589972cc > files > 45

perl-Sys-Virt-5.2.0-1.mga7.armv7hl.rpm

# -*- perl -*-
use strict;
use warnings;
use Sys::Virt;

die "syntax: $0 URI DOMAIN-NAME MOUNT-POINTS\n" unless int(@ARGV) >= 2;

my $uri = shift @ARGV;
my $domname = shift @ARGV;

my @mountpoints = @ARGV;

print "Addr $uri\n";
my $con = Sys::Virt->new(address => $uri, readonly => 0);

my $dom = $con->get_domain_by_name($domname);

$dom->fs_freeze(\@mountpoints);