Messages in this thread Patch in this message | | | From | Peng Tao <> | Subject | [PATCH 19/26] staging/lustre/mdt: return EXDEV for cross-MDT rename | Date | Fri, 15 Nov 2013 00:43:06 +0800 |
| |
From: wang di <di.wang@intel.com>
If target does not exist, and source directory is remote directory, it should return -EXDEV.
Add test in test_24x to verify it.
Create local directory for test_214, since cross-MDT rename is not allowed yet.
Lustre-change: http://review.whamcloud.com/7579 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3894 Signed-off-by: wang di <di.wang@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> [picked only client side of change -- Peng Tao] Signed-off-by: Peng Tao <bergwolf@gmail.com> Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> --- drivers/staging/lustre/lustre/include/lustre_fid.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/staging/lustre/lustre/include/lustre_fid.h b/drivers/staging/lustre/lustre/include/lustre_fid.h index 84a897e..c33db9e 100644 --- a/drivers/staging/lustre/lustre/include/lustre_fid.h +++ b/drivers/staging/lustre/lustre/include/lustre_fid.h @@ -289,6 +289,11 @@ static inline int fid_is_quota(const struct lu_fid *fid) fid_seq(fid) == FID_SEQ_QUOTA_GLB; } +static inline int fid_is_name_llog(const struct lu_fid *fid) +{ + return fid_seq(fid) == FID_SEQ_LLOG_NAME; +} + static inline int fid_is_namespace_visible(const struct lu_fid *fid) { const __u64 seq = fid_seq(fid); -- 1.7.9.5
| |