allow container rootdir on NFS
This commit is contained in:
@ -181,7 +181,7 @@ my $default_config = {
|
||||
server => 1,
|
||||
export => 1,
|
||||
options => 0,
|
||||
content => [ { images => 1, iso => 1, backup => 1},
|
||||
content => [ { images => 1, rootdir => 1, iso => 1, backup => 1},
|
||||
{ images => 1 }],
|
||||
format => [ { raw => 1, qcow2 => 1, vmdk => 1 } , 'raw' ],
|
||||
},
|
||||
@ -726,6 +726,13 @@ sub get_image_dir {
|
||||
return $vmid ? "$path/images/$vmid" : "$path/images";
|
||||
}
|
||||
|
||||
sub get_private_dir {
|
||||
my ($cfg, $storeid, $vmid) = @_;
|
||||
|
||||
my $path = $cfg->{ids}->{$storeid}->{path};
|
||||
return $vmid ? "$path/private/$vmid" : "$path/private";
|
||||
}
|
||||
|
||||
sub get_iso_dir {
|
||||
my ($cfg, $storeid) = @_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user