diff options
author | kato <kato@FreeBSD.org> | 2000-03-23 08:53:15 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 2000-03-23 08:53:15 +0000 |
commit | bea6df776ed9957335f9ba87f5ec32ef0d22674e (patch) | |
tree | bd6ae573fb84c19c3cbf9c43fa9e113b301cf88e /sys | |
parent | f4fce91d7b9fdf198e90c8a72cb1f809396f90f1 (diff) | |
download | FreeBSD-src-bea6df776ed9957335f9ba87f5ec32ef0d22674e.zip FreeBSD-src-bea6df776ed9957335f9ba87f5ec32ef0d22674e.tar.gz |
Removed B_READ and B_WRITE.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/pc98/wd_cd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/pc98/pc98/wd_cd.c b/sys/pc98/pc98/wd_cd.c index fd0bb34..77f0074 100644 --- a/sys/pc98/pc98/wd_cd.c +++ b/sys/pc98/pc98/wd_cd.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998, 1999 Søren Schmidt + * Copyright (c) 1998, 1999 Sen Schmidt * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -441,7 +441,7 @@ acdstrategy(struct buf *bp) #ifdef NOTYET /* allow write only on CD-R/RW media */ /* all for now SOS */ - if (!(bp->b_flags & B_READ) && !(writeable_media)) { + if ((bp->b_iocmd == BIO_WRITE) && !(writeable_media)) { bp->b_error = EROFS; bp->b_flags |= B_ERROR; biodone(bp); @@ -487,7 +487,7 @@ acd_start(struct acd *cdp) acd_select_slot(cdp); - if ((bp->b_flags & B_READ) == B_WRITE) { + if (bp->b_iocmd == BIO_WRITE) { if ((cdp->flags & F_TRACK_PREPED) == 0) { if ((cdp->flags & F_TRACK_PREP) == 0) { printf("wcd%d: sequence error\n", cdp->lun); @@ -505,7 +505,7 @@ acd_start(struct acd *cdp) } } - if (bp->b_flags & B_READ) + if (bp->b_iocmd == BIO_READ) #ifdef NOTYET lba = bp->b_offset / cdp->block_size; #else @@ -515,7 +515,7 @@ acd_start(struct acd *cdp) lba = cdp->next_writeable_lba + (bp->b_offset / cdp->block_size); blocks = (bp->b_bcount + (cdp->block_size - 1)) / cdp->block_size; - if ((bp->b_flags & B_READ) == B_WRITE) { + if (bp->b_iocmd == BIO_WRITE) { cmd = ATAPI_WRITE_BIG; count = -bp->b_bcount; } else { @@ -542,7 +542,7 @@ acd_done(struct acd *cdp, struct buf *bp, int resid, struct atapires result) bp->b_flags |= B_ERROR; } else { bp->b_resid = resid; - if ((bp->b_flags & B_READ) == B_WRITE) + if (bp->b_iocmd == BIO_WRITE) cdp->flags |= F_WRITTEN; } devstat_end_transaction_buf(cdp->device_stats, bp); |