Whamcloud - gitweb
cee9b7b5f28c71015497d78a6d906861535f7eaf
[fs/lustre-release.git] / lustre / include / linux / obdfs.h
1 /* object based disk file system
2  * 
3  * This software is licensed under the GPL.  See the file COPYING in the
4  * top directory of this distribution for details.
5  * 
6  * Copyright (C), 1999, Stelias Computing Inc
7  *
8  *
9  */
10
11
12 #ifndef _OBDFS_H
13 #define OBDFS_H
14 #include <../obd/linux/obd_class.h>
15
16 /* file.c */
17 ssize_t obdfs_file_write(struct file *file, const char *buf, size_t count, loff_t *ppos);
18
19
20 /* rw.c */
21 struct page *obdfs_getpage(struct inode *inode, unsigned long offset);
22 int obdfs_writepage(struct file *file, struct page *page);
23 int obdfs_write_one_page(struct file *file, struct page *page, unsigned long offset, unsigned long bytes, const char * buf);
24
25 /* namei.c */
26 struct dentry *obdfs_lookup(struct inode * dir, struct dentry *dentry);
27
28 /* dir.c */
29 int obdfs_readdir(struct file * filp, void * dirent, filldir_t filldir);
30
31 struct obdfs_sb_info {
32         struct obd_conn_info osi_conn_info;
33         struct super_block *osi_super;
34         struct obd_device *osi_obd;
35         struct obd_ops *osi_ops;
36 };
37
38 void obdfs_sysctl_init(void);
39 void obdfs_sysctl_clean(void);
40
41 struct obdfs_inode_info;
42
43 extern struct file_operations obdfs_file_operations;
44 extern struct inode_perations obdfs_inode_operations;
45
46
47 #define OBDFS_SUPER_MAGIC 0x4711
48
49 #endif
50