X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdfilter%2Ffilter_internal.h;h=1164fc1bebeb2d3d5b067b7b94ed2b817c1417a5;hb=4ecae3cd5af60e389eba1e6eff2913b09f557203;hp=2aa014fe9f43044447e90806e9e860a07b51bb86;hpb=165aa6adfd492618257f7fa24e0bcf2c716c1977;p=fs%2Flustre-release.git diff --git a/lustre/obdfilter/filter_internal.h b/lustre/obdfilter/filter_internal.h index 2aa014f..1164fc1 100644 --- a/lustre/obdfilter/filter_internal.h +++ b/lustre/obdfilter/filter_internal.h @@ -95,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); @@ -109,7 +108,8 @@ 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); @@ -120,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); @@ -194,4 +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