1. 22 Aug, 2007 2 commits
    • Neil Brown's avatar
      md: fix resync speed calculation for restarted resyncs · 26d0764d
      Neil Brown authored
      We introduced 'io_sectors' recently so we could count the sectors that causes
      io during resync separate from sectors which didn't cause IO - there can be a
      difference if a bitmap is being used to accelerate resync.
      
      However when a speed is reported, we find the number of sectors processed
      recently by subtracting an oldish io_sectors count from a current
      'curr_resync' count.  This is wrong because curr_resync counts all sectors,
      not just io sectors.
      
      So, add a field to mddev to store the curren io_sectors separately from
      curr_resync, and use that in the calculations.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      26d0764d
    • Neil Brown's avatar
      md: Allow re-add to work on array without bitmaps · 32b26819
      Neil Brown authored
      When an array has a bitmap, a device can be removed and re-added and only
      blocks changes since the removal (as recorded in the bitmap) will be resynced.
      
      It should be possible to do a similar thing to arrays without bitmaps.  i.e.
      if a device is removed and re-added and *no* changes have been made in the
      interim, then the add should not require a resync.
      
      This patch allows that option.  This means that when assembling an array one
      device at a time (e.g.  during device discovery) the array can be enabled
      read-only as soon as enough devices are available, but extra devices can still
      be added without causing a resync.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      32b26819
  2. 11 Aug, 2007 9 commits
  3. 25 Jul, 2007 1 commit
  4. 22 Jul, 2007 17 commits
  5. 30 May, 2007 1 commit
  6. 24 May, 2007 1 commit
  7. 22 May, 2007 9 commits