]> sourceware.org Git - lvm2.git/commit
thin: fix link validation for unused thin-pool
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 30 Jun 2016 13:54:27 +0000 (15:54 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 30 Jun 2016 22:44:46 +0000 (00:44 +0200)
commit458918b31953943a3cc44976388f008ca850c124
treee0e91c7462dbda50cdceb59c61b003246f9e6684
parent2f638e07e814617152d617a2ca7c8acdae41968a
thin: fix link validation for unused thin-pool

This patch fixes link validation for used thin-pool.
Udev rules correctly creates symlinks only for unused new thin-pool.
Such thin-pool can be used by foreing apps (like Docker) thus
has  /dev/vg/lv link.
However when thin-pool becomes used by thinLV - this link is no
longer exposed to user - but internal verfication missed this
and caused messages like this to be printed upon 'vgchange -ay':

The link /dev/vg/pool should have been created by udev but it was not
found. Falling back to direct link creation.

And same with 'vgchange -an':
The link /dev/vg/pool should have been removed by udev but it is still
present. Falling back to direct link removal.

This patch ensures only unused thin-pool has this link.
WHATS_NEW
lib/activate/dev_manager.c
test/shell/thin-overprovisioning.sh
This page took 0.044571 seconds and 5 git commands to generate.