24
24
* Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
25
25
* Copyright (c) 2013, Joyent, Inc. All rights reserved.
26
26
* Copyright (c) 2014 Spectra Logic Corporation, All rights reserved.
27
+ * Copyright (c) 2015 Nexenta Systems, Inc. All rights reserved.
27
28
* Copyright (c) 2015, STRATO AG, Inc. All rights reserved.
28
29
*/
29
30
@@ -949,11 +950,7 @@ dmu_objset_clone_check(void *arg, dmu_tx_t *tx)
949
950
dsl_dir_rele (pdd , FTAG );
950
951
return (SET_ERROR (EEXIST ));
951
952
}
952
- /* You can't clone across pools. */
953
- if (pdd -> dd_pool != dp ) {
954
- dsl_dir_rele (pdd , FTAG );
955
- return (SET_ERROR (EXDEV ));
956
- }
953
+
957
954
error = dsl_fs_ss_limit_check (pdd , 1 , ZFS_PROP_FILESYSTEM_LIMIT , NULL ,
958
955
doca -> doca_cred );
959
956
if (error != 0 ) {
@@ -966,12 +963,6 @@ dmu_objset_clone_check(void *arg, dmu_tx_t *tx)
966
963
if (error != 0 )
967
964
return (error );
968
965
969
- /* You can't clone across pools. */
970
- if (origin -> ds_dir -> dd_pool != dp ) {
971
- dsl_dataset_rele (origin , FTAG );
972
- return (SET_ERROR (EXDEV ));
973
- }
974
-
975
966
/* You can only clone snapshots, not the head datasets. */
976
967
if (!origin -> ds_is_snapshot ) {
977
968
dsl_dataset_rele (origin , FTAG );
0 commit comments