From: wysochanski@sourceware.org <wysochanski@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/liblvm lvm.h
Date: 23 Jul 2009 23:37:25 -0000 [thread overview]
Message-ID: <20090723233725.19985.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2009-07-23 23:37:24
Modified files:
liblvm : lvm.h
Log message:
Add list structure definitions for liblvm objects.
- pv_t, vg_t, lv_t
- include libdevmapper.h: needed for struct dm_list
These list structures will be needed in later APIs to return a list of
handles to one object, given another object. For example, lvm_vg_list_lvs()
will return a list of LV handles (lv_t's) given a VG handle (vg_t). We
need a structure to do this so we define the LV structure, as well as the
other structures at this point.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm.h.diff?cvsroot=lvm2&r1=1.7&r2=1.8
--- LVM2/liblvm/lvm.h 2009/07/23 23:36:20 1.7
+++ LVM2/liblvm/lvm.h 2009/07/23 23:37:24 1.8
@@ -15,6 +15,7 @@
#define _LIB_LVM_H
#include "lvm-version.h"
+#include "libdevmapper.h"
#include <stdint.h>
@@ -28,6 +29,22 @@
typedef struct physical_volume pv_t;
typedef struct logical_volume lv_t;
+typedef struct lvm_vg_list {
+ struct dm_list list;
+ vg_t *vg;
+} vg_list_t;
+
+typedef struct lvm_pv_list {
+ struct dm_list list;
+ pv_t *pv;
+} pv_list_t;
+
+typedef struct lvm_lv_list {
+ struct dm_list list;
+ lv_t *lv;
+} lv_list_t;
+
+
struct lvm; /* internal data */
/**
next reply other threads:[~2009-07-23 23:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 23:37 wysochanski [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-07-28 15:34 LVM2/liblvm lvm.h wysochanski
2009-07-28 12:19 wysochanski
2009-07-28 0:36 wysochanski
2009-07-27 21:13 wysochanski
2009-07-27 8:28 wysochanski
2009-07-26 16:49 wysochanski
2009-07-26 16:35 wysochanski
2009-07-26 16:11 wysochanski
2009-07-23 23:36 wysochanski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090723233725.19985.qmail@sourceware.org \
--to=wysochanski@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.