linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Clarification behind md 1.0 superblock resync_offset and recovery_offset?
@ 2011-10-06 18:48 Andrei E. Warkentin
  2011-10-06 22:17 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Andrei E. Warkentin @ 2011-10-06 18:48 UTC (permalink / raw)
  To: linux-raid; +Cc: neilb

Hi group,

This is my first time posting on this mailing list. I've tried looking
in the archives, but didn't find what I was looking for. I am trying
to understand how the synchronization code in MD driver works, and I
am unsure about the exact relation between resync_offset
and recovery_offset for the 1.X SB format.

sb->resync_offset sets mddev->recovery_cp, which is the last sector
synchronized/recovered when md_do_sync exits, and isn't
used for recovery if a bitmap is used.

sb->recovery_offset sets rdev->recovery_offset, which seemingly is a
per-member-device recovery_cp, but updated at a finer granularity,
right?

I think my confusion might be stemming from a misunderstandig behind
what RECOVERY and SYNC implies. I thought that RECOVERY
means metadata cleanup, while RESYNC is actual syncing of data to
spares (or re-added previously faulty disks), but then why is there a
recovery offset? Why isn't a resync offset sufficient?

I'd be willing to submit a few documentation patches just to others
have an easier time of reading MD code :-).

Thank you,
-- 
A

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

end of thread, other threads:[~2011-10-06 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 18:48 Clarification behind md 1.0 superblock resync_offset and recovery_offset? Andrei E. Warkentin
2011-10-06 22:17 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).