Date: Mon, 21 Jan 2013 09:50:01 GMT From: Andriy Gapon <avg@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/175323: Fail to use ZVOL as a gmirror component Message-ID: <201301210950.r0L9o1qt037659@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/175323; it has been noted by GNATS. From: Andriy Gapon <avg@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301210950.r0L9o1qt037659>