1 #ifndef _CREATE_INODE_H
2 #define _CREATE_INODE_H
7 #include "et/com_err.h"
9 #include "ext2fs/ext2fs.h"
25 #define HDLINK_CNT (4)
27 /* For populating the filesystem */
28 extern errcode_t populate_fs(ext2_filsys fs, ext2_ino_t parent_ino,
29 const char *source_dir, ext2_ino_t root);
30 extern errcode_t do_mknod_internal(ext2_filsys fs, ext2_ino_t cwd,
31 const char *name, struct stat *st);
32 extern errcode_t do_symlink_internal(ext2_filsys fs, ext2_ino_t cwd,
33 const char *name, char *target,
35 extern errcode_t do_mkdir_internal(ext2_filsys fs, ext2_ino_t cwd,
36 const char *name, ext2_ino_t root);
37 extern errcode_t do_write_internal(ext2_filsys fs, ext2_ino_t cwd,
38 const char *src, const char *dest,
41 #endif /* _CREATE_INODE_H */