<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/23/2013 05:26 PM, David Gibbons
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ9CW+70M67T3O1y8opgqnK0OS9KuMdU62XPyx+JvG-qicPTkg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi All,
        <div><br>
        </div>
        <div>I'm setting up a gluster cluster that will be accessed via
          smb. I was hoping that the quotas. I've configured a quota on
          the path itself:</div>
        <div><br>
        </div>
        <div>
          <div># gluster volume quota gfsv0 list</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;limit_set &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;size</div>
          <div>----------------------------------------------------------------------------------</div>
          <div>/shares/testsharedave &nbsp; &nbsp; &nbsp; 10GB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;8.0KB</div>
        </div>
        <div><br>
        </div>
        <div>And I've configured the share in samba (and can access it
          fine):</div>
        <div># cat /etc/samba/smb.conf</div>
        <div>
          <div>[testsharedave]</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; vfs objects = glusterfs</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; glusterfs:volfile_server = localhost</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; glusterfs:volume = gfsv0</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; path = /shares/testsharedave</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; valid users = dave</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; guest ok = no</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; writeable = yes</div>
        </div>
        <div><br>
        </div>
        <div>But windows does not reflect the quota and instead shows
          the full size of the gluster volume.</div>
        <div><br>
        </div>
        <div>I've reviewed the code in&nbsp;<a moz-do-not-send="true"
href="https://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs/blobs/master/src/vfs_glusterfs.c">https://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs/blobs/master/src/vfs_glusterfs.c</a>&nbsp;--
          which does not appear to support passing gluster quotas to
          samba. So I don't think my installation is broken, it seems
          like maybe this just isn't supported.</div>
        <div><br>
        </div>
        <div>Can anyone speak to whether or not quotas are going to be
          implemented in vfs_glusterfs for samba? Or if I'm just crazy
          and doing this wrong ;)? I'm definitely willing to help with
          the code but don't have much experience with either samba
          modules or the gluster API.</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    Hi David,<br>
    Quotas are supported by vfs_glusterfs for samba. I have also set
    quota on the volume correctly. If you try to write more data then
    the quota on the directory(/shares/testsharedave ), it will not
    allow. <br>
    <br>
    But for the clients (i.e. Windows/smb, nfs, fuse) to reflect in the
    meta data&nbsp; information (i.e. properties in Windows) , you have run
    below volume set&nbsp; command on respective volume.<br>
    <br>
    gluster volume set &lt;VOLUME NAME&gt; quota-deem-statfs on<br>
    <br>
    -Lala<br>
    <blockquote
cite="mid:CAJ9CW+70M67T3O1y8opgqnK0OS9KuMdU62XPyx+JvG-qicPTkg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Cheers,</div>
        <div>Dave</div>
        <div><br>
        </div>
      </div>
      <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://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>