]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC.pm
Fix #918: add /dev/mapper symlinks for dm-* devices
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 18 Mar 2016 09:11:10 +0000 (10:11 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Mar 2016 15:34:00 +0000 (16:34 +0100)
commitada088e6279ddb5471d27afcd760d99743f16aaa
treec86da97e8a58041906675ecd10ddbf763e782592
parentc019c56af58d74f20c9a0674ec3a858d352d3b9a
Fix #918: add /dev/mapper symlinks for dm-* devices

Mount canonicalizes paths unless the -c option is used. This
is mostly fine but for device-mapper nodes (/dev/dm-*) it'll
fetch the /dev/mapper/* path and pass that to the mount
system call resulting in /proc/mounts showing the
/dev/mapper path. This is neither the one we provided (since
we use /dev/$vg/$lv), nor the one userspace tools will find
in /dev currently.
Since the dm-* paths are rather inconvenient to look at we
decided to keep mount's behavior and compensate by providing
the /dev/mapper symlinks for devices via the autodev hook.
src/PVE/LXC.pm
src/lxc-pve-autodev-hook