1 #ifndef _CREATE_INODE_H
2 #define _CREATE_INODE_H
7 #include "et/com_err.h"
9 #include "ext2fs/ext2fs.h"
10 #include "nls-enable.h"
24 struct hdlinks_s hdlinks;
26 /* For saving the hard links */
28 extern int hdlink_cnt;
30 /* For populating the filesystem */
31 extern errcode_t populate_fs(ext2_filsys fs, ext2_ino_t parent_ino,
32 const char *source_dir, ext2_ino_t root);
33 extern errcode_t do_mknod_internal(ext2_filsys fs, ext2_ino_t cwd,
34 const char *name, struct stat *st);
35 extern errcode_t do_symlink_internal(ext2_filsys fs, ext2_ino_t cwd,
36 const char *name, char *target,
38 extern errcode_t do_mkdir_internal(ext2_filsys fs, ext2_ino_t cwd,
39 const char *name, struct stat *st,
41 extern errcode_t do_write_internal(ext2_filsys fs, ext2_ino_t cwd,
42 const char *src, const char *dest,
45 #endif /* _CREATE_INODE_H */