Remove all references to BIO_SETATTR. We will not be using it.

This commit is contained in:
Poul-Henning Kamp 2003-04-03 19:19:36 +00:00
parent ab0ff32ea1
commit 4eba52a2d2
8 changed files with 0 additions and 31 deletions

View File

@ -368,7 +368,6 @@ g_md_start(struct bio *bp)
switch(bp->bio_cmd) { switch(bp->bio_cmd) {
case BIO_GETATTR: case BIO_GETATTR:
case BIO_SETATTR:
g_io_deliver(bp, EOPNOTSUPP); g_io_deliver(bp, EOPNOTSUPP);
return; return;
} }

View File

@ -65,7 +65,6 @@ g_bde_start(struct bio *bp)
g_bde_start1(bp); g_bde_start1(bp);
break; break;
case BIO_GETATTR: case BIO_GETATTR:
case BIO_SETATTR:
g_io_deliver(bp, EOPNOTSUPP); g_io_deliver(bp, EOPNOTSUPP);
break; break;
default: default:

View File

@ -261,7 +261,6 @@ void g_destroy_bio(struct bio *);
void g_io_deliver(struct bio *bp, int error); void g_io_deliver(struct bio *bp, int error);
int g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr); 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); 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); struct bio *g_new_bio(void);
void * g_read_data(struct g_consumer *cp, off_t offset, off_t length, int *error); 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); int g_write_data(struct g_consumer *cp, off_t offset, void *ptr, off_t length);

View File

@ -228,7 +228,6 @@ g_aes_start(struct bio *bp)
g_io_request(bp2, cp); g_io_request(bp2, cp);
break; break;
case BIO_GETATTR: case BIO_GETATTR:
case BIO_SETATTR:
bp2 = g_clone_bio(bp); bp2 = g_clone_bio(bp);
if (bp2 == NULL) { if (bp2 == NULL) {
g_io_deliver(bp, ENOMEM); g_io_deliver(bp, ENOMEM);

View File

@ -694,8 +694,6 @@ g_bsd_start(struct bio *bp)
sizeof(ms->labelsum))) sizeof(ms->labelsum)))
return (1); return (1);
break; break;
case BIO_SETATTR:
break;
default: default:
KASSERT(0 == 1, ("Unknown bio_cmd in g_bsd_start (%d)", KASSERT(0 == 1, ("Unknown bio_cmd in g_bsd_start (%d)",
bp->bio_cmd)); bp->bio_cmd));

View File

@ -262,9 +262,6 @@ g_disk_start(struct bio *bp)
} else } else
error = ENOIOCTL; error = ENOIOCTL;
break; break;
case BIO_SETATTR:
error = ENOIOCTL;
break;
default: default:
error = EOPNOTSUPP; error = EOPNOTSUPP;
break; break;

View File

@ -171,26 +171,6 @@ g_io_init()
g_bioq_init(&g_bio_idle); g_bioq_init(&g_bio_idle);
} }
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 int
g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr) g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr)
{ {
@ -229,7 +209,6 @@ g_io_check(struct bio *bp)
break; break;
case BIO_WRITE: case BIO_WRITE:
case BIO_DELETE: case BIO_DELETE:
case BIO_SETATTR:
if (cp->acw == 0) if (cp->acw == 0)
return (EPERM); return (EPERM);
break; break;

View File

@ -217,7 +217,6 @@ g_slice_start(struct bio *bp)
g_io_request(bp2, cp); g_io_request(bp2, cp);
return; return;
case BIO_GETATTR: case BIO_GETATTR:
case BIO_SETATTR:
/* Give the real method a chance to override */ /* Give the real method a chance to override */
if (gsp->start(bp)) if (gsp->start(bp))
return; return;