Whamcloud - gitweb
b=8654
authortappro <tappro>
Wed, 14 Sep 2005 05:45:56 +0000 (05:45 +0000)
committertappro <tappro>
Wed, 14 Sep 2005 05:45:56 +0000 (05:45 +0000)
remove setattr trick back

lustre/smfs/audit_mds.c

index 19682f8..7310c8d 100644 (file)
@@ -173,12 +173,11 @@ int static audit_mds_setattr_rec(struct inode * inode, void * arg,
                               struct audit_priv * priv, char * buffer,
                               __u32 *type)
 {
-        struct hook_attr_msg * msg = arg;
+        /*struct hook_attr_msg * msg = arg;*/
         struct audit_record * rec = (void*)buffer;
         char * pbuf = buffer + sizeof(*rec);
         int len = sizeof(*rec);
         
-        rec->nid = msg->attr->ia_valid;
         rec->opcode = AUDIT_SETATTR;
         len += audit_fill_id_rec(&pbuf, inode);
         *type = SMFS_AUDIT_GEN_REC;