[pve-devel] [PATCH 8/8] add setup_blockdev_mounts to pve-mount hook

Dietmar Maurer dietmar at proxmox.com
Sat Aug 15 20:18:20 CEST 2015


> But I need to find the /dev/... device to expose the device to guest and mount
> the share
> So in this case, I need to read storage.cfg, to parse the volid, and find the
> correct device.
> 
> But I don't known why,if I read storage.cfg from lxc-pve-mount-hook
> 
>

Take a look at how I read the pct config:

https://git.proxmox.com/?p=pve-container.git;a=blob;f=src/lxc-pve-mount-hook;h=f5f08679b7cd1739feee5b627923fc0c58d0188c;hb=HEAD#l72

Note: PVE::INotify::nodename() returns wrong value when run inside container
mount hook.

Maybe there is a similar permission/env problem with the storage config?




More information about the pve-devel mailing list