6.0.0-git
2019-04-24

[#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 2006-08-29 (4621 days ago)
Due
Updated 2006-11-16 (4542 days ago)
Assigned
Resolved 2006-11-16 (4542 days ago)
Milestone
Patch No

History
2006-11-16 05:40:08 Chuck Hagenbuch Comment #5
State ⇒ Resolved
Reply to this comment
Cleaned up and committed, thanks.
2006-09-27 18:33:01 Jan Schneider Comment #4 Reply to this comment
Makes sense. Go ahead and commit it, after you cleaned up the coding 
style. ;-)
2006-09-27 17:45:46 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.


2006-09-27 10:46:19 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?
2006-08-29 18:51:01 Eric Rostetter Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 1. Low
Summary ⇒ Try to get actual block size of filesystem in command line quota driver
Queue ⇒ IMP
New Attachment: t.t Download
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