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 | |
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')
-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 |
7 files changed, 0 insertions, 30 deletions
diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c index 4d27d805816a..4ecdb895c641 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 2afa1030aca6..9850855f9b41 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 481483577e4e..6862e989dbc5 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 7565366c6d4c..3dccb88c2284 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 9b0d97e2bb59..a5d2109aafbc 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 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; diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index 53055a7abfc5..73c54172b202 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; |