<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="/h/themes/default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>make smb backend quota aware</title> 
  <pubDate>Sun, 19 May 2013 14:51:21 +0000</pubDate> 
  <link>http://bugs.horde.org/ticket/7643</link> 
  <atom:link rel="self" type="application/rss+xml" title="make smb backend quota aware" href="http://bugs.horde.org/ticket/7643/rss" /> 
  <description>make smb backend quota aware</description> 
 
   
   
  <item> 
   <title>It seems that smbclient produces something like this at the </title> 
   <description>It seems that smbclient produces something like this at the end of ls command:

 12765 blocks of size 262144. 42 blocks available



This seems to mean that user's hard quota is 12765 blocks and only 42 of those blocks are currently free. Therefore current usage in bytes could be calculated as: (12765-42)*262144.</description> 
   <pubDate>Wed, 05 Nov 2008 17:43:52 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t50287</link> 
  </item> 
   
  <item> 
   <title>I don't think I understand what you mean by this. That's jus</title> 
   <description>I don't think I understand what you mean by this. That's just the usage; it's not a quota, and it may or may not be accurate (using sshfs, for example, the disk is always listed as having 1,000 GB available). So what would be gained by parsing it?</description> 
   <pubDate>Thu, 06 Nov 2008 04:47:56 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t50360</link> 
  </item> 
   
  <item> 
   <title>&gt; I don't think I understand what you mean by this. That's j</title> 
   <description>&gt; I don't think I understand what you mean by this. That's just the 

&gt; usage; it's not a quota, and it may or may not be accurate (using 

&gt; sshfs, for example, the disk is always listed as having 1,000 GB 

&gt; available). So what would be gained by parsing it?



We have EMC NS40 server as a NAS-server and it has a feature where the reported share size is the same as user quota. Therefore this line actually tells us in our system what is the user quota and disk usage. And each users home directory is a separate share. Each user can access their home directory as a with a share name &quot;Home&quot;.



Is the samba default that it always reports for the share size the size of the whole disk or parent filesystem and as a usage the whole usage in the disk? If this is the case then parsing this line might be useless.



Anyway, I hacked together a very basic support to parsing the usage line and it seems to work in our system.



This revealed that gollem quota support is not configurable per user but per defined backend system.</description> 
   <pubDate>Thu, 06 Nov 2008 10:00:26 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t50393</link> 
  </item> 
   
  <item> 
   <title>I'm not clear what the takeaway of your explorations is. Is </title> 
   <description>I'm not clear what the takeaway of your explorations is. Is this still something you want? Does it make sense to anyone else?</description> 
   <pubDate>Thu, 06 Nov 2008 15:39:58 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t50406</link> 
  </item> 
   
  <item> 
   <title>&gt; I'm not clear what the takeaway of your explorations is. I</title> 
   <description>&gt; I'm not clear what the takeaway of your explorations is. Is this 

&gt; still something you want? Does it make sense to anyone else?



What I would like is:

- Make vfs quota support aware that different users might have different quota limits on different backends. 

- Smb-driver should parse the disk usage information at the end of smbclient output.



Those things would enable me to offer our users the ability to check their disk quota and disk usage in gollem.



What I have already done is that I have made the smb vfs-driver parse the disk usage information at the end of smbclient output. This was done by adding the getFolderSize() to VFS/smb.php. 



Could I achieve the first item in my wish list by calling setQuota() with suitable values within the VFS/smb.php file?

</description> 
   <pubDate>Thu, 06 Nov 2008 18:35:59 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t50412</link> 
  </item> 
   
  <item> 
   <title>&gt; Could I achieve the first item in my wish list by calling </title> 
   <description>&gt; Could I achieve the first item in my wish list by calling setQuota() 

&gt; with suitable values within the VFS/smb.php file?



I solved this part by calling appropriate functions in VFS/smb.php. The code is not elegant, but works for my purposes.



Now I can offer to our users the ability to check their disk usage and their personal disk quota limit in the gollem. This has been a requested feature to gollem in my organization.</description> 
   <pubDate>Thu, 06 Nov 2008 19:34:19 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t50413</link> 
  </item> 
   
  <item> 
   <title>&gt; What I have already done is that I have made the smb vfs-d</title> 
   <description>&gt; What I have already done is that I have made the smb vfs-driver parse 

&gt; the disk usage information at the end of smbclient output. This was 

&gt; done by adding the getFolderSize() to VFS/smb.php.



Do you want to contribute this?</description> 
   <pubDate>Fri, 07 Nov 2008 01:35:55 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t50422</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; What I have already done is that I have made the smb vfs-</title> 
   <description>&gt;&gt; What I have already done is that I have made the smb vfs-driver parse

&gt;&gt; the disk usage information at the end of smbclient output. This was

&gt;&gt; done by adding the getFolderSize() to VFS/smb.php.

&gt;

&gt; Do you want to contribute this?



Attached.</description> 
   <pubDate>Mon, 02 Feb 2009 15:06:46 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t52204</link> 
  </item> 
   
  <item> 
   <title>Do you still use this? Can you provide an updated patch for </title> 
   <description>Do you still use this? Can you provide an updated patch for Horde 5?</description> 
   <pubDate>Tue, 27 Nov 2012 11:30:06 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t75121</link> 
  </item> 
   
  <item> 
   <title>&gt; Do you still use this? Can you provide an updated patch fo</title> 
   <description>&gt; Do you still use this? Can you provide an updated patch for Horde 5?

We use this with in our framework_3 version. We would like to use it in H4 and H5, but I haven't had time to update the patch.

Updating the patch to H5 would mean at least replacing PEAR_ERROR with Horde_Vfs_Exception and using try and catch.</description> 
   <pubDate>Tue, 27 Nov 2012 12:10:42 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t75126</link> 
  </item> 
   
  <item> 
   <title>Included updated patch to H4</title> 
   <description>Included updated patch to H4</description> 
   <pubDate>Tue, 27 Nov 2012 14:11:10 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t75132</link> 
  </item> 
   
  <item> 
   <title>Included updated patch to H5
</title> 
   <description>Included updated patch to H5
</description> 
   <pubDate>Tue, 27 Nov 2012 14:11:59 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t75133</link> 
  </item> 
   
  <item> 
   <title>The patch (for H5, it's the only one that's going to be comm</title> 
   <description>The patch (for H5, it's the only one that's going to be committed), doesn't pass the unit test. See the test that I committed to Git and remove the $this-&gt;markTestIncomplete() lines.</description> 
   <pubDate>Thu, 29 Nov 2012 14:47:47 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t75227</link> 
  </item> 
   
  <item> 
   <title>Ping?</title> 
   <description>Ping?</description> 
   <pubDate>Wed, 30 Jan 2013 14:07:35 +0000</pubDate> 
   <link>http://bugs.horde.org/ticket/7643#t76472</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
