Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb7edd6
)
b=8654
author
tappro
<tappro>
Sun, 11 Sep 2005 00:37:46 +0000
(
00:37
+0000)
committer
tappro
<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
patch
|
blob
|
history
diff --git
a/lustre/smfs/audit_mds.c
b/lustre/smfs/audit_mds.c
index
dd0cf37
..
3406e00
100644
(file)
--- a/
lustre/smfs/audit_mds.c
+++ b/
lustre/smfs/audit_mds.c
@@
-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;