diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-03-26 19:16:37 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-03-26 19:16:37 +0000 |
| commit | d306122d60b484718888cfbda76b211d3d7767d1 (patch) | |
| tree | 62c93e6c49702a2110d3cbf1a0a56809d9b199d6 /sys | |
| parent | ab0235da5dd130084a490e402cd43cd9b65114b4 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/fdc/fdc.c | 2 | ||||
| -rw-r--r-- | sys/geom/geom_io.c | 1 | ||||
| -rw-r--r-- | sys/isa/fd.c | 2 | ||||
| -rw-r--r-- | sys/pc98/cbus/fdc.c | 1 | ||||
| -rw-r--r-- | sys/pc98/pc98/fd.c | 1 | ||||
| -rw-r--r-- | sys/sys/bio.h | 5 |
6 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 788a7808e14cb..0d659ab465caa 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -165,6 +165,8 @@ struct fdc_data void (*fdctl_wr)(struct fdc_data *fdc, u_int8_t v); }; +#define BIO_FORMAT BIO_CMD2 + typedef int fdu_t; typedef int fdcu_t; typedef int fdsu_t; diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index c43e568c7df29..c0eded7e799fc 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -249,7 +249,6 @@ g_io_request(struct bio *bp, struct g_consumer *cp) break; case BIO_SETATTR: case BIO_DELETE: - case BIO_FORMAT: if ((cp->acw == 0) || (cp->ace == 0)) error = EPERM; break; diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 788a7808e14cb..0d659ab465caa 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -165,6 +165,8 @@ struct fdc_data void (*fdctl_wr)(struct fdc_data *fdc, u_int8_t v); }; +#define BIO_FORMAT BIO_CMD2 + typedef int fdu_t; typedef int fdcu_t; typedef int fdsu_t; diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c index 5e2b78cbcfefb..d52138de33361 100644 --- a/sys/pc98/cbus/fdc.c +++ b/sys/pc98/cbus/fdc.c @@ -251,6 +251,7 @@ FDC_ACCESSOR(fdunit, FDUNIT, int) #endif #define BIO_RDSECTID BIO_CMD1 +#define BIO_FORMAT BIO_CMD2 /* * List of native drive densities. Order must match enum fd_drivetype diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c index 5e2b78cbcfefb..d52138de33361 100644 --- a/sys/pc98/pc98/fd.c +++ b/sys/pc98/pc98/fd.c @@ -251,6 +251,7 @@ FDC_ACCESSOR(fdunit, FDUNIT, int) #endif #define BIO_RDSECTID BIO_CMD1 +#define BIO_FORMAT BIO_CMD2 /* * List of native drive densities. Order must match enum fd_drivetype diff --git a/sys/sys/bio.h b/sys/sys/bio.h index 670150713cd41..5d35eeef4a764 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.h @@ -95,9 +95,8 @@ struct bio { #define BIO_READ 0x00000001 #define BIO_WRITE 0x00000002 #define BIO_DELETE 0x00000004 -#define BIO_FORMAT 0x00000008 -#define BIO_GETATTR 0x00000010 -#define BIO_SETATTR 0x00000020 +#define BIO_GETATTR 0x00000008 +#define BIO_SETATTR 0x00000010 #define BIO_CMD1 0x40000000 /* Available for local hacks */ #define BIO_CMD2 0x80000000 /* Available for local hacks */ |
