Skip to content
Snippets Groups Projects
Commit 8abee591 authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch b1_6

b=16871
i=mikhail.pershin (tappro)
i=johann

Correct set created to clear name and inode when operation fails with EFAULT.
parent cc9a100c
No related branches found
No related tags found
No related merge requests found
......@@ -1115,6 +1115,7 @@ int mds_open(struct mds_update_record *rec, int offset,
GOTO(cleanup, rc);
}
inode = dchild->d_inode;
created = 1;
if (ino) {
if (ino != inode->i_ino)
GOTO(cleanup, rc = -EFAULT);
......@@ -1124,7 +1125,6 @@ int mds_open(struct mds_update_record *rec, int offset,
inode->i_ino, inode->i_generation);
}
created = 1;
LTIME_S(iattr.ia_atime) = rec->ur_time;
LTIME_S(iattr.ia_ctime) = rec->ur_time;
LTIME_S(iattr.ia_mtime) = rec->ur_time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment