summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-05-23 23:58:02 +0000
committerattilio <attilio@FreeBSD.org>2011-05-23 23:58:02 +0000
commit9879530ca1401176b647cf90fcd0e4ccf4f8869e (patch)
tree24d1df546b8431171acdf983e8c3b596f58be4df /sys/geom
parent2bb57ae0161679cd71be261a7cd885ba449094ec (diff)
downloadFreeBSD-src-9879530ca1401176b647cf90fcd0e4ccf4f8869e.zip
FreeBSD-src-9879530ca1401176b647cf90fcd0e4ccf4f8869e.tar.gz
MFC
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/gate/g_gate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c
index 9b4d782..22338a5 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -180,6 +180,7 @@ g_gate_start(struct bio *bp)
break;
case BIO_DELETE:
case BIO_WRITE:
+ case BIO_FLUSH:
/* XXX: Hack to allow read-only mounts. */
if ((sc->sc_flags & G_GATE_FLAG_READONLY) != 0) {
g_io_deliver(bp, EPERM);
@@ -580,6 +581,7 @@ g_gate_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct threa
switch (bp->bio_cmd) {
case BIO_READ:
case BIO_DELETE:
+ case BIO_FLUSH:
break;
case BIO_WRITE:
error = copyout(bp->bio_data, ggio->gctl_data,
@@ -643,6 +645,7 @@ start_end:
break;
case BIO_DELETE:
case BIO_WRITE:
+ case BIO_FLUSH:
break;
}
}
OpenPOWER on IntegriCloud