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:
parent
293d1ac7ce
commit
65773effb9
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user