<div dir="ltr"><div>We would definitely love patches. I think you should try to follow how ftruncate fop is implemented for a similar fop implementation.<br>Take a look at:<br>1) ec_gf_ftruncate<br>2) ec_ftruncate<br>3) ec_wind_ftruncate<br>4) ec_manager_truncate(truncate, ftruncate reuse this function)<br><br></div>Feel free to send any more questions you may have.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 9, 2016 at 12:42 PM, 李迪 <span dir="ltr">&lt;<a href="mailto:lidi@estor.com.cn" target="_blank">lidi@estor.com.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> If I want to implement it, is there any suggestions?<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
于 2016年08月09日 14:48, 李迪 写道:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Xavier,<br>
<br>
    I want to use fallocate to reduce file system fragmentations, but ec can not support it now.<br>
<br>
    Why not support it?<br>
<br>
<br>
</blockquote>
<br>
<br>
______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman<wbr>/listinfo/gluster-devel</a></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div>