All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] Add interface to support adding and removing metadata areas on demand
@ 2010-11-18 21:32 Peter Rajnoha
  2010-11-18 21:32 ` [PATCH 01/11] Add mda_slots field for PV info in the cache Peter Rajnoha
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Peter Rajnoha @ 2010-11-18 21:32 UTC (permalink / raw)
  To: lvm-devel

This patchset provides a possibility to add new metadata areas on demand
as well as removing them. Now, we can add a new metadata area independently
of the PV initialisation so if there's a place we can even add metadata area
additionally. The same applies for metadata removal functionality. This is
only internal interface for now, but we should be able to provide external
hooks in lvm2 commands if desired.

The patchset also tries to cleanup existing pv_setup/pv_write code. It also
uses the new interface to allow resizing a PV with more copies of metadata
areas on disk which was not allowed before because of missing metadata
handling part in the interface.

(This patchset should be applicable to 4f2136c6545532afe149657f923fb982d2660415.
There's still one thing that is failing which I need to inspect - it's lvm1
format handling and failing t-pv-create-usage.sh: "PV segment pe_count mismatch: 33 != 32".
But anyway, here it is... I'll provide an update if I find anything.)

Peter Rajnoha (11):
  Add mda_slots field for PV info in the cache.
  Add pe_start_locked flag in struct physical_volume to retain
    pe_start.
  Add pv_add_metadata_area to format_handler interface.
  Add pv_remove_metadata_area to format_handler interface.
  Add pv_initialise to format_handler interface.
  Refactor pv_setup to not include the initialisation only code.
  Remove unused _mda_setup.
  Cleanup pv_write to use recent changes in metadata handling
    interface.
  Remove useless mdas parameter in code creating new PVs.
  Make existing lvmcache_update_pvid public.
  Use new metadata interface to provide better support for PV resize.

 lib/cache/lvmcache.c             |   18 +-
 lib/cache/lvmcache.h             |    3 +
 lib/format1/disk-rep.c           |    7 +
 lib/format1/disk-rep.h           |    1 +
 lib/format1/format1.c            |   64 ++-
 lib/format1/format1.h            |    1 +
 lib/format1/lvm1-label.c         |    5 +
 lib/format_pool/disk_rep.c       |    4 +
 lib/format_pool/disk_rep.h       |    1 +
 lib/format_pool/format_pool.c    |   22 +-
 lib/format_pool/format_pool.h    |    1 +
 lib/format_text/archiver.c       |    5 +-
 lib/format_text/format-text.c    |  912 ++++++++++++++++++++++----------------
 lib/format_text/format-text.h    |   11 +-
 lib/format_text/text_label.c     |   26 +-
 lib/metadata/metadata-exported.h |   12 +-
 lib/metadata/metadata.c          |   80 ++--
 lib/metadata/metadata.h          |   49 ++-
 lib/metadata/pv.h                |    1 +
 lib/metadata/pv_manip.c          |   70 +++-
 tools/pvchange.c                 |   10 +-
 tools/pvresize.c                 |   57 +---
 tools/vgconvert.c                |   12 +-
 tools/vgreduce.c                 |    2 +-
 24 files changed, 803 insertions(+), 571 deletions(-)

-- 
1.7.3.2



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-11-25 13:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 21:32 [PATCH 00/11] Add interface to support adding and removing metadata areas on demand Peter Rajnoha
2010-11-18 21:32 ` [PATCH 01/11] Add mda_slots field for PV info in the cache Peter Rajnoha
2010-11-25 13:15   ` Zdenek Kabelac
2010-11-25 13:39     ` Peter Rajnoha
2010-11-25 13:45       ` Peter Rajnoha
2010-11-18 21:32 ` [PATCH 02/11] Add pe_start_locked flag in struct physical_volume to retain pe_start Peter Rajnoha
2010-11-18 21:32 ` [PATCH 03/11] Add pv_add_metadata_area to format_handler interface Peter Rajnoha
2010-11-18 21:32 ` [PATCH 04/11] Add pv_remove_metadata_area " Peter Rajnoha
2010-11-25 13:21   ` Zdenek Kabelac
2010-11-18 21:32 ` [PATCH 05/11] Add pv_initialise " Peter Rajnoha
2010-11-25 13:28   ` Zdenek Kabelac
2010-11-18 21:32 ` [PATCH 06/11] Refactor pv_setup to not include the initialisation only code Peter Rajnoha
2010-11-18 21:32 ` [PATCH 07/11] Remove unused _mda_setup Peter Rajnoha
2010-11-18 21:32 ` [PATCH 08/11] Cleanup pv_write to use recent changes in metadata handling interface Peter Rajnoha
2010-11-18 21:32 ` [PATCH 09/11] Remove useless mdas parameter in code creating new PVs Peter Rajnoha
2010-11-18 21:32 ` [PATCH 10/11] Make existing lvmcache_update_pvid public Peter Rajnoha
2010-11-18 21:32 ` [PATCH 11/11] Use new metadata interface to provide better support for PV resize Peter Rajnoha

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.