From cbe207a30e425a431f1d8f771ce9d018271ca5e0 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 3 Apr 2003 19:19:36 +0000 Subject: Remove all references to BIO_SETATTR. We will not be using it. --- sys/geom/geom_io.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'sys/geom/geom_io.c') 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; -- cgit v1.1