Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Apr 2016 09:47:39 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r297546 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201604040947.u349ldbc006190@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Apr  4 09:47:39 2016
New Revision: 297546
URL: https://svnweb.freebsd.org/changeset/base/297546

Log:
  MFC r297232: Unify ignoring EEXIST from zvol_create_minor().
  
  This fixes creation of zvol devices for snapshots during zfs receive,
  that previously failed with "ZFS WARNING: Unable to create ZVOL" message.
  This solution is not perfect, but IMHO better then it was before.

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

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c	Mon Apr  4 09:41:22 2016	(r297545)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c	Mon Apr  4 09:47:39 2016	(r297546)
@@ -2841,7 +2841,8 @@ zvol_create_snapshots(objset_t *os, cons
 			break;
 		}
 
-		if ((error = zvol_create_minor(sname)) != 0) {
+		error = zvol_create_minor(sname);
+		if (error != 0 && error != EEXIST) {
 			printf("ZFS WARNING: Unable to create ZVOL %s (error=%d).\n",
 			    sname, error);
 			break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604040947.u349ldbc006190>