1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00
Jonathan Brassow a2d9b1a7e9 cleanup: Restructure code that handles mirror resyncing
When an LV is to be resynced, the metadata areas are cleared and the
LV is reactivated.  This is true for mirroring and will also be true
for RAID LVs.  We restructure the code in lvchange_resync() so that we
keep all the common steps necessary (validation of ability to resync,
deactivation, activation of meta/log devices, clearing of those devices,
etc) and place the code that will be divergent in separate functions:
	detach_metadata_devices()
	attach_metadata_devices()

The common steps will be processed on lists of metadata devices.  Before
RAID capability is added, this will simply be the mirror log device (if
found).

This patch lays the ground-work for adding resync of RAID LVs.
2012-09-11 13:01:05 -05:00
..
2012-08-25 20:35:48 +01:00
2012-08-09 16:25:52 +02:00
2012-08-23 14:37:38 +02:00
2012-08-25 20:35:48 +01:00
2008-01-30 14:00:02 +00:00
2012-08-25 20:35:48 +01:00
2012-08-27 13:07:07 +02:00
2008-01-30 14:00:02 +00:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-02-28 14:24:57 +00:00
2012-08-23 14:37:21 +02:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2010-07-27 20:05:29 +00:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-02-27 10:06:58 +00:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00