Whamcloud - gitweb
unpack some necessary field for open request
authorhuanghua <huanghua>
Mon, 7 Aug 2006 12:09:24 +0000 (12:09 +0000)
committerhuanghua <huanghua>
Mon, 7 Aug 2006 12:09:24 +0000 (12:09 +0000)
lustre/mdt/mdt_lib.c

index 0106db1..5b635e4 100644 (file)
@@ -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)