Whamcloud - gitweb
LU-3534 osp: move RPC pack from declare to execution phase
[fs/lustre-release.git] / lustre / lod / lod_object.c
index ad146e6..b6c9a4f 100644 (file)
@@ -2732,6 +2732,14 @@ static int lod_xattr_set(const struct lu_env *env,
 
                        rc = lod_sub_object_xattr_set(env, next, buf, name,
                                                      fl, th);
+               } else if (dt_object_remote(dt)) {
+                       /* This only happens during migration, see
+                        * mdd_migrate_create(), in which Master MDT will
+                        * create a remote target object, and only set
+                        * (migrating) stripe EA on the remote object,
+                        * and does not need creating each stripes. */
+                       rc = lod_sub_object_xattr_set(env, next, buf, name,
+                                                     fl, th);
                } else {
                        rc = lod_striping_create(env, dt, NULL, NULL, th);
                }