From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14295 invoked by alias); 26 Feb 2012 08:50:15 -0000 Received: (qmail 14274 invoked by uid 9699); 26 Feb 2012 08:50:14 -0000 Date: Sun, 26 Feb 2012 08:50:00 -0000 Message-ID: <20120226085014.14272.qmail@sourceware.org> From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/cache lvmetad.h Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00182.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@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 --- LVM2/lib/cache/lvmetad.h 2012/02/23 13:11:08 1.1 +++ LVM2/lib/cache/lvmetad.h 2012/02/26 08:50:13 1.2 @@ -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