[Gluster-devel] Extended Attributes

Anand Avati avati at zresearch.com
Tue May 13 08:06:58 UTC 2008


> There should be other thing if not d_off, we cant just remove it like
> this. Because, if we remove it. it won't return at all.
> Other than this, I am pretty sure i compiled 1.3.8 on bsd machine (on paul
> arch's machine). Anyways, Thanks for the patch. But Iam thinking how i can
> set that d_off thing.
>

A portable way of getting the offset from a DIR * is to use telldir() and
not worry about how the offset is internally stored. some systems store it
as dirent->d_off, some as dirent->seek_off etc. Infact even in the current
code we should cleanup the #ifdef mess and just use telldir() for every
platform.

avati



More information about the Gluster-devel mailing list