public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/metadata/lv_manip.c lib/m ... Date: Fri, 18 Jan 2008 22:01:00 -0000 [thread overview] Message-ID: <20080118220051.24058.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2008-01-18 22:00:51 Modified files: . : WHATS_NEW lib/metadata : lv_manip.c mirror.c Log message: add lvconvert messages Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.768&r2=1.769 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.145&r2=1.146 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/mirror.c.diff?cvsroot=lvm2&r1=1.63&r2=1.64 --- LVM2/WHATS_NEW 2008/01/18 21:56:39 1.768 +++ LVM2/WHATS_NEW 2008/01/18 22:00:46 1.769 @@ -1,5 +1,6 @@ Version 2.02.31 - =================================== + Add very_verbose lvconvert messages. Avoid error message when using default setting of lvcreate -M1. (2.02.30) Version 2.02.30 - 17th January 2008 --- LVM2/lib/metadata/lv_manip.c 2008/01/17 17:17:09 1.145 +++ LVM2/lib/metadata/lv_manip.c 2008/01/18 22:00:46 1.146 @@ -43,6 +43,9 @@ } } + log_very_verbose("Adding %s:%" PRIu32 " as an user of %s", + seg->lv->name, seg->le, lv->name); + if (!(sl = dm_pool_zalloc(lv->vg->cmd->mem, sizeof(*sl)))) { log_error("Failed to allocate segment list"); return 0; @@ -65,8 +68,12 @@ continue; if (sl->count > 1) sl->count--; - else + else { + log_very_verbose("%s:%" PRIu32 " is no longer a user " + "of %s", seg->lv->name, seg->le, + lv->name); list_del(&sl->list); + } return 1; } @@ -255,6 +262,11 @@ } if (area_reduction == seg->area_len) { + log_very_verbose("Remove %s:%" PRIu32 "[%" PRIu32 "] from " + "the top of LV %s:%" PRIu32, + seg->lv->name, seg->le, s, + seg_lv(seg, s)->name, seg_le(seg, s)); + remove_seg_from_segs_using_this_lv(seg_lv(seg, s), seg); seg_lv(seg, s) = NULL; seg_le(seg, s) = 0; @@ -332,6 +344,9 @@ struct logical_volume *lv, uint32_t le, uint32_t flags) { + log_very_verbose("Stack %s:%" PRIu32 "[%" PRIu32 "] on LV %s:%" PRIu32, + seg->lv->name, seg->le, area_num, lv->name, le); + seg->areas[area_num].type = AREA_LV; seg_lv(seg, area_num) = lv; seg_le(seg, area_num) = le; @@ -2177,6 +2192,9 @@ int lv_changed = 0; struct lv_list *lvl; + log_very_verbose("Removing layer %s for segments of %s", + layer_lv->name, lv->name); + /* Find all segments that point at the temporary mirror */ list_iterate_items(seg, &lv->segments) { for (s = 0; s < seg->area_count; s++) { @@ -2313,6 +2331,8 @@ struct lv_segment *parent_seg; struct segment_type *segtype; + log_very_verbose("Removing layer %s for %s", layer_lv->name, lv->name); + if (!(parent_seg = get_only_segment_using_this_lv(layer_lv))) { log_error("Failed to find layer %s in %s", layer_lv->name, lv->name); @@ -2569,6 +2589,10 @@ int lv_used = 0; uint32_t s; + log_very_verbose("Inserting layer %s for segments of %s on %s", + layer_lv->name, lv_where->name, + pvl ? pv_dev_name(pvl->pv) : "any"); + if (!_align_segment_boundary_to_pe_range(lv_where, pvl)) return_0; --- LVM2/lib/metadata/mirror.c 2008/01/17 17:17:09 1.63 +++ LVM2/lib/metadata/mirror.c 2008/01/18 22:00:46 1.64 @@ -516,6 +516,8 @@ return 0; } } else if (new_area_count == 0) { + log_very_verbose("All mimages of %s are gone", lv->name); + /* All mirror images are gone. * It can happen for vgreduce --removemissing. */ _remove_mirror_log(mirrored_seg); @@ -586,6 +588,9 @@ if (removed) *removed = old_area_count - new_area_count; + log_very_verbose("%" PRIu32 " image(s) removed from %s", + old_area_count - num_removed, lv->name); + return 1; }
next reply other threads:[~2008-01-18 22:01 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-01-18 22:01 agk [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-02-23 17:36 jbrassow 2012-02-23 3:57 jbrassow 2012-02-15 15:18 zkabelac 2012-02-08 13:05 zkabelac 2012-02-01 2:10 agk 2011-10-22 16:42 zkabelac 2011-09-06 18:49 agk 2011-08-18 19:41 jbrassow 2011-08-11 3:29 jbrassow 2011-06-23 14:01 jbrassow 2011-04-09 19:05 zkabelac 2011-01-24 14:19 agk 2011-01-11 17:05 jbrassow 2010-10-14 20:03 jbrassow 2010-04-23 19:27 snitzer 2010-04-09 1:00 agk 2010-03-25 21:19 agk 2010-03-25 2:31 agk 2010-01-08 22:32 jbrassow 2009-05-13 21:29 mbroz 2009-05-13 21:28 mbroz 2009-04-21 14:32 mbroz 2009-04-07 10:20 mbroz 2008-03-28 19:08 wysochanski 2008-01-26 0:25 agk 2007-12-20 18:55 agk 2007-08-28 16:14 wysochanski 2007-08-03 21:22 wysochanski 2006-12-13 3:40 agk 2006-10-23 15:54 agk 2006-10-08 12:01 agk 2006-09-11 21:14 agk 2005-11-10 14:45 agk 2005-10-18 13:43 agk 2004-05-05 18:49 agk
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=20080118220051.24058.qmail@sourceware.org \ --to=agk@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).