Whamcloud - gitweb
b=8654
authortappro <tappro>
Sun, 11 Sep 2005 00:37:46 +0000 (00:37 +0000)
committertappro <tappro>
Sun, 11 Sep 2005 00:37:46 +0000 (00:37 +0000)
r=alex
- get mds num from obd for just created file/directory to store
  correct value in audit log

lustre/smfs/audit_mds.c

index dd0cf37..3406e00 100644 (file)
@@ -57,6 +57,9 @@ static inline int audit_fill_id_rec (char **pbuf, struct inode * inode)
         if (rc > 0) {
                 rec->au_fid = fid.lf_id;
                 rec->au_mds = fid.lf_group;
+        } else {
+                //try to add group at least
+                rec->au_mds = S2SMI(inode->i_sb)->smsi_exp->exp_obd->u.mds.mds_num;
         }
         
         *pbuf += len;