3 #include <sys/statvfs.h>
5 int fs_stat(ino_t ino_nr
, struct stat
*statbuf
)
9 if ((rip
= get_inode(ino_nr
)) == NULL
)
12 *statbuf
= rip
->i_stat
;
17 int fs_statvfs(struct statvfs
*st
)
19 st
->f_flag
= ST_NOTRUNC
;
20 st
->f_bsize
= v_pri
.logical_block_size_l
;
21 st
->f_frsize
= st
->f_bsize
;
22 st
->f_iosize
= st
->f_bsize
;
23 st
->f_blocks
= v_pri
.volume_space_size_l
;
24 st
->f_namemax
= NAME_MAX
;