diff options
Diffstat (limited to 'fs/hostfs/hostfs.h')
| -rw-r--r-- | fs/hostfs/hostfs.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h index 2f34f8f2134b..6bbd75c5589b 100644 --- a/fs/hostfs/hostfs.h +++ b/fs/hostfs/hostfs.h | |||
| @@ -53,18 +53,28 @@ struct hostfs_iattr { | |||
| 53 | struct timespec ia_ctime; | 53 | struct timespec ia_ctime; |
| 54 | }; | 54 | }; |
| 55 | 55 | ||
| 56 | extern int stat_file(const char *path, unsigned long long *inode_out, | 56 | struct hostfs_stat { |
| 57 | int *mode_out, int *nlink_out, int *uid_out, int *gid_out, | 57 | unsigned long long ino; |
| 58 | unsigned long long *size_out, struct timespec *atime_out, | 58 | unsigned int mode; |
| 59 | struct timespec *mtime_out, struct timespec *ctime_out, | 59 | unsigned int nlink; |
| 60 | int *blksize_out, unsigned long long *blocks_out, int fd); | 60 | unsigned int uid; |
| 61 | unsigned int gid; | ||
| 62 | unsigned long long size; | ||
| 63 | struct timespec atime, mtime, ctime; | ||
| 64 | unsigned int blksize; | ||
| 65 | unsigned long long blocks; | ||
| 66 | unsigned int maj; | ||
| 67 | unsigned int min; | ||
| 68 | }; | ||
| 69 | |||
| 70 | extern int stat_file(const char *path, struct hostfs_stat *p, int fd); | ||
| 61 | extern int access_file(char *path, int r, int w, int x); | 71 | extern int access_file(char *path, int r, int w, int x); |
| 62 | extern int open_file(char *path, int r, int w, int append); | 72 | extern int open_file(char *path, int r, int w, int append); |
| 63 | extern int file_type(const char *path, int *maj, int *min); | ||
| 64 | extern void *open_dir(char *path, int *err_out); | 73 | extern void *open_dir(char *path, int *err_out); |
| 65 | extern char *read_dir(void *stream, unsigned long long *pos, | 74 | extern char *read_dir(void *stream, unsigned long long *pos, |
| 66 | unsigned long long *ino_out, int *len_out); | 75 | unsigned long long *ino_out, int *len_out); |
| 67 | extern void close_file(void *stream); | 76 | extern void close_file(void *stream); |
| 77 | extern int replace_file(int oldfd, int fd); | ||
| 68 | extern void close_dir(void *stream); | 78 | extern void close_dir(void *stream); |
| 69 | extern int read_file(int fd, unsigned long long *offset, char *buf, int len); | 79 | extern int read_file(int fd, unsigned long long *offset, char *buf, int len); |
| 70 | extern int write_file(int fd, unsigned long long *offset, const char *buf, | 80 | extern int write_file(int fd, unsigned long long *offset, const char *buf, |
