1.1 --- a/libfsserver/include/fsserver/ext2_file_operations.h Thu Feb 24 22:35:00 2022 +0100
1.2 +++ b/libfsserver/include/fsserver/ext2_file_operations.h Fri Feb 25 18:45:11 2022 +0100
1.3 @@ -23,6 +23,8 @@
1.4
1.5 #include <mutex>
1.6
1.7 +#include <sys/stat.h>
1.8 +
1.9 #include <ext2fs/ext2fs.h>
1.10
1.11 #include <systypes/base.h>
1.12 @@ -98,13 +100,15 @@
1.13
1.14 void write_file(ext2_file_t file, offset_t filepos, const void *addr, offset_t size);
1.15
1.16 - /* Directory access. */
1.17 + /* Directory and metadata access. */
1.18
1.19 long directory_iterate(ext2_ino_t dir,
1.20 int func(struct ext2_dir_entry *, int, int, char *, void *),
1.21 void *priv_data);
1.22
1.23 - long read_inode(ext2_ino_t ino_file, struct ext2_inode *inode);
1.24 + long read_inode(ext2_ino_t ino, struct ext2_inode *inode);
1.25 +
1.26 + long stat_inode(ext2_ino_t ino, struct stat *st);
1.27
1.28 /* Callback method. */
1.29