<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/28/2016 04:43 PM, Niels de Vos
wrote:<br>
</div>
<blockquote
cite="mid:20160728111354.GE2797@ndevos-x240.usersys.redhat.com"
type="cite">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">posix_discard() in gluster seems to be using fallocate() with
<span class="moz-txt-citetags">> </span>FALLOC_FL_PUNCH_HOLE flag. And posix_zerofill() can be made smarter to use
<span class="moz-txt-citetags">> </span>FALLOC_FL_ZERO_RANGE and fallback to writing zeroes if ZERO_RANGE is not
<span class="moz-txt-citetags">> </span>supported.
</pre>
</blockquote>
<pre wrap="">Oh, nice find! I was expecting that posix_zerofill() uses fallocate()
already... Definitely something that shoud be improved too. Care to file
a bug for that?
</pre>
</blockquote>
<tt>Sent <a class="moz-txt-link-freetext" href="http://review.gluster.org/#/c/15037/">http://review.gluster.org/#/c/15037/</a> <span
class="moz-smiley-s1"><span>:-)</span></span><br>
</tt>-<tt>Ravi<br>
</tt>
</body>
</html>