VirtualBox

Ignore:
Timestamp:
Oct 8, 2009 2:29:10 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53302
Message:

forward port r53301 from 3.0 to HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r23196 r23621  
    152152        inode->i_blkbits = 12;
    153153#endif
    154         inode->i_blocks = (info->cbObject + 4095) / 4096;
     154        /* i_blocks always in units of 512 bytes! */
     155        inode->i_blocks = (info->cbAllocated + 511) / 512;
    155156
    156157        sf_ftime_from_timespec (&inode->i_atime, &info->AccessTime);
Note: See TracChangeset for help on using the changeset viewer.

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