[Gluster-devel] How to find the current offset in an open file through libgfapi

Anand Avati avati at gluster.org
Wed Nov 20 18:31:29 UTC 2013

you can:

curr_offset = glfs_lseek (glfd, 0, SEEK_CUR)


On Wed, Nov 20, 2013 at 10:26 AM, Brad Childs <bdc at redhat.com> wrote:

> Hello list,
> I'm trying to find the current offset of an open file through libgfapi.  I
> have the glfs_fd_t of the file, i've done some reading and want to know the
> current location.
> Can I achieve this without manually keeping track after every read or seek?
> -bc
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> https://lists.nongnu.org/mailman/listinfo/gluster-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20131120/206eb425/attachment-0001.html>

More information about the Gluster-devel mailing list