[DFS_V2]Update dfs_elm.c 修复变量使用错误 (#7776)
This commit is contained in:
parent
b60d0cf370
commit
7b4e52bd79
|
@ -829,7 +829,7 @@ int dfs_elm_stat(struct dfs_dentry *dentry, struct stat *st)
|
||||||
st->st_blksize = fat->csize * SS(fat);
|
st->st_blksize = fat->csize * SS(fat);
|
||||||
if (file_info.fattrib & AM_ARC)
|
if (file_info.fattrib & AM_ARC)
|
||||||
{
|
{
|
||||||
st->st_blocks = file_info.fsize ? ((file_info.fsize - 1) / SS(f) / fat->csize + 1) : 0;
|
st->st_blocks = file_info.fsize ? ((file_info.fsize - 1) / SS(fat) / fat->csize + 1) : 0;
|
||||||
st->st_blocks *= (st->st_blksize / 512); // man say st_blocks is number of 512B blocks allocated
|
st->st_blocks *= (st->st_blksize / 512); // man say st_blocks is number of 512B blocks allocated
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue