summaryrefslogtreecommitdiffstats
path: root/sys/geom/bde
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-26 21:39:33 +0000
committerphk <phk@FreeBSD.org>2003-04-26 21:39:33 +0000
commitda80cf8fcc6d4bfffb81099844ce2b2e58dd2cd6 (patch)
tree3996d7f6da30b55c767c94c09e744c863369ad8d /sys/geom/bde
parent9f864f962e6456a803eda5de9c2a5c451f36edc9 (diff)
downloadFreeBSD-src-da80cf8fcc6d4bfffb81099844ce2b2e58dd2cd6.zip
FreeBSD-src-da80cf8fcc6d4bfffb81099844ce2b2e58dd2cd6.tar.gz
Appearantly UFS no longer issues BIO_DELETE requests correctly, and
consequently trashes data. Disable BIO_DELETE handling in gbde for now.
Diffstat (limited to 'sys/geom/bde')
-rw-r--r--sys/geom/bde/g_bde.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c
index 4ecdb89..f9a8bc8 100644
--- a/sys/geom/bde/g_bde.c
+++ b/sys/geom/bde/g_bde.c
@@ -209,7 +209,14 @@ g_bde_create_geom(struct gctl_req *req, struct g_class *mp, struct g_provider *p
mtx_unlock(&Giant);
g_topology_lock();
pp = g_new_providerf(gp, gp->name);
+#if 0
+ /*
+ * XXX: Disable this for now. Appearantly UFS no longer
+ * XXX: issues BIO_DELETE requests correctly, with the obvious
+ * XXX: outcome that userdata is trashed.
+ */
pp->flags |= G_PF_CANDELETE;
+#endif
pp->stripesize = kp->zone_cont;
pp->stripeoffset = 0;
pp->mediasize = sc->mediasize;
OpenPOWER on IntegriCloud