1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

dsl_dir_rename_check: return EXDEV on cross-pool rename attempt

Obtained from:	zfsonlinux/zfs@9063f65476
Obtained from:	Boris Protopopov <boris.protopopov@actifio.com>
MFC after:	10 days
This commit is contained in:
Andriy Gapon 2015-04-28 08:04:16 +00:00
parent 99d058c8a7
commit 37a9b4136e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282127

View File

@ -1707,7 +1707,7 @@ dsl_dir_rename_check(void *arg, dmu_tx_t *tx)
if (dd->dd_pool != newparent->dd_pool) {
dsl_dir_rele(newparent, FTAG);
dsl_dir_rele(dd, FTAG);
return (SET_ERROR(ENXIO));
return (SET_ERROR(EXDEV));
}
/* new name should not already exist */