am 3d3cc6e1
: Merge "Report actual disk space used" into jb-mr2-dev
* commit '3d3cc6e15ea6398105dc59d3135df3e64d5cf34e': Report actual disk space used
This commit is contained in:
commit
3755dbec6f
@ -24,7 +24,8 @@
|
|||||||
int64_t stat_size(struct stat *s)
|
int64_t stat_size(struct stat *s)
|
||||||
{
|
{
|
||||||
int64_t blksize = s->st_blksize;
|
int64_t blksize = s->st_blksize;
|
||||||
int64_t size = s->st_size;
|
// count actual blocks used instead of nominal file size
|
||||||
|
int64_t size = s->st_blocks * 512;
|
||||||
|
|
||||||
if (blksize) {
|
if (blksize) {
|
||||||
/* round up to filesystem block size */
|
/* round up to filesystem block size */
|
||||||
|
Loading…
Reference in New Issue
Block a user