From 7a676656eb8d3ede3fb207ffcb6c74a8c55658c2 Mon Sep 17 00:00:00 2001 From: huanghua Date: Mon, 7 Aug 2006 12:09:24 +0000 Subject: [PATCH] unpack some necessary field for open request --- lustre/mdt/mdt_lib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/mdt/mdt_lib.c b/lustre/mdt/mdt_lib.c index 0106db1..5b635e4 100644 --- a/lustre/mdt/mdt_lib.c +++ b/lustre/mdt/mdt_lib.c @@ -191,6 +191,8 @@ static int mdt_create_unpack(struct mdt_thread_info *info) attr->la_flags = rec->cr_flags; attr->la_ctime = rec->cr_time; attr->la_mtime = rec->cr_time; + attr->la_atime = rec->cr_time; + rr->rr_name = req_capsule_client_get(pill, &RMF_NAME); if (rr->rr_name) { if (req_capsule_field_present(pill, &RMF_SYMTGT)) { @@ -303,6 +305,12 @@ static int mdt_open_unpack(struct mdt_thread_info *info) rr->rr_fid2 = &rec->cr_fid2; attr->la_mode = rec->cr_mode; attr->la_flags = rec->cr_flags; + attr->la_rdev = rec->cr_rdev; + attr->la_uid = rec->cr_fsuid; + attr->la_gid = rec->cr_fsgid; + attr->la_ctime = rec->cr_time; + attr->la_mtime = rec->cr_time; + attr->la_atime = rec->cr_time; rr->rr_name = req_capsule_client_get(pill, &RMF_NAME); if (rr->rr_name == NULL) -- 1.8.3.1