From: wysochanski@sourceware.org <wysochanski@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW lib/display/display.c lib/met ...
Date: 26 Mar 2008 16:48:13 -0000 [thread overview]
Message-ID: <20080326164813.23513.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-03-26 16:48:10
Modified files:
. : WHATS_NEW
lib/display : display.c
lib/metadata : metadata-exported.h metadata.c pv_manip.c
Log message:
Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.808&r2=1.809
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/display/display.c.diff?cvsroot=lvm2&r1=1.86&r2=1.87
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata-exported.h.diff?cvsroot=lvm2&r1=1.45&r2=1.46
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.c.diff?cvsroot=lvm2&r1=1.160&r2=1.161
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/pv_manip.c.diff?cvsroot=lvm2&r1=1.20&r2=1.21
--- LVM2/WHATS_NEW 2008/03/26 16:20:54 1.808
+++ LVM2/WHATS_NEW 2008/03/26 16:48:09 1.809
@@ -1,5 +1,6 @@
Version 2.02.34 -
===================================
+ Add pvseg_is_allocated() for identifying a PV segment allocated to a LV.
Add list_move() for moving elements from one list to another.
Add 'is_reserved_lvname()' for identifying hidden LVs.
Correct command name in lvmdiskscan man page.
--- LVM2/lib/display/display.c 2008/02/06 15:47:27 1.86
+++ LVM2/lib/display/display.c 2008/03/26 16:48:10 1.87
@@ -270,7 +270,7 @@
log_print("Physical extent %u to %u:",
pvseg->pe, pvseg->pe + pvseg->len - 1);
- if (pvseg->lvseg) {
+ if (pvseg_is_allocated(pvseg)) {
log_print(" Logical volume\t%s%s/%s",
pvseg->lvseg->lv->vg->cmd->dev_dir,
pvseg->lvseg->lv->vg->name,
--- LVM2/lib/metadata/metadata-exported.h 2008/03/13 22:51:24 1.45
+++ LVM2/lib/metadata/metadata-exported.h 2008/03/26 16:48:10 1.46
@@ -151,6 +151,8 @@
uint32_t lv_area; /* Index to area in LV segment */
};
+#define pvseg_is_allocated(pvseg) ((pvseg)->lvseg)
+
struct physical_volume {
struct id id;
struct device *dev;
--- LVM2/lib/metadata/metadata.c 2008/03/17 16:51:31 1.160
+++ LVM2/lib/metadata/metadata.c 2008/03/26 16:48:10 1.161
@@ -612,7 +612,7 @@
/* foreach free PV Segment */
list_iterate_items(pvseg, &pv->segments) {
- if (pvseg->lvseg)
+ if (pvseg_is_allocated(pvseg))
continue;
if (!_recalc_extents(&pvseg->pe, pv_dev_name(pv),
--- LVM2/lib/metadata/pv_manip.c 2008/01/30 14:00:00 1.20
+++ LVM2/lib/metadata/pv_manip.c 2008/03/26 16:48:10 1.21
@@ -233,7 +233,7 @@
list_iterate_items(pvl, pvh) {
list_iterate_items(per, pvl->pe_ranges) {
list_iterate_items(pvseg, &pvl->pv->segments) {
- if (!pvseg->lvseg) /* free space */
+ if (!pvseg_is_allocated(pvseg))
extents += _overlap_pe(pvseg, per);
}
}
reply other threads:[~2008-03-26 16:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080326164813.23513.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.