diff options
-rw-r--r-- | sys/i386/isa/wst.c | 6 | ||||
-rw-r--r-- | sys/pc98/pc98/wst.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/isa/wst.c b/sys/i386/isa/wst.c index 2802f4e..ea0b446 100644 --- a/sys/i386/isa/wst.c +++ b/sys/i386/isa/wst.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.4 1998/03/10 12:00:24 sos Exp sos $ + * $Id: wst.c,v 1.2 1998/03/17 10:45:18 sos Exp $ */ #include "wdc.h" @@ -371,12 +371,12 @@ wstclose(dev_t dev, int flags, int fmt, struct proc *p) int lun = UNIT(dev); struct wst *t = wsttab[lun]; - /* Flush buffers, some drives fail here, but they report ctl = 0 */ + /* Flush buffers, some drives fail here, but they should report ctl = 0 */ if (t->cap.ctl) wst_write_filemark(t, 0); /* Write filemark if data written to tape */ - if (t->flags & (WST_DATA_WRITTEN || WST_FM_WRITTEN) == WST_DATA_WRITTEN) + if (t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN) == WST_DATA_WRITTEN) wst_write_filemark(t, WEOF_WRITE_MASK); /* If minor is even rewind on close */ diff --git a/sys/pc98/pc98/wst.c b/sys/pc98/pc98/wst.c index 2802f4e..ea0b446 100644 --- a/sys/pc98/pc98/wst.c +++ b/sys/pc98/pc98/wst.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.4 1998/03/10 12:00:24 sos Exp sos $ + * $Id: wst.c,v 1.2 1998/03/17 10:45:18 sos Exp $ */ #include "wdc.h" @@ -371,12 +371,12 @@ wstclose(dev_t dev, int flags, int fmt, struct proc *p) int lun = UNIT(dev); struct wst *t = wsttab[lun]; - /* Flush buffers, some drives fail here, but they report ctl = 0 */ + /* Flush buffers, some drives fail here, but they should report ctl = 0 */ if (t->cap.ctl) wst_write_filemark(t, 0); /* Write filemark if data written to tape */ - if (t->flags & (WST_DATA_WRITTEN || WST_FM_WRITTEN) == WST_DATA_WRITTEN) + if (t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN) == WST_DATA_WRITTEN) wst_write_filemark(t, WEOF_WRITE_MASK); /* If minor is even rewind on close */ |