Whamcloud - gitweb
file export-do_kern_mount.patch was initially added on branch b1_5.
[fs/lustre-release.git] / lustre / smfs / smfs_api.h
index 3c76c03..320591a 100644 (file)
@@ -98,8 +98,10 @@ struct audit_priv {
         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*);
 
@@ -217,29 +219,6 @@ static inline int audit_rec_from_id (char **pbuf, struct lustre_id * id)
         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);