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:
parent
ba8800df2c
commit
e695e93146
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue