mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-29 21:47:19 +03:00
sheepdog: sub path: add snapname argument
needed for qemu-img convert from src snapshot Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
207ea85267
commit
24cec3aa77
@ -131,13 +131,14 @@ sub parse_volname {
|
||||
}
|
||||
|
||||
sub path {
|
||||
my ($class, $scfg, $volname, $storeid) = @_;
|
||||
my ($class, $scfg, $volname, $storeid, $snapname) = @_;
|
||||
|
||||
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
|
||||
|
||||
my $portal = $scfg->{portal};
|
||||
my ($server, $port) = split(':', $portal);
|
||||
$port = 7000 if !$port;
|
||||
$name .= ':'.$snapname if $snapname;
|
||||
|
||||
my $path = "sheepdog:$server:$port:$name";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user