6.0.0-beta1
7/6/25

[#4360] Try to get actual block size of filesystem in command line quota driver
Summary Try to get actual block size of filesystem in command line quota driver
Queue IMP
Queue Version FRAMEWORK_3
Type Enhancement
State Resolved
Priority 1. Low
Owners
Requester eric.rostetter (at) physics (dot) utexas (dot) edu
Created 08/29/2006 (6886 days ago)
Due
Updated 11/16/2006 (6807 days ago)
Assigned
Resolved 11/16/2006 (6807 days ago)
Milestone
Patch No

History
11/16/2006 05:40:08 AM Chuck Hagenbuch Comment #5
State ⇒ Resolved
Reply to this comment
Cleaned up and committed, thanks.
09/27/2006 06:33:01 PM Jan Schneider Comment #4 Reply to this comment
Makes sense. Go ahead and commit it, after you cleaned up the coding 
style. ;-)
09/27/2006 05:45:46 PM Eric Rostetter Comment #3 Reply to this comment
Short answer: Yes.



Long answer: Yes, but in general in the real world, it has a better 
chance of being

correct than a single hardcoded value...  However, in either case (the 
single value,

or trying to determine it) it _can_ get it wrong.  So neither is a 
perect solution.


09/27/2006 10:46:19 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
AFAICS this only works if command.php is on the same file system, or 
on a file system with the same block size like the mail storage file 
system?
08/29/2006 06:51:01 PM Eric Rostetter Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Try to get actual block size of filesystem in command line quota driver
Queue ⇒ IMP
New Attachment: t.t Download
State ⇒ New
Reply to this comment
I'll commit this myself if no one objects.  Basically, I've added a 
function to the command line quota driver to try to get the actual 
device block size to use as a multiplier for the quota command,   
defaulting back to the current 1024 value if it can't do it.  Seems 
reasonable to me, but I wanted to pass it by here for comments.



Feel free to commit it, or feel free to ask me to commit it (no 
problem for me to do so).

I can create/commit the patch for HEAD too, though this is from FRAMEWORK_3.

Saved Queries