svn commit: r282759 - stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Andriy Gapon avg at FreeBSD.org
Mon May 11 08:43:38 UTC 2015


Author: avg
Date: Mon May 11 08:43:37 2015
New Revision: 282759
URL: https://svnweb.freebsd.org/changeset/base/282759

Log:
  MFC r282127: dsl_dir_rename_check: return EXDEV on cross-pool rename attempt

Modified:
  stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)

Modified: stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c	Mon May 11 08:43:20 2015	(r282758)
+++ stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c	Mon May 11 08:43:37 2015	(r282759)
@@ -1698,7 +1698,7 @@ dsl_dir_rename_check(void *arg, dmu_tx_t
 	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 */


More information about the svn-src-stable-9 mailing list