<div dir="ltr">you can:<div><br></div><div>curr_offset = glfs_lseek (glfd, 0, SEEK_CUR)</div><div><br></div><div>Avati</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 10:26 AM, Brad Childs <span dir="ltr">&lt;<a href="mailto:bdc@redhat.com" target="_blank">bdc@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list,<br>
<br>
I&#39;m trying to find the current offset of an open file through libgfapi.  I have the glfs_fd_t of the file, i&#39;ve done some reading and want to know the current location.<br>
<br>
Can I achieve this without manually keeping track after every read or seek?<br>
<br>
-bc<br>
<br>
<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br></div>