<style>table.customTableClassName {margin-bottom: 10px;border-collapse: collapse;display: table;}.customTableClassName td, .customTableClassName th {border: 1px solid #ddd;}</style><div id="write-custom-write" style="font-size: 14px; font-family: 宋体;"><p style="margin:0px;">Hi,<span style="font-family: arial; font-size: 12px;">Pranith:</span></p><p style="margin:0px;"><span style="font-family: arial; font-size: 12px;"><br></span></p><p style="margin:0px;"><span style="font-family: arial; font-size: 12px;">&nbsp; &nbsp; &nbsp;&nbsp;</span><span style="font-family: arial; font-size: 12px;">Here is the patch &nbsp; &nbsp; &nbsp;&nbsp;</span><span style="font-family: arial; font-size: 12px;"><a href="https://review.gluster.org/#/c/15200/" _src="https://review.gluster.org/#/c/15200/">https://review.gluster.org/#/c/15200/</a> </span></p><p style="margin:0px;">&nbsp;</p><p style="margin:0px;">&nbsp;Thanks for your suggestions.</p><br></div><div style="padding:5px;padding-left:0px;border-top:solid #999 1.0pt;font-family: arial; font-size:12px;margin-bottom:20px;"><p style="margin:0px;"><strong>From:</strong> "Pranith Kumar Karampuri &lt;pkarampu@redhat.com&gt;"</p><p style="margin:0px;"><strong>To:</strong> "李迪 &lt;lidi@estor.com.cn&gt;"</p><p style="margin:0px;"><strong>CC:</strong> "Xavier Hernandez &lt;xhernandez@datalab.es&gt;","Gluster Devel &lt;gluster-devel@gluster.org&gt;"</p><p style="margin:0px;"><strong>Sent:</strong> 2016-08-11 10:21</p><p style="margin:0px;"><strong>Subject:</strong> Re: [Gluster-devel] why ec fallocate is not supported</p></div><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">&nbsp;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>&nbsp; &nbsp; I want to use fallocate to reduce file system fragmentations, but ec can not support it now.<br><br>&nbsp; &nbsp; 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>