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=8654
[fs/lustre-release.git]
/
lustre
/
smfs
/
audit.c
diff --git
a/lustre/smfs/audit.c
b/lustre/smfs/audit.c
index
73a6c35
..
ed70b73
100644
(file)
--- a/
lustre/smfs/audit.c
+++ b/
lustre/smfs/audit.c
@@
-367,7
+367,8
@@
static int smfs_audit_post_op(hook_op code, struct inode * inode, void * msg,
if (rc != 0) {
CERROR("Error adding audit record: %d\n", rc);
rc= -EINVAL;
- } else {
+ /* delay notify for create op */
+ } else if (!(code == HOOK_CREATE && ret == 0)) {
audit_notify(priv->audit_ctxt->loc_handle, priv->au_id2name);
}