On Thu, 5 Feb 2015, Dennis Chen wrote: > Hello, > > Just as the subject indicated, how can I notify an object watcher > within a class '.so' loaded into osd deamon. I checked the code and > found the below op code defined already:CEPH_OSD_OP_NOTIFY, but this > op code is not used by existing ceph class api, I guest there must be > a simple solution to resolve this if I don't want to make the osd to > play client role the same time. > > Anyone can help me out this? > The watch/notify does not rely on rados classes, e.g.: rados -p rbd create foo rados -p rbd watch foo & rados -p rbd notify foo hello The notify is just a normal librados operation, and most of those can be called from classes, but it normally blocks for some period until the others acknowledge. If it were wired up in objclass.h you could probably initiate the async notify but there would be no way to check whether it ever arrived, so I'm not sure it would be useful. What are you trying to accomplish? sage _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com