<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I would certainly be willing to help test this. I would even suggest
    a step further where a volume option would automatically poke the
    hole if a write created a null block.<br>
    <br>
    <div class="moz-cite-prefix">On 01/22/16 08:58, Niels de Vos wrote:<br>
    </div>
    <blockquote
      cite="mid:20160122165801.GS4466@ndevos-x240.usersys.redhat.com"
      type="cite">
      <pre wrap="">On Fri, Jan 22, 2016 at 04:07:54PM +0000, Ankireddypalle Reddy wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,
          Thanks for checking this. If this is not supported through FUSE can this be done through libgfapi.
</pre>
      </blockquote>
      <pre wrap="">
Not yet. I was thinking of adding support for this after
SEEK_HOLE/SEEK_DATA has been merged. Maybe we can include hole punching
in gfapi for 3.8, where FUSE follows later. Would you be willing to
assist with the development or testing of that?

Thanks,
Niels


</pre>
      <blockquote type="cite">
        <pre wrap="">
Thanks and Regards,
Ram

-----Original Message-----
From: Niels de Vos [<a class="moz-txt-link-freetext" href="mailto:ndevos@redhat.com">mailto:ndevos@redhat.com</a>] 
Sent: Friday, January 22, 2016 11:05 AM
To: Ankireddypalle Reddy
Cc: <a class="moz-txt-link-abbreviated" href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a>
Subject: Re: [Gluster-users] support for hole punching in glusterfs

On Fri, Jan 22, 2016 at 03:05:16PM +0000, Ankireddypalle Reddy wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hi,
        Hole punching through fallocate succeeds for a ext4 mount path. But it fails for a glusterfs mount path. The volume is a disperse volume.

        fallocate(fd,FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE,0,sizeof(array)) fails with a return code of EOPNOTSUPP.

       The ext4 file system mount arguments are "rw,noexec,nosuid,nodev,user_xattr,discard".
</pre>
        </blockquote>
        <pre wrap="">
This is currently not supported yet. I'm not sure if the FUSE kernel module support punching holes yet, either. Please file a bug for this feature so that we can figure out a plan to work on it.

  <a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS&amp;component=fuse">https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS&amp;component=fuse</a>

Note that support for SEEK_HOLE and SEEK_DATA is also not availeble yet.
Some work has been done, but it is not ready for inclusion at this moment. Hopefully it lands in the upcoming 3.8 release.

  <a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=1220173">https://bugzilla.redhat.com/show_bug.cgi?id=1220173</a>

Thanks,
Niels



***************************Legal Disclaimer***************************
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**********************************************************************
</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>