[Gluster-devel] struct dirent in snapview-server.c

Raghavendra Bhat rabhat at redhat.com
Mon Jun 2 07:36:04 UTC 2014


On Monday 02 June 2014 06:47 AM, Harshavardhana wrote:
>> It is always possible to translate structures, the question is whether
>> it is useful of not. d_off is the offset of this struct dirent within
>> the buffer for the whole directory returned by getdents(2) system call.
>>
>> Since we glusterfs does not use getdents(2) but upper level
>> opendir(3)/readdir(3), which use getdents(2) themselves, it never has
>> the whole buffer, and therefore I am not sure it can make any use of
>> d_off.
> Understood that makes sense.
>
Hi Emmanuel,

I have raised a bug for it 
(https://bugzilla.redhat.com/show_bug.cgi?id=1103591) and have sent a 
patch to handle the issue (http://review.gluster.org/#/c/7946/). Please 
let me know if this handles the issue.

Regards,
Raghavendra Bhat


More information about the Gluster-devel mailing list