I wanted to study the order in which translators are called in the gluster system after a command in given on the cli. I inserted printf statements in each .c file of the translators but these lines are not getting printed on running the system (aftr make and make install). Need help!! _______________________________________________ Gluster-devel mailing list Gluster-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org https://lists.nongnu.org/mailman/listinfo/gluster-devel
Justin Clift
2013-Jul-17 12:14 UTC
[Gluster-users] [Gluster-devel] Problem in understanding translators
On 17/07/2013, at 11:23 AM, Runjhun Sharma wrote:> I wanted to study the order in which translators are called in the gluster system after a command in given on the cli. I inserted printf statements in each .c file of the translators but these lines are not getting printed on running the system (aftr make and make install). Need help!!How are you running the translator? :) When trying out translator development stuff not long ago, the best way to catch printf() statements is by starting the gluster process you are interested in (eg glusterfs) from the command line, using the --debug flag. For example: $ sudo glusterfs -f /path/to/my-nfs-server.vol --debug The "my-nfs-server.vol" file there was just a copy of the normal Gluster NFS .vol file, with my (in-development) new translator added to. Does that help? :) Regards and best wishes, Justin Clift -- Open Source and Standards @ Red Hat twitter.com/realjustinclift