All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] lock for reading device state
@ 2006-12-06 17:22 Cristian Zamfir
  2006-12-07 13:09 ` Lars Ellenberg
  0 siblings, 1 reply; 5+ messages in thread
From: Cristian Zamfir @ 2006-12-06 17:22 UTC (permalink / raw)
  To: drbd-dev



Hi,

I am using drbd to implement xen block device migration.  Right now I am 
parsing /proc/drbd to find out if the drives are synchronized and I can 
migrate them. Is there a way to obtain a lock while reading and 
processing this information and prevent other writes to the primary 
device? I need to be able to prevent writes while reading the state of 
the device from a script external to drbd.

In case there is no existing solution, can you please give me a few tips 
on how to start developing such a locking mechanism?

Thank you very much.


Cristian

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

end of thread, other threads:[~2006-12-07 20:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 17:22 [Drbd-dev] lock for reading device state Cristian Zamfir
2006-12-07 13:09 ` Lars Ellenberg
2006-12-07 13:52   ` Cristian Zamfir
2006-12-07 15:56     ` Lars Ellenberg
2006-12-07 20:25       ` Cristian Zamfir

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.