DNE2 MDS should return -EXDEV upon remote rename, so that old
client can do rename with copy and delete, instead of fail
with -EREMOTE.
Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I68e8e99259065922f31bee5343be309380715674
Reviewed-on: http://review.whamcloud.com/15323
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
rc = md_rename(target_exp, op_data, old, oldlen, new, newlen,
request);
- if (rc != 0 && rc != -EREMOTE)
+ if (rc != 0 && rc != -EXDEV)
RETURN(rc);
body = req_capsule_server_get(&(*request)->rq_pill, &RMF_MDT_BODY);
LASSERT(repbody != NULL);
repbody->mbo_fid1 = *new_fid;
repbody->mbo_valid |= (OBD_MD_FLID | OBD_MD_MDS);
- GOTO(out_put_old, rc = -EREMOTE);
+ GOTO(out_put_old, rc = -EXDEV);
}
/* Before locking the target dir, check we do not replace
* a dir with a non-dir, otherwise it may deadlock with