Re: How to find the current offset in an open file through libgfapi

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

 



you can:

curr_offset = glfs_lseek (glfd, 0, SEEK_CUR)

Avati


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


[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux