]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: Add metadata update type for general migration check-pointing
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 8 Jun 2011 07:12:39 +0000 (17:12 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 8 Jun 2011 07:12:39 +0000 (17:12 +1000)
There are 2 places for keeping checkpoint information:
- metadata (per volume information used during volume
  initialization and rebuilding).
- migration record (per container information used during
  migration/reshape)

During reshape both checkpoints has to contains the same information.
To do this mdadm will send metadta update with checkpoint information.

Note: Checkpoint information consistence is not critical. During general
      migration restart, information from migration record is used only.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 7654a11721f14d71f7b98707daefdf466a2dd4fd..73c6f32b551cf1d4e9d2dc723f8beac3d8772128 100644 (file)
@@ -345,7 +345,8 @@ enum imsm_update_type {
        update_add_remove_disk,
        update_reshape_container_disks,
        update_reshape_migration,
-       update_takeover
+       update_takeover,
+       update_general_migration_checkpoint,
 };
 
 struct imsm_update_activate_spare {
@@ -398,6 +399,11 @@ struct imsm_update_reshape_migration {
        int new_disks[1]; /* new_raid_disks - old_raid_disks makedev number */
 };
 
+struct imsm_update_general_migration_checkpoint {
+       enum imsm_update_type type;
+       __u32 curr_migr_unit;
+};
+
 struct disk_info {
        __u8 serial[MAX_RAID_SERIAL_LEN];
 };