Whamcloud - gitweb
Changed quotes for newer bash
[fs/lustre-release.git] / lustre / obdfilter / filter_internal.h
index 95583ae..1164fc1 100644 (file)
 #include <linux/lustre_handles.h>
 #include <linux/obd.h>
 
-#ifndef OBD_FILTER_DEVICENAME
-# define OBD_FILTER_DEVICENAME "obdfilter"
-#endif
-
-#ifndef OBD_FILTER_SAN_DEVICENAME
-# define OBD_FILTER_SAN_DEVICENAME "sanobdfilter"
-#endif
-
 #define LAST_RCVD "last_rcvd"
 #define FILTER_INIT_OBJID 0
 
@@ -103,7 +95,6 @@ struct dentry *__filter_oa2dentry(struct obd_device *obd, struct obdo *oa,
 #define filter_oa2dentry(obd, oa) __filter_oa2dentry(obd, oa, __FUNCTION__)
 
 int filter_finish_transno(struct obd_export *, struct obd_trans_info *, int rc);
-__u64 filter_next_id(struct filter_obd *, int group);
 __u64 filter_last_id(struct filter_obd *, int group);
 int filter_update_server_data(struct obd_device *, struct file *,
                               struct filter_server_data *, int force_sync);
@@ -111,17 +102,16 @@ int filter_update_last_objid(struct obd_device *, obd_gr, int force_sync);
 int filter_common_setup(struct obd_device *, obd_count len, void *buf,
                         char *option);
 
-struct dentry *filter_crow_object(struct obd_device *obd, __u64 ogr,
-                                  __u64 oid);
+struct dentry *filter_crow_object(struct obd_device *obd, struct obdo *oa);
 
 int filter_setattr_internal(struct obd_export *exp, struct dentry *dentry,
                             struct obdo *oa, struct obd_trans_info *oti);
 
 int filter_setattr(struct obd_export *exp, struct obdo *oa,
-                   struct lov_stripe_md *md, struct obd_trans_info *oti);
+                   struct lov_stripe_md *md, struct obd_trans_info *oti,
+                   struct lustre_capa *capa);
 
-int filter_create_object(struct obd_device *obd, struct obdo *oa,
-                         obd_gr group);
+int filter_create_object(struct obd_device *obd, struct obdo *oa);
 
 /* filter_lvb.c */
 extern struct ldlm_valblock_ops filter_lvbo;
@@ -130,7 +120,8 @@ extern struct ldlm_valblock_ops filter_lvbo;
 /* filter_io.c */
 int filter_preprw(int cmd, struct obd_export *, struct obdo *, int objcount,
                   struct obd_ioobj *, int niocount, struct niobuf_remote *,
-                  struct niobuf_local *, struct obd_trans_info *);
+                  struct niobuf_local *, struct obd_trans_info *,
+                  struct lustre_capa *capa);
 int filter_commitrw(int cmd, struct obd_export *, struct obdo *, int objcount,
                     struct obd_ioobj *, int niocount, struct niobuf_local *,
                     struct obd_trans_info *, int rc);
@@ -171,10 +162,11 @@ struct ost_filterdata {
         __u32  ofd_epoch;
 };
 
-int filter_log_sz_change(struct llog_handle *cathandle,
+int filter_log_sz_change(struct obd_device *obd,
                          struct lustre_id *id, __u32 io_epoch,
-                         struct llog_cookie *logcookie,
+                         struct llog_cookie *logcookie, 
                          struct inode *inode);
+
 //int filter_get_catalog(struct obd_device *);
 void filter_cancel_cookies_cb(struct obd_device *obd, __u64 transno,
                               void *cb_data, int error);
@@ -203,5 +195,15 @@ static inline void  filter_tally_read(struct filter_obd *filter,
 static inline lproc_filter_attach_seqstat(struct obd_device *dev) {}
 #endif
 
+/* filter_capa.c */
+void blacklist_add(uid_t uid);
+void blacklist_del(uid_t uid);
+int blacklist_display(char *buf, int bufsize);
+int filter_init_capa_keys(struct obd_device *obd);
+void filter_free_capa_keys(struct filter_obd *filter);
+int filter_update_capa_key(struct obd_device *obd, struct lustre_capa_key *key);
+int filter_verify_capa(int cmd, struct obd_export *exp, struct lustre_capa *capa);
+int filter_verify_fid(struct obd_export *exp, struct inode *inode,
+                      struct lustre_capa *capa);
 
 #endif