1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix st_blocks being wrong on ext2.

This commit is contained in:
Jonas 'Sortie' Termansen 2021-01-19 22:03:07 +01:00
parent ba8800df2c
commit e695e93146

View file

@ -123,8 +123,7 @@ void StatInode(Inode* inode, struct stat* st)
st->st_mtim.tv_sec = inode->data->i_mtime;
st->st_mtim.tv_nsec = 0;
st->st_blksize = inode->filesystem->block_size;
st->st_blocks = ((uint64_t) inode->data->i_blocks *
(uint64_t) inode->filesystem->block_size) / 512;
st->st_blocks = inode->data->i_blocks;
}
static void compact_arguments(int* argc, char*** argv)