svn commit: r223602 - stable/8/sys/geom/gate
Mikolaj Golub
trociny at FreeBSD.org
Mon Jun 27 18:56:44 UTC 2011
Author: trociny
Date: Mon Jun 27 18:56:43 2011
New Revision: 223602
URL: http://svn.freebsd.org/changeset/base/223602
Log:
MFC r222225 (pjd):
Recognize BIO_FLUSH requests and pass them to userland.
Approved by: pjd (mentor)
Modified:
stable/8/sys/geom/gate/g_gate.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/geom/gate/g_gate.c
==============================================================================
--- stable/8/sys/geom/gate/g_gate.c Mon Jun 27 18:19:54 2011 (r223601)
+++ stable/8/sys/geom/gate/g_gate.c Mon Jun 27 18:56:43 2011 (r223602)
@@ -178,6 +178,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);
@@ -578,6 +579,7 @@ g_gate_ioctl(struct cdev *dev, u_long cm
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,
@@ -641,6 +643,7 @@ start_end:
break;
case BIO_DELETE:
case BIO_WRITE:
+ case BIO_FLUSH:
break;
}
}
More information about the svn-src-stable
mailing list