[Gluster-devel] Translator issue: Change content of iovec
David Spisla
david.spisla at iternity.com
Mon Apr 3 14:38:15 UTC 2017
Dear GlusterDevels,
I am coding a translator which is changing the content of the iovec if a user wants to read the content of the original file. Imagine you have a simple text file with the content "hello".
If the user wants to read that file, my translator changes the content to "I am the new content!!!". But at the moment my translator is not working perfectly.
Original Content -->"hello"
New content --> "I am the new content!!!"
If I read that file I get --> "I am "
It seems that there is still the old filesize allocated. I am looking for a way to allocate a new size so that my new String will fit into that file.
I tried out several things, but without success. Maybe someone of you has an idea. At the moment my translator is on the top of the client stack.
You find the source attached. I did all changes in --> stub_readv_cbk
Regards
David Spisla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170403/5e01bc70/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stub.c
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170403/5e01bc70/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stub-mem-types.h
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170403/5e01bc70/attachment.h>
More information about the Gluster-devel
mailing list