| .. | .. |
|---|
| 37 | 37 | * is on, and remove the appropriate bits from attr->ia_mode (attr is a |
|---|
| 38 | 38 | * "struct iattr *"). -BlaisorBlade |
|---|
| 39 | 39 | */ |
|---|
| 40 | +struct hostfs_timespec { |
|---|
| 41 | + long long tv_sec; |
|---|
| 42 | + long long tv_nsec; |
|---|
| 43 | +}; |
|---|
| 40 | 44 | |
|---|
| 41 | 45 | struct hostfs_iattr { |
|---|
| 42 | | - unsigned int ia_valid; |
|---|
| 43 | | - unsigned short ia_mode; |
|---|
| 44 | | - uid_t ia_uid; |
|---|
| 45 | | - gid_t ia_gid; |
|---|
| 46 | | - loff_t ia_size; |
|---|
| 47 | | - struct timespec ia_atime; |
|---|
| 48 | | - struct timespec ia_mtime; |
|---|
| 49 | | - struct timespec ia_ctime; |
|---|
| 46 | + unsigned int ia_valid; |
|---|
| 47 | + unsigned short ia_mode; |
|---|
| 48 | + uid_t ia_uid; |
|---|
| 49 | + gid_t ia_gid; |
|---|
| 50 | + loff_t ia_size; |
|---|
| 51 | + struct hostfs_timespec ia_atime; |
|---|
| 52 | + struct hostfs_timespec ia_mtime; |
|---|
| 53 | + struct hostfs_timespec ia_ctime; |
|---|
| 50 | 54 | }; |
|---|
| 51 | 55 | |
|---|
| 52 | 56 | struct hostfs_stat { |
|---|
| .. | .. |
|---|
| 56 | 60 | unsigned int uid; |
|---|
| 57 | 61 | unsigned int gid; |
|---|
| 58 | 62 | unsigned long long size; |
|---|
| 59 | | - struct timespec atime, mtime, ctime; |
|---|
| 63 | + struct hostfs_timespec atime, mtime, ctime; |
|---|
| 60 | 64 | unsigned int blksize; |
|---|
| 61 | 65 | unsigned long long blocks; |
|---|
| 62 | 66 | unsigned int maj; |
|---|
| .. | .. |
|---|
| 87 | 91 | extern int hostfs_do_rmdir(const char *file); |
|---|
| 88 | 92 | extern int do_mknod(const char *file, int mode, unsigned int major, |
|---|
| 89 | 93 | unsigned int minor); |
|---|
| 90 | | -extern int link_file(const char *from, const char *to); |
|---|
| 94 | +extern int link_file(const char *to, const char *from); |
|---|
| 91 | 95 | extern int hostfs_do_readlink(char *file, char *buf, int size); |
|---|
| 92 | 96 | extern int rename_file(char *from, char *to); |
|---|
| 93 | 97 | extern int rename2_file(char *from, char *to, unsigned int flags); |
|---|