diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-03 19:19:36 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-03 19:19:36 +0000 |
commit | 4eba52a2d2a4e1fe18eff0c590f9f7e24f73d382 (patch) | |
tree | e071f5b74738f1646ef25a42e7161bcaad74c816 /sys/geom/geom_io.c | |
parent | ab0ff32ea16b95ff92421285d78ce82831134751 (diff) | |
download | src-4eba52a2d2a4e1fe18eff0c590f9f7e24f73d382.tar.gz src-4eba52a2d2a4e1fe18eff0c590f9f7e24f73d382.zip |
Remove all references to BIO_SETATTR. We will not be using it.
Notes
Notes:
svn path=/head/; revision=113032
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r-- | sys/geom/geom_io.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index 488d409f675e..52177336c24f 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; |