summaryrefslogtreecommitdiffstats
path: root/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-05-11 08:40:55 +0000
committeravg <avg@FreeBSD.org>2015-05-11 08:40:55 +0000
commit75d7ef7863593a29b723c9dba8c59ca03462b86f (patch)
tree6d2112c3e52a40a00f9f7d21457411227ee7e59e /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
parent0b01455958dd7fb287d94448b369f4b3d6945533 (diff)
downloadFreeBSD-src-75d7ef7863593a29b723c9dba8c59ca03462b86f.zip
FreeBSD-src-75d7ef7863593a29b723c9dba8c59ca03462b86f.tar.gz
MFC r282126: FV r282123: 5610 zfs clone from different source and target pools
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
index 1862f8c..1ecaeeb 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
@@ -24,6 +24,7 @@
* All rights reserved.
* Copyright (c) 2012, 2014 by Delphix. All rights reserved.
* Copyright (c) 2014 Joyent, Inc. All rights reserved.
+ * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
#include <sys/dmu.h>
@@ -408,7 +409,7 @@ dsl_dir_hold(dsl_pool_t *dp, const char *name, void *tag,
/* Make sure the name is in the specified pool. */
spaname = spa_name(dp->dp_spa);
if (strcmp(buf, spaname) != 0)
- return (SET_ERROR(EINVAL));
+ return (SET_ERROR(EXDEV));
ASSERT(dsl_pool_config_held(dp));
OpenPOWER on IntegriCloud