hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/hostfs/hostfs.h
....@@ -37,16 +37,20 @@
3737 * is on, and remove the appropriate bits from attr->ia_mode (attr is a
3838 * "struct iattr *"). -BlaisorBlade
3939 */
40
+struct hostfs_timespec {
41
+ long long tv_sec;
42
+ long long tv_nsec;
43
+};
4044
4145 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;
5054 };
5155
5256 struct hostfs_stat {
....@@ -56,7 +60,7 @@
5660 unsigned int uid;
5761 unsigned int gid;
5862 unsigned long long size;
59
- struct timespec atime, mtime, ctime;
63
+ struct hostfs_timespec atime, mtime, ctime;
6064 unsigned int blksize;
6165 unsigned long long blocks;
6266 unsigned int maj;
....@@ -87,7 +91,7 @@
8791 extern int hostfs_do_rmdir(const char *file);
8892 extern int do_mknod(const char *file, int mode, unsigned int major,
8993 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);
9195 extern int hostfs_do_readlink(char *file, char *buf, int size);
9296 extern int rename_file(char *from, char *to);
9397 extern int rename2_file(char *from, char *to, unsigned int flags);