[Sheepdog] some questions about sheepdog's code?

jidalyg_8711 jidalyg_8711 at 163.com
Mon Mar 7 10:49:19 CET 2011


Hi,Kazutaka

I'm reading the source code of the sheepdog, and have some questions.
1.  sheep/group.c
   
  787     if (m->state == DM_INIT && is_master()) {
  788         switch (m->op) {
  789         case SD_MSG_JOIN:
  790             break;     
  791         case SD_MSG_VDI_OP:
  792             vdi_op((struct vdi_op_message *)m);
  793             break;     
  794         default:
  795             eprintf("unknown message %d\n", m->op);
  796             break;     
  797         }              
  798     }

Why the operation of the vdi must be done by master? When  other nodes do the vdi operations? how about the synchronization ?

2. after delete the vdi ,but the vdi object doesn'g delete ,and the data object delete . why ?


Thanks!

yaronli
   
2011-03-07 



jidalyg_8711 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20110307/8bf1e584/attachment-0002.html>


More information about the sheepdog mailing list