Whamcloud - gitweb
add null_audit command to lctl which will make audit silent. For testing purposes.
[fs/lustre-release.git] / lustre / include / linux / lustre_audit.h
index 05c8153..136fb29 100644 (file)
@@ -35,7 +35,7 @@
 //AUDIT OPCODES, also bit number in audit_setting mask
 
 typedef enum {
-        AUDIT_NONE = 0,
+        AUDIT_UNKNOWN = 0,
         AUDIT_CREATE,
         AUDIT_LINK,
         AUDIT_UNLINK,
@@ -51,9 +51,11 @@ typedef enum {
         AUDIT_MAX,
 } audit_op;
 
-#define AUDIT_FAIL AUDIT_MAX
-#define AUDIT_DIR  (AUDIT_MAX + 1)
-#define AUDIT_FS   (AUDIT_MAX + 2)
+#define AUDIT_FAIL  AUDIT_MAX
+#define AUDIT_DIR   (AUDIT_MAX + 1)
+#define AUDIT_FS    (AUDIT_MAX + 2)
+#define AUDIT_SYNC  (AUDIT_MAX + 3)
+#define AUDIT_NULL  (AUDIT_MAX + 4)
 
 #define AUD_BIT(a) (1 << a)
 
@@ -91,6 +93,7 @@ struct audit_name_record {
 
 struct audit_info {
         struct audit_msg m;
+        struct inode * child;
         char * name;
         __u32 namelen;
 };