]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - misc/create_inode.h
Eliminate unused parameter warnings from Android build
[thirdparty/e2fsprogs.git] / misc / create_inode.h
CommitLineData
8f8d8a57
DW
1#ifndef _CREATE_INODE_H
2#define _CREATE_INODE_H
3
0d4deba2
RY
4#include <sys/types.h>
5#include <sys/stat.h>
6#include <fcntl.h>
7#include "et/com_err.h"
8#include "e2p/e2p.h"
9#include "ext2fs/ext2fs.h"
0d4deba2 10
f84894bc
RY
11struct hdlink_s
12{
b99888a0
DW
13 dev_t src_dev;
14 ino_t src_ino;
f84894bc
RY
15 ext2_ino_t dst_ino;
16};
17
18struct hdlinks_s
19{
20 int count;
b99888a0 21 int size;
f84894bc
RY
22 struct hdlink_s *hdl;
23};
24
b99888a0 25#define HDLINK_CNT (4)
f84894bc 26
0d4deba2 27/* For populating the filesystem */
a3111e80
DW
28extern errcode_t populate_fs(ext2_filsys fs, ext2_ino_t parent_ino,
29 const char *source_dir, ext2_ino_t root);
30extern errcode_t do_mknod_internal(ext2_filsys fs, ext2_ino_t cwd,
31 const char *name, struct stat *st);
32extern errcode_t do_symlink_internal(ext2_filsys fs, ext2_ino_t cwd,
33 const char *name, char *target,
34 ext2_ino_t root);
35extern errcode_t do_mkdir_internal(ext2_filsys fs, ext2_ino_t cwd,
25f291c9 36 const char *name, ext2_ino_t root);
a3111e80
DW
37extern errcode_t do_write_internal(ext2_filsys fs, ext2_ino_t cwd,
38 const char *src, const char *dest,
39 ext2_ino_t root);
8f8d8a57
DW
40
41#endif /* _CREATE_INODE_H */