[pve-devel] [PATCH pve-container 4/9] add mount_raw_file

Dietmar Maurer dietmar at proxmox.com
Wed Nov 18 11:56:04 CET 2015


Why don't you use PVE::LXC::mountpoint_mount()?


> On November 18, 2015 at 9:30 AM Wolfgang Link <w.link at proxmox.com> wrote:
> 
> 
> this is a function to mount snapshots and images to access the image.
> ---
>  src/PVE/LXC.pm | 66
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 66 insertions(+)
> 
> diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
> index 383a6da..d8bb81f 100644
> --- a/src/PVE/LXC.pm
> +++ b/src/PVE/LXC.pm
> @@ -2240,6 +2240,72 @@ sub mountpoint_mount {
>      die "unsupported storage";
>  }
>  
> +
> +sub mount_raw_file {
> +    my ($scfg, $mountpoint, $snapname, $volid) = @_;
> +




More information about the pve-devel mailing list