summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-03 19:19:36 +0000
committerphk <phk@FreeBSD.org>2003-04-03 19:19:36 +0000
commitcbe207a30e425a431f1d8f771ce9d018271ca5e0 (patch)
treee071f5b74738f1646ef25a42e7161bcaad74c816 /sys/geom/geom_io.c
parentaba0028d272a9879e0f7722eba21b6473412d294 (diff)
downloadFreeBSD-src-cbe207a30e425a431f1d8f771ce9d018271ca5e0.zip
FreeBSD-src-cbe207a30e425a431f1d8f771ce9d018271ca5e0.tar.gz
Remove all references to BIO_SETATTR. We will not be using it.
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index 488d409..5217733 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -172,26 +172,6 @@ g_io_init()
}
int
-g_io_setattr(const char *attr, struct g_consumer *cp, int len, void *ptr)
-{
- struct bio *bp;
- int error;
-
- g_trace(G_T_BIO, "bio_setattr(%s)", attr);
- bp = g_new_bio();
- bp->bio_cmd = BIO_SETATTR;
- bp->bio_done = NULL;
- bp->bio_attribute = attr;
- bp->bio_length = len;
- bp->bio_data = ptr;
- g_io_request(bp, cp);
- error = biowait(bp, "gsetattr");
- g_destroy_bio(bp);
- return (error);
-}
-
-
-int
g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr)
{
struct bio *bp;
@@ -229,7 +209,6 @@ g_io_check(struct bio *bp)
break;
case BIO_WRITE:
case BIO_DELETE:
- case BIO_SETATTR:
if (cp->acw == 0)
return (EPERM);
break;
OpenPOWER on IntegriCloud