This source file includes following definitions.
- UMSDOS_file_read
- UMSDOS_file_write
- UMSDOS_truncate
1
2
3
4
5
6
7
8
9
10 #include <asm/segment.h>
11 #include <asm/system.h>
12
13 #include <linux/sched.h>
14 #include <linux/fs.h>
15 #include <linux/msdos_fs.h>
16 #include <linux/errno.h>
17 #include <linux/fcntl.h>
18 #include <linux/stat.h>
19 #include <linux/msdos_fs.h>
20 #include <linux/umsdos_fs.h>
21
22
23 #define PRINTK(x)
24 #define Printk(x) printk x
25
26
27
28 static int UMSDOS_file_read(
29 struct inode *inode,
30 struct file *filp,
31 char *buf,
32 int count)
33 {
34
35 int ret = msdos_file_read(inode,filp,buf,count);
36 inode->i_atime = CURRENT_TIME;
37 inode->i_dirt = 1;
38 return ret;
39 }
40
41
42
43 static int UMSDOS_file_write(
44 struct inode *inode,
45 struct file *filp,
46 char *buf,
47 int count)
48 {
49 return msdos_file_write(inode,filp,buf,count);
50 }
51
52
53
54 static void UMSDOS_truncate(struct inode *inode)
55 {
56 PRINTK (("UMSDOS_truncate\n"));
57 msdos_truncate (inode);
58 inode->i_ctime = inode->i_mtime = CURRENT_TIME;
59 inode->i_dirt = 1;
60 }
61
62
63
64
65
66
67
68
69
70
71 struct file_operations umsdos_file_operations = {
72 NULL,
73 UMSDOS_file_read,
74 UMSDOS_file_write,
75 NULL,
76 NULL,
77 NULL,
78 msdos_mmap,
79 NULL,
80 NULL,
81 NULL
82 };
83
84 struct inode_operations umsdos_file_inode_operations = {
85 &umsdos_file_operations,
86 NULL,
87 NULL,
88 NULL,
89 NULL,
90 NULL,
91 NULL,
92 NULL,
93 NULL,
94 NULL,
95 NULL,
96 NULL,
97 NULL,
98 UMSDOS_truncate,
99 NULL,
100 msdos_smap
101 };
102
103