mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-15 07:16:13 -04:00
Fix inode count in statvfs
This commit is contained in:
parent
7904d2f0ca
commit
4563256651
@ -950,7 +950,7 @@ int metadata_<LoggerPolicy>::statvfs(struct ::statvfs* stbuf) const {
|
|||||||
stbuf->f_bsize = meta_.block_size();
|
stbuf->f_bsize = meta_.block_size();
|
||||||
stbuf->f_frsize = 1UL;
|
stbuf->f_frsize = 1UL;
|
||||||
stbuf->f_blocks = meta_.total_fs_size();
|
stbuf->f_blocks = meta_.total_fs_size();
|
||||||
stbuf->f_files = meta_.entry_table_v2_2().size();
|
stbuf->f_files = inode_count_;
|
||||||
stbuf->f_flag = ST_RDONLY;
|
stbuf->f_flag = ST_RDONLY;
|
||||||
stbuf->f_namemax = PATH_MAX;
|
stbuf->f_namemax = PATH_MAX;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user