Summary | make smb backend quota aware |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Enhancement |
State | Rejected |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | leena.heino (at) uta (dot) fi |
Created | 11/05/2008 (6108 days ago) |
Due | |
Updated | 01/28/2016 (3468 days ago) |
Assigned | 02/02/2009 (6019 days ago) |
Resolved | 01/28/2016 (3468 days ago) |
Milestone | |
Patch | Yes |
doesn't pass the unit test. See the test that I committed to Git and
remove the $this->markTestIncomplete() lines.
Assigned to Jan Schneider
New Attachment: horde-h5-smbfoldersize.patch
New Attachment: horde-h4-smbfoldersize.patch
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.
Version ⇒ Git master
Queue ⇒ Horde Framework Packages
State ⇒ Feedback
State ⇒ Assigned
Patch ⇒ Yes
New Attachment: horde-framework3-smbfoldersize.patch
the disk usage information at the end of smbclient output. This was
done by adding the getFolderSize() to VFS/smb.php.
the disk usage information at the end of smbclient output. This was
done by adding the getFolderSize() to VFS/smb.php.
with suitable values within the VFS/smb.php file?
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.
still something you want? Does it make sense to anyone else?
- 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?
something you want? Does it make sense to anyone else?
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?
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 "Home".
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.
State ⇒ Feedback
Priority ⇒ 1. Low
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?
Priority ⇒ 2. Medium
State ⇒ New
Patch ⇒ No
Milestone ⇒
Summary ⇒ make smb backend quota aware
Type ⇒ Enhancement
Queue ⇒ Gollem
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.