diff options
author | phk <phk@FreeBSD.org> | 2003-02-11 12:36:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-11 12:36:33 +0000 |
commit | 18e25b25dbf7f4400660d2bf11d03d78dfca8794 (patch) | |
tree | 08445d4e061de9be1bbe14eb8cbb760316516d79 /sys/geom/geom_slice.c | |
parent | 6fa71cfe58aadc6bd4daa240f286f6b2313dcbc0 (diff) | |
download | FreeBSD-src-18e25b25dbf7f4400660d2bf11d03d78dfca8794.zip FreeBSD-src-18e25b25dbf7f4400660d2bf11d03d78dfca8794.tar.gz |
Propagate G_PF_CANDELETE to our own providers from the provider we attach to.
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r-- | sys/geom/geom_slice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index e5aaf0f..e0632b3 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, |