From: tappro Date: Thu, 18 Aug 2005 22:51:20 +0000 (+0000) Subject: b=7360 X-Git-Tag: 1.4.10~691 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=6a91e4ce1ea03c36dfbe32af72d41d0847fac31d;p=fs%2Flustre-release.git b=7360 - wrong lustre_id was used in audit logging. --- 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); }