gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] How to find the current offset in an open file throu


From: Anand Avati
Subject: Re: [Gluster-devel] How to find the current offset in an open file through libgfapi
Date: Wed, 20 Nov 2013 10:31:29 -0800

you can:

curr_offset = glfs_lseek (glfd, 0, SEEK_CUR)

Avati


On Wed, Nov 20, 2013 at 10:26 AM, Brad Childs <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/gluster-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]