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) {
case BIO_GETATTR:
case BIO_SETATTR:
g_io_deliver(bp, EOPNOTSUPP);
return;
}

View File

@ -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:

View File

@ -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);

View File

@ -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);

View File

@ -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));

View File

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

View File

@ -171,26 +171,6 @@ g_io_init()
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
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;
case BIO_WRITE:
case BIO_DELETE:
case BIO_SETATTR:
if (cp->acw == 0)
return (EPERM);
break;

View File

@ -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;