Import 2.1.118
[davej-history.git] / fs / isofs / file.c
blob0a508c90bc0df2f4c3058536e046be12c81b3d2a
1 /*
2 * linux/fs/isofs/file.c
4 * (C) 1992, 1993, 1994 Eric Youngdale Modified for ISO 9660 filesystem.
6 * (C) 1991 Linus Torvalds - minix filesystem
8 * isofs regular file handling primitives
9 */
11 #include <linux/sched.h>
12 #include <linux/iso_fs.h>
13 #include <linux/fcntl.h>
14 #include <linux/kernel.h>
15 #include <linux/errno.h>
16 #include <linux/stat.h>
17 #include <linux/locks.h>
18 #include <linux/fs.h>
19 #include <linux/iso_fs.h>
22 * We have mostly NULLs here: the current defaults are OK for
23 * the isofs filesystem.
25 static struct file_operations isofs_file_operations = {
26 NULL, /* lseek - default */
27 generic_file_read, /* read */
28 NULL, /* write */
29 NULL, /* readdir - bad */
30 NULL, /* poll - default */
31 NULL, /* ioctl - default */
32 generic_file_mmap, /* mmap */
33 NULL, /* no special open is needed */
34 NULL, /* flush */
35 NULL, /* release */
36 NULL /* fsync */
39 struct inode_operations isofs_file_inode_operations = {
40 &isofs_file_operations, /* default file operations */
41 NULL, /* create */
42 NULL, /* lookup */
43 NULL, /* link */
44 NULL, /* unlink */
45 NULL, /* symlink */
46 NULL, /* mkdir */
47 NULL, /* rmdir */
48 NULL, /* mknod */
49 NULL, /* rename */
50 NULL, /* readlink */
51 NULL, /* follow_link */
52 generic_readpage, /* readpage */
53 NULL, /* writepage */
54 isofs_bmap, /* bmap */
55 NULL, /* truncate */
56 NULL /* permission */