Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
b=7214
[fs/lustre-release.git]
/
lustre
/
smfs
/
audit_mds.c
diff --git
a/lustre/smfs/audit_mds.c
b/lustre/smfs/audit_mds.c
index
4691cea
..
20a14ae
100644
(file)
--- a/
lustre/smfs/audit_mds.c
+++ b/
lustre/smfs/audit_mds.c
@@
-231,6
+231,11
@@
int audit_mds_special_rec(struct inode * inode, void * arg,
rec->gid = msg->gid;
rec->nid = msg->nid;
+ /* check id is valid */
+ LASSERT(id_ino(&msg->id));
+ LASSERT(id_fid(&msg->id));
+ LASSERT(id_type(&msg->id) & S_IFMT);
+
len += audit_rec_from_id(&pbuf, &msg->id);
switch (rec->opcode)
{