Whamcloud - gitweb
b=8654
authortappro <tappro>
Tue, 13 Sep 2005 07:34:04 +0000 (07:34 +0000)
committertappro <tappro>
Tue, 13 Sep 2005 07:34:04 +0000 (07:34 +0000)
store setattr mask in nid for debug purposes

lustre/smfs/audit_mds.c

index 3406e00..19682f8 100644 (file)
@@ -173,11 +173,12 @@ 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;