From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 21 09:50:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 44037543 for ; Mon, 21 Jan 2013 09:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 33527B2B for ; Mon, 21 Jan 2013 09:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0L9o18n037664 for ; Mon, 21 Jan 2013 09:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0L9o1qt037659; Mon, 21 Jan 2013 09:50:01 GMT (envelope-from gnats) Date: Mon, 21 Jan 2013 09:50:01 GMT Message-Id: <201301210950.r0L9o1qt037659@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: kern/175323: Fail to use ZVOL as a gmirror component X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2013 09:50:01 -0000 The following reply was made to PR kern/175323; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, softkot@gmail.com Cc: freebsd-geom@FreeBSD.org Subject: Re: kern/175323: Fail to use ZVOL as a gmirror component Date: Mon, 21 Jan 2013 11:47:05 +0200 This > GEOM_MIRROR: Cannot add disk zvol/tank0/vol0 to mirror0 (error=45). seems to be triggered by the following code in sys/geom/mirror/g_mirror.c: error = g_getattr("GEOM::candelete", disk->d_consumer, &i); if (error != 0) goto fail; plus the fact that ZFS zvol does the following: case BIO_GETATTR: case BIO_DELETE: default: g_io_deliver(bp, EOPNOTSUPP); break; Perhaps, the gmirror code should be more flexible with respect to EOPNOTSUPP from g_getattr? -- Andriy Gapon