[ 
https://issues.apache.org/jira/browse/TS-1707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13576514#comment-13576514
 ] 

Ben Aitchison commented on TS-1707:
-----------------------------------

changing

blocks = size / hw_sector_size;
to
blocks = size / STORE_BLOCK_SIZE;

seems to resolve the issue.  512b sector size for raw, and 4k for file system 
makes numbers work, as STORE_BLOCK_SIZE appears to be 8k.  after looking around 
more afterwards, there are 4 lines that say the same thing, and a few comments 
saying something to the effect of that it appears to work that way. 



                
> FreeBSD disk calculations are wrong
> -----------------------------------
>
>                 Key: TS-1707
>                 URL: https://issues.apache.org/jira/browse/TS-1707
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>            Reporter: Ben Aitchison
>
> FreeBSD miscalculates disk size based on config by 2x for file-based, and 16x 
> for raw-based.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to