struct kml_priv {
/* llog pack function */
- int (* pack_fn)(int, char *, struct dentry*,
+ int (*pack_fn)(int, char *, struct dentry *,
struct inode *, void *, void *);
};
void * audit_get_record;
void * au_id2name;
int result;
+ int audit_null; //to prevent output to syslog. just for testing overhead
__u64 a_mask;
};
+
typedef int (*audit_get_op)(struct inode *, void *, struct audit_priv *,
char *, __u32*);
void * val;
};
int smfs_helper (struct super_block *, int, void *);
-#define SMFS_PLG_HELP(sb, op, data) smfs_helper(sb, op, data)
+#define SMFS_PLG_HELP(sb, op, data) smfs_helper(sb, op, data)
int smfs_register_plugin(struct super_block *, struct smfs_plugin *);
struct smfs_plugin * smfs_deregister_plugin(struct super_block *, int);
return len;
}
-static inline int audit_fill_id_rec (char **pbuf, struct inode * inode)
-{
- struct fsfilt_operations *fsfilt = I2FOPS(inode);
- struct audit_id_record * rec = (void*)(*pbuf);
- int len = sizeof(*rec);
- struct lustre_fid fid;
- int rc = 0;
-
- rec->au_num = inode->i_ino;
- rec->au_type = (S_IFMT & inode->i_mode);
- rec->au_gen = inode->i_generation;
-
- //fid & mdsnum
- rc = fsfilt->fs_get_md(I2CI(inode), &fid, sizeof(fid), EA_SID);
- if (rc > 0) {
- rec->au_fid = fid.lf_id;
- rec->au_mds = fid.lf_group;
- }
-
- *pbuf += len;
- return len;
-}
-
static inline int audit_fill_name_rec (char **pbuf, const char * name, int nlen)
{
struct audit_name_record * n_rec = (void*)(*pbuf);