You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "B Wyatt (Updated) (JIRA)" <ji...@apache.org> on 2012/03/23 15:39:27 UTC

[jira] [Updated] (TS-1163) Raw disks with more than (2^32)-1 sectors (usually 2TB) are not supported on linux

     [ https://issues.apache.org/jira/browse/TS-1163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

B Wyatt updated TS-1163:
------------------------

    Attachment: blkgetsize64.bwyatt.patch

It will still be a little bit while I dig myself out of my hole and begin directly committing fixes to the repo.

Until then, I've attached a patch here that should work on codebases as old as June 2011 that provides support for larger disks via the BLKGETSIZE64 ioctl on linux.
                
> Raw disks with more than (2^32)-1 sectors (usually 2TB) are not supported on linux
> ----------------------------------------------------------------------------------
>
>                 Key: TS-1163
>                 URL: https://issues.apache.org/jira/browse/TS-1163
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>            Reporter: B Wyatt
>            Assignee: B Wyatt
>         Attachments: blkgetsize64.bwyatt.patch
>
>
> Due to 32bit integers in both the trafficersever code and the ioctl used to determine raw disk size, the number of sectors reported to the cache storage system is bound to 0-0xFFFFFFFF.  If a disk has 512 byte sectors and is larger than 2TB it will report (num_sectors % 0xFFFFFFFF) *  512 bytes avaliable.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira