<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div style=""><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Pranith Kumar Karampuri" &lt;pkarampu@redhat.com&gt;<br><b>To: </b>"Vikhyat Umrao" &lt;vumrao@redhat.com&gt;<br><b>Cc: </b>"Niels de Vos" &lt;ndevos@redhat.com&gt;, gluster-devel@gluster.org<br><b>Sent: </b>Wednesday, May 28, 2014 9:12:23 PM<br><b>Subject: </b>Re: [Gluster-devel] [wireshark] TODO features<br><div><br></div><br><div><br></div>----- Original Message -----<br>&gt; From: "Vikhyat Umrao" &lt;vumrao@redhat.com&gt;<br>&gt; To: "Niels de Vos" &lt;ndevos@redhat.com&gt;<br>&gt; Cc: gluster-devel@gluster.org<br>&gt; Sent: Wednesday, May 28, 2014 3:37:47 PM<br>&gt; Subject: Re: [Gluster-devel] [wireshark] TODO features<br>&gt; <br>&gt; Hi Niels,<br>&gt; <br>&gt; Thanks for all your inputs and help, I have submitted a patch:<br>&gt; <br>&gt; <br>&gt; https://code.wireshark.org/review/1833<br><div><br></div>&gt;I have absolutely no idea how this is supposed to work, but just wanted to ask what will the 'name' variable be if the file name is '&lt;EMPTY&gt;' i.e. RPC_STRING_EMPTY<br><div><br></div><div>Thanks&nbsp; Pranith for brining it in , it is good catch.<br></div><div><br></div><div>With this&nbsp; new patch it will solve this :<br></div><div><a href="http://ur1.ca/hegl3" data-mce-href="http://ur1.ca/hegl3">http://ur1.ca/hegl3</a> <br></div><div><br></div><div>Thanks Niels for your inputs.<br></div></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">Regards,<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">Vikhyat<br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br></div><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">&gt;Pranith<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; glusterfs: show filenames in the summary for common procedures<br>&gt; <br>&gt; With this patch we will have filename on the summary for procedures MKDIR,<br>&gt; CREATE and LOOKUP.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Example output:<br>&gt; <br>&gt; 173 18.309307 192.168.100.3 -&gt; 192.168.100.4 GlusterFS 224 MKDIR V330 MKDIR<br>&gt; Call, Filename: testdir<br>&gt; 2606 36.767766 192.168.100.3 -&gt; 192.168.100.4 GlusterFS 376 LOOKUP V330<br>&gt; LOOKUP Call, Filename: 1.txt<br>&gt; 2612 36.768242 192.168.100.3 -&gt; 192.168.100.4 GlusterFS 228 CREATE V330<br>&gt; CREATE Call, Filename: 1.txt<br><div><br></div>That looks good :-)<br><div><br></div>Pranith<br>&gt; <br>&gt; Thanks,<br>&gt; Vikhyat<br>&gt; <br>&gt; <br>&gt; From: "Niels de Vos" &lt;ndevos@redhat.com&gt;<br>&gt; To: "Vikhyat Umrao" &lt;vumrao@redhat.com&gt;<br>&gt; Cc: gluster-devel@gluster.org<br>&gt; Sent: Tuesday, April 29, 2014 11:16:20 PM<br>&gt; Subject: Re: [Gluster-devel] [wireshark] TODO features<br>&gt; <br>&gt; On Tue, Apr 29, 2014 at 06:25:15AM -0400, Vikhyat Umrao wrote:<br>&gt; &gt; Hi,<br>&gt; &gt; <br>&gt; &gt; I am interested in TODO wireshark features for GlusterFS :<br>&gt; &gt; I can start from below given feature for one procedure:<br>&gt; &gt; =&gt; display the filename or filehandle on the summary for common procedures<br>&gt; <br>&gt; Things to get you and others prepared:<br>&gt; <br>&gt; 1. go to https://forge.gluster.org/wireshark/pages/Todo<br>&gt; 2. login and edit the wiki page, add your name to the topic<br>&gt; 3. clone the wireshark repository:<br>&gt; $ git clone git@forge.gluster.org:wireshark/wireshark.git<br>&gt; (you have been added to the 'wireshark' group, so you should have<br>&gt; push access over ssh)<br>&gt; 4. create a new branch for your testing<br>&gt; $ git checkout -t -b wip/master/visible-filenames upstream/master<br>&gt; 5. make sure you have all the dependencies for compiling Wireshark<br>&gt; (quite a lot are needed)<br>&gt; $ ./autogen.sh<br>&gt; $ ./configure --disable-wireshark<br>&gt; (I tend to build only the commandline tools like 'tshark')<br>&gt; $ make<br>&gt; 6. you should now have a ./tshark executable that you can use for<br>&gt; testing<br>&gt; <br>&gt; <br>&gt; The changes you want to make are in epan/dissectors/packet-glusterfs.c.<br>&gt; For example, start with adding the name of the file/dir that is passed<br>&gt; to LOOKUP. The work to dissect the data in the network packet is done in<br>&gt; glusterfs_gfs3_3_op_lookup_call(). It does not really matter on how that<br>&gt; function gets executed, that is more a thing for an other task (add<br>&gt; support for new procedures).<br>&gt; <br>&gt; In the NFS-dissector, you can see how this is done. Check the<br>&gt; implementation of the dissect_nfs3_lookup_call() function in<br>&gt; epan/dissectors/packet-nfs.c. The col_append_fstr() function achieves<br>&gt; what you want to do.<br>&gt; <br>&gt; Of course, you really should share your changes! Now, 'git commit' your<br>&gt; change with a suitable commit message and do<br>&gt; <br>&gt; $ git push origin wip/master/visible-filenames<br>&gt; <br>&gt; Your branch should now be visible under<br>&gt; https://forge.gluster.org/wireshark/wireshark. Let me know, and I'll<br>&gt; give it a whirl.<br>&gt; <br>&gt; Now you've done the filename for LOOKUP, I'm sure you can think of other<br>&gt; things that make sense to get displayed.<br>&gt; <br>&gt; Do ask questions and send corrections if something is missing, or not<br>&gt; working as explained here. This email should probably get included in<br>&gt; the projects wiki https://forge.gluster.org/wireshark/pages/Home some<br>&gt; where.<br>&gt; <br>&gt; Good luck,<br>&gt; Niels<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Gluster-devel mailing list<br>&gt; Gluster-devel@gluster.org<br>&gt; http://supercolony.gluster.org/mailman/listinfo/gluster-devel<br>&gt; <br></div><div><br></div></div></body></html>