From 6a91e4ce1ea03c36dfbe32af72d41d0847fac31d Mon Sep 17 00:00:00 2001 From: tappro Date: Thu, 18 Aug 2005 22:51:20 +0000 Subject: [PATCH] b=7360 - wrong lustre_id was used in audit logging. --- lustre/mds/mds_open.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 7b435b6..60d7477 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -1454,13 +1454,15 @@ cleanup_no_trans: struct lustre_id au_id; struct inode * au_inode = dchild->d_inode; - if (au_inode == NULL) + if (au_inode == NULL) { au_inode = dparent->d_inode; - - if (fid) - mds_inode2id(obd, &au_id, au_inode, fid); - else au_id = *(rec->ur_id1); + } else { + if (fid == 0) + mds_read_inode_sid(obd, au_inode, &au_id); + else + mds_inode2id(obd, &au_id, au_inode, fid); + } mds_audit_open(req, &au_id, au_inode, rec->ur_name, rec->ur_namelen, rc); } -- 1.8.3.1