Skip to contentSkip to conversation

Question regarding usermode_helper and lack of {before|after}_resync_source

Drbd-dev Iustin Pop 1 participant 1 message May 10, 2010 DRBD driver

lore
Share & tools
lore

Iustin Pop

author
#0 lore raw

Hi all,

I'm curious if there is a reason why there is before_resync_target but not before_resync_source. Probably the rationale is that noone needed it before :)

Background: the current capabilities to configure resync order or number of resyncs per machine is doable either via manual pause-sync actions, or via the syncer's '--after' parameter. However, in environment where this is dynamic, it's hard to create a static map, and it would be useful to have such a before_resync_source action that the helper can act on - e.g. to pause the minor, to set its sync speed based on current machine status, etc.

So… would it make sense to send a patch adding these two actions (before/after)?

thanks,
iustin