Skip to contentSkip to conversation

LVM2/lib/cache lvmetad.h

PATCH [email protected] 1 participant 1 message Feb 26, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2012-02-26 08:50:14

Modified files:
lib/cache : lvmetad.h

Log message:
A bit of documentation for lvmetad_vg_lookup.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmetad.h.diff?cvsroot=lvm2&r1=1.1&r2=1.2

lib/cache/lvmetad.h +6 -1
@@ -87,7 +87,12 @@
  */
 int lvmetad_vg_list_to_lvmcache(struct cmd_context *cmd);
 
-struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd, const char *vgname, const char *vgid);
+/*
+ * Find a VG by its ID or its name in the lvmetad cache. Gives NULL if the VG is
+ * not found.
+ */
+struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd,
+				       const char *vgname, const char *vgid);
 
 /*
  * Scan a single device and update lvmetad with the result(s). If the device