From: tappro Date: Thu, 15 Sep 2005 10:29:27 +0000 (+0000) Subject: b=8654 X-Git-Tag: v1_7_100~694 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=577578cf3aa81d5ad46702384d4fc4dfe4d82520 b=8654 turn on stat auditing on client for testing purpose --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index c993a2e..1d3c764 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -1860,10 +1860,10 @@ int ll_inode_revalidate_it(struct dentry *dentry) ll_lookup_finish_locks(&oit, dentry); - /* + if (!req && (oit.it_op & IT_GETATTR)) ll_audit_log(inode, AUDIT_STAT, 0); - */ + if (!LLI_HAVE_FLSIZE(inode)) { /* if object not yet allocated, don't validate size */ lsm = lli->lli_smd; diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 1431105..886c4a8 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -409,10 +409,10 @@ static struct dentry *ll_lookup_it(struct inode *parent, struct dentry *dentry, } ll_lookup_finish_locks(it, dentry); - /* + if (!req && (it->it_op & IT_GETATTR) && dentry->d_inode) ll_audit_log(dentry->d_inode, AUDIT_STAT, 0); - */ + if (nd && dentry->d_inode != NULL && dentry->d_inode->i_mode & S_ISUID && S_ISDIR(dentry->d_inode->i_mode) && ((gns_flags & LOOKUP_CONTINUE) || (gns_it & (IT_CHDIR | IT_OPEN))))