]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC/Config.pm
Always determine the size of the volume in volume_rescan
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 3 Dec 2019 08:31:28 +0000 (09:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Dec 2019 14:22:40 +0000 (15:22 +0100)
commit0c69dcfc40fceb6e8b3bb0b7bf70ead2d71bb549
treef119789138321611079e7facfcf39d73d943da67
parent407c7294b8163e069a5da1df04b045188ed4195e
Always determine the size of the volume in volume_rescan

Otherwise there is an issue when resizing a volume with pending changes:
1. Have a running container with a mount point
2. Edit the mount point and change the path
3. Resize the mount point
4. Reboot the container
Result: the old size is written to the config.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Tested-by: Oguz Bektas <o.bektas@proxmox.com>
src/PVE/LXC/Config.pm