aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-02-11 12:36:33 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-02-11 12:36:33 +0000
commitfaa7b8b96ec6a76fab93e406e97968ccebc9affd (patch)
tree08445d4e061de9be1bbe14eb8cbb760316516d79 /sys
parentb3b3d1b7fed57988515ef7b2ae133982d6c5714b (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_slice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index e5aaf0f5fa5f..e0632b3cf588 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -346,6 +346,8 @@ g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length
sbuf_vprintf(sb, fmt, ap);
sbuf_finish(sb);
pp = g_new_providerf(gp, sbuf_data(sb));
+ pp->flags =
+ LIST_FIRST(&gp->consumer)->provider->flags & G_PF_CANDELETE;
if (bootverbose)
printf("GEOM: Configure %s, start %jd length %jd end %jd\n",
pp->name, (intmax_t)offset, (intmax_t)length,