Whamcloud - gitweb
src needs to be in the options list if it is going to be available for use.
[fs/lustre-release.git] / lustre / llite / llite_audit.c
index 33e3fcc..dc14ad6 100644 (file)
@@ -46,7 +46,7 @@ int ll_set_audit(struct inode * inode, __u64 arg)
 
         msg.attr = arg;
         msg.id = lli->lli_id;
-        CWARN("Set audit %x for "DLID4"\n", (__u32)arg, OLID4(&lli->lli_id));
+        CDEBUG(D_INFO, "Set audit 0x%x for "DLID4"\n", (__u32)arg, OLID4(&lli->lli_id));
         rc = obd_set_info(exp, 5, "audit", sizeof(msg), &msg);
         
         //if fs audit is being set for fs then pass attr to all OSS
@@ -54,6 +54,10 @@ int ll_set_audit(struct inode * inode, __u64 arg)
                 sbi->ll_audit_mask = arg;
                 exp = ll_i2dtexp(inode);
                 rc = obd_set_info(exp, 5, "audit", sizeof(msg), &msg);
+        } else if (IS_AUDIT_OP(arg, AUDIT_SYNC) ||
+                   IS_AUDIT_OP(arg, AUDIT_NULL)) {
+                exp = ll_i2dtexp(inode);
+                rc = obd_set_info(exp, 5, "audit", sizeof(msg), &msg);
         } else {
                 lli->lli_audit_mask = arg;
         }