summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-03-26 05:58:49 +0000
committermav <mav@FreeBSD.org>2013-03-26 05:58:49 +0000
commit9856e081034a138d1d8fbba263279e25e63a0770 (patch)
tree3c26634ab46f2384cbfb9dee692a42182bb1d71c
parent7997002b4f25acca523ed49b4579f479e8da0c77 (diff)
downloadFreeBSD-src-9856e081034a138d1d8fbba263279e25e63a0770.zip
FreeBSD-src-9856e081034a138d1d8fbba263279e25e63a0770.tar.gz
GEOM NOP does not touch the data, so pass G_PF_ACCEPT_UNMAPPED flag through.
-rw-r--r--sys/geom/nop/g_nop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/nop/g_nop.c b/sys/geom/nop/g_nop.c
index 2a28038..7378266 100644
--- a/sys/geom/nop/g_nop.c
+++ b/sys/geom/nop/g_nop.c
@@ -242,6 +242,7 @@ g_nop_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp,
goto fail;
}
+ newpp->flags |= pp->flags & G_PF_ACCEPT_UNMAPPED;
g_error_provider(newpp, 0);
G_NOP_DEBUG(0, "Device %s created.", gp->name);
return (0);
OpenPOWER on IntegriCloud