Import 2.3.30pre7
[davej-history.git] / fs / adfs / file.c
blob2881e81f1f397b06ce5653ce85489efe059157bb
1 /*
2 * linux/fs/adfs/file.c
4 * Copyright (C) 1997 Russell King
5 * from:
7 * linux/fs/ext2/file.c
9 * Copyright (C) 1992, 1993, 1994, 1995
10 * Remy Card (card@masi.ibp.fr)
11 * Laboratoire MASI - Institut Blaise Pascal
12 * Universite Pierre et Marie Curie (Paris VI)
14 * from
16 * linux/fs/minix/file.c
18 * Copyright (C) 1991, 1992 Linus Torvalds
20 * adfs regular file handling primitives
23 #include <linux/errno.h>
24 #include <linux/fs.h>
25 #include <linux/ext2_fs.h>
26 #include <linux/fcntl.h>
27 #include <linux/sched.h>
28 #include <linux/stat.h>
31 * We have mostly NULLs here: the current defaults are OK for
32 * the adfs filesystem.
34 static struct file_operations adfs_file_operations = {
35 NULL, /* lseek - default */
36 generic_file_read, /* read */
37 NULL, /* write */
38 NULL, /* readdir - bad */
39 NULL, /* select - default */
40 NULL, /* ioctl */
41 generic_file_mmap, /* mmap */
42 NULL, /* open - not special */
43 NULL, /* flush */
44 NULL, /* release */
45 file_fsync, /* fsync */
46 NULL, /* fasync */
47 NULL, /* check_media_change */
48 NULL /* revalidate */
51 struct inode_operations adfs_file_inode_operations = {
52 &adfs_file_operations, /* default file operations */
53 NULL, /* create */
54 NULL, /* lookup */
55 NULL, /* link */
56 NULL, /* unlink */
57 NULL, /* symlink */
58 NULL, /* mkdir */
59 NULL, /* rmdir */
60 NULL, /* mknod */
61 NULL, /* rename */
62 NULL, /* readlink */
63 NULL, /* follow_link */
64 adfs_bmap, /* get_block */
65 block_read_full_page, /* readpage */
66 NULL, /* writepage */
67 NULL, /* truncate */
68 NULL, /* permission */
69 NULL /* revalidate */