Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2013 12:50:00 GMT
From:      =?UTF-8?B?0JDQu9C10LrRgdC10Lkg0JLQvtC70LrQvtCy?= <softkot@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/175323: Fail to use ZVOL as a gmirror component
Message-ID:  <201301211250.r0LCo0kB083635@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: =?UTF-8?B?0JDQu9C10LrRgdC10Lkg0JLQvtC70LrQvtCy?= <softkot@gmail.com>
To: Andriy Gapon <avg@freebsd.org>
Cc: bug-followup@freebsd.org, freebsd-geom@freebsd.org
Subject: Re: kern/175323: Fail to use ZVOL as a gmirror component
Date: Mon, 21 Jan 2013 16:39:57 +0400

 Eventually this patch works for me just fine.
 
 --- sys/geom/mirror/g_mirror.c    (revision 245741)
 +++ sys/geom/mirror/g_mirror.c    (working copy)
 @@ -456,7 +456,7 @@
      disk->d_flags = md->md_dflags;
      error = g_getattr("GEOM::candelete", disk->d_consumer, &i);
      if (error != 0)
 -        goto fail;
 +        i=0;
      if (i)
          disk->d_flags |= G_MIRROR_DISK_FLAG_CANDELETE;
      if (md->md_provider[0] != '\0')



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