Date: Mon, 23 May 2011 21:00:38 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r222225 - head/sys/geom/gate Message-ID: <201105232100.p4NL0cTp037574@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Mon May 23 21:00:37 2011 New Revision: 222225 URL: http://svn.freebsd.org/changeset/base/222225 Log: Recognize BIO_FLUSH requests and pass them to userland. MFC after: 1 week Modified: head/sys/geom/gate/g_gate.c Modified: head/sys/geom/gate/g_gate.c ============================================================================== --- head/sys/geom/gate/g_gate.c Mon May 23 20:59:50 2011 (r222224) +++ head/sys/geom/gate/g_gate.c Mon May 23 21:00:37 2011 (r222225) @@ -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 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, @@ -643,6 +645,7 @@ start_end: break; case BIO_DELETE: case BIO_WRITE: + case BIO_FLUSH: break; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105232100.p4NL0cTp037574>