diff options
author | phk <phk@FreeBSD.org> | 2003-04-03 19:19:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-03 19:19:36 +0000 |
commit | cbe207a30e425a431f1d8f771ce9d018271ca5e0 (patch) | |
tree | e071f5b74738f1646ef25a42e7161bcaad74c816 | |
parent | aba0028d272a9879e0f7722eba21b6473412d294 (diff) | |
download | FreeBSD-src-cbe207a30e425a431f1d8f771ce9d018271ca5e0.zip FreeBSD-src-cbe207a30e425a431f1d8f771ce9d018271ca5e0.tar.gz |
Remove all references to BIO_SETATTR. We will not be using it.
-rw-r--r-- | sys/dev/md/md.c | 1 | ||||
-rw-r--r-- | sys/geom/bde/g_bde.c | 1 | ||||
-rw-r--r-- | sys/geom/geom.h | 1 | ||||
-rw-r--r-- | sys/geom/geom_aes.c | 1 | ||||
-rw-r--r-- | sys/geom/geom_bsd.c | 2 | ||||
-rw-r--r-- | sys/geom/geom_disk.c | 3 | ||||
-rw-r--r-- | sys/geom/geom_io.c | 21 | ||||
-rw-r--r-- | sys/geom/geom_slice.c | 1 |
8 files changed, 0 insertions, 31 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 958fc98..5b62659 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -368,7 +368,6 @@ g_md_start(struct bio *bp) switch(bp->bio_cmd) { case BIO_GETATTR: - case BIO_SETATTR: g_io_deliver(bp, EOPNOTSUPP); return; } diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c index 4d27d80..4ecdb89 100644 --- a/sys/geom/bde/g_bde.c +++ b/sys/geom/bde/g_bde.c @@ -65,7 +65,6 @@ g_bde_start(struct bio *bp) g_bde_start1(bp); break; case BIO_GETATTR: - case BIO_SETATTR: g_io_deliver(bp, EOPNOTSUPP); break; default: diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 2afa103..9850855 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -261,7 +261,6 @@ void g_destroy_bio(struct bio *); void g_io_deliver(struct bio *bp, int error); int g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr); void g_io_request(struct bio *bp, struct g_consumer *cp); -int g_io_setattr(const char *attr, struct g_consumer *cp, int len, void *ptr); struct bio *g_new_bio(void); void * g_read_data(struct g_consumer *cp, off_t offset, off_t length, int *error); int g_write_data(struct g_consumer *cp, off_t offset, void *ptr, off_t length); diff --git a/sys/geom/geom_aes.c b/sys/geom/geom_aes.c index 4814835..6862e98 100644 --- a/sys/geom/geom_aes.c +++ b/sys/geom/geom_aes.c @@ -228,7 +228,6 @@ g_aes_start(struct bio *bp) g_io_request(bp2, cp); break; case BIO_GETATTR: - case BIO_SETATTR: bp2 = g_clone_bio(bp); if (bp2 == NULL) { g_io_deliver(bp, ENOMEM); diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 7565366..3dccb88 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -694,8 +694,6 @@ g_bsd_start(struct bio *bp) sizeof(ms->labelsum))) return (1); break; - case BIO_SETATTR: - break; default: KASSERT(0 == 1, ("Unknown bio_cmd in g_bsd_start (%d)", bp->bio_cmd)); diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 9b0d97e..a5d2109 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -262,9 +262,6 @@ g_disk_start(struct bio *bp) } else error = ENOIOCTL; break; - case BIO_SETATTR: - error = ENOIOCTL; - break; default: error = EOPNOTSUPP; break; 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; diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index 53055a7..73c5417 100644 --- a/sys/geom/geom_slice.c +++ b/sys/geom/geom_slice.c @@ -217,7 +217,6 @@ g_slice_start(struct bio *bp) g_io_request(bp2, cp); return; case BIO_GETATTR: - case BIO_SETATTR: /* Give the real method a chance to override */ if (gsp->start(bp)) return; |