VirtualBox

Changeset 23622 in vbox


Ignore:
Timestamp:
Oct 8, 2009 3:00:31 PM (15 years ago)
Author:
vboxsync
Message:

use DEV_BSIZE instead of hardcoded 512 bytes in r53300

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/fs.cpp

    r23620 r23622  
    3636# define RTTIME_INCL_TIMESPEC
    3737# include <sys/time.h>
     38# include <sys/param.h>
    3839#endif
    3940
     
    196197{
    197198    pObjInfo->cbObject    = pStat->st_size;
    198     pObjInfo->cbAllocated = pStat->st_blocks * 512;
     199    pObjInfo->cbAllocated = pStat->st_blocks * DEV_BSIZE;
    199200
    200201#ifdef HAVE_STAT_NSEC
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette