diff options
author | Petr Rockai <prockai@redhat.com> | 2012-02-23 13:11:07 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2012-02-23 13:11:07 +0000 |
commit | dae0822698327e81f467c3594141d70cdafca331 (patch) | |
tree | 673c87128df8e56be79703a799c83d12acbe5b19 /lib/label/label.c | |
parent | 182d1f60d2fb1bbadef2974fa55278f553b04ed9 (diff) | |
download | lvm2-dae0822698327e81f467c3594141d70cdafca331.tar.gz lvm2-dae0822698327e81f467c3594141d70cdafca331.tar.xz lvm2-dae0822698327e81f467c3594141d70cdafca331.zip |
The lvmetad client-side integration. Only active when use_lvmetad = 1 is set in
lvm.conf *and* lvmetad is running.
Diffstat (limited to 'lib/label/label.c')
-rw-r--r-- | lib/label/label.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index c38ea16e..b1124fc6 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -18,6 +18,7 @@ #include "crc.h" #include "xlate.h" #include "lvmcache.h" +#include "lvmetad.h" #include "metadata.h" #include <sys/stat.h> @@ -263,7 +264,7 @@ int label_read(struct device *dev, struct label **result, if ((info = lvmcache_info_from_pvid(dev->pvid, 1))) { log_debug("Using cached label for %s", dev_name(dev)); - *result = lvmcache_get_label(info); /* leaked */ + *result = lvmcache_get_label(info); return 1; } |