4 #include <linux/obd_support.h>
8 struct vfsmount *pwdmnt;
14 #define LUSTRE_MDS_NAME "mds"
18 struct task_struct *mds_thread;
19 wait_queue_head_t mds_waitq;
20 wait_queue_head_t mds_done_waitq;
21 struct timer_list *mds_timer;
24 struct list_head mds_reqs;
25 struct super_block * mds_sb;
26 struct vfsmount *mds_vfsmnt;
27 struct mds_run_ctxt mds_ctxt;
30 struct file_operations *mds_fop;
31 struct inode_operations *mds_iop;
32 struct address_space_operations *mds_aops;
48 struct list_head rq_list;
49 struct mds_obd *rq_obd;
54 struct mds_req_hdr *rq_reqhdr;
55 struct mds_req *rq_req;
59 struct mds_rep_hdr *rq_rephdr;
60 struct mds_rep *rq_rep;
62 wait_queue_head_t rq_wait_for_mds_rep;
67 int mds_pack_req(char *name, int namelen, char *tgt, int tgtlen, struct mds_req_hdr **hdr, struct mds_req **req, int *len, char **buf);
68 int mds_unpack_req(char *buf, int len, struct mds_req_hdr **hdr, struct mds_req **req);
69 int mds_pack_rep(char *name, int namelen, char *tgt, int tgtlen, struct mds_rep_hdr **hdr, struct mds_rep **rep, int *len, char **buf);
70 int mds_unpack_rep(char *buf, int len, struct mds_rep_hdr **hdr, struct mds_rep **rep);
73 /* llight/request.c */
75 /* ioctls for trying requests */
76 #define IOC_REQUEST_TYPE 'f'
77 #define IOC_REQUEST_MIN_NR 30
79 #define IOC_REQUEST_GETATTR _IOWR('f', 30, long)
80 #define IOC_REQUEST_MAX_NR 30