• NeilBrown's avatar
    md: factor out updating of 'recovery_offset'. · 5e865106
    NeilBrown authored
    Each device has its own 'recovery_offset' showing how far
    recovery has progressed on the device.
    As the only real significance of this is that fact that it can
    be stored in the metadata and recovered at restart, and as
    only 1.x metadata can do this, we were only updating
    'recovery_offset' to 'curr_resync_completed' when updating
    v1.x metadata.
    But this is wrong, and we will shortly make limited use of this
    field in v0.90 metadata.
    
    So move the update into common code.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    5e865106
md.c 179 KB