From bb7edd6e82254c319fa85a9161d2d55cf966420f Mon Sep 17 00:00:00 2001
From: tappro <tappro>
Date: Sun, 11 Sep 2005 00:34:26 +0000
Subject: [PATCH] b=8654 r=alex - add audit flag on UNNAMED dir to enable audit
 inheritance on newly created objects

---
 lustre/smfs/smfs_lib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lustre/smfs/smfs_lib.c b/lustre/smfs/smfs_lib.c
index 80837458ff..17cbc0dc41 100644
--- a/lustre/smfs/smfs_lib.c
+++ b/lustre/smfs/smfs_lib.c
@@ -192,6 +192,7 @@ static void smfs_mds_flags(struct mds_obd *mds, struct inode *root)
         
         /* enable plugins for all in ROOT */        
         SMFS_SET(I2SMI(root)->smi_flags, SMFS_PLG_ALL);
+        SMFS_SET(I2SMI(mds->mds_unnamed_dir->d_inode)->smi_flags, SMFS_PLG_ALL);
 }
 
 extern int (*audit_id2name_superhack) (struct obd_device *obd, char **name,
-- 
GitLab