summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>1998-04-08 20:00:03 +0000
committerSøren Schmidt <sos@FreeBSD.org>1998-04-08 20:00:03 +0000
commit40a2ce6ee5cdcd3ea7df92e629fa1bb85ef5aba6 (patch)
tree4ad96bc297f294a5babcf8a6ea8c5d9016f2bd7c
parent5ddc8ded1dbe650b7d83240a1f86a1eb6e2b9b5a (diff)
Notes
-rw-r--r--sys/i386/isa/wst.c6
-rw-r--r--sys/pc98/pc98/wst.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/isa/wst.c b/sys/i386/isa/wst.c
index 2802f4eb271c..ea0b446e6923 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 2802f4eb271c..ea0b446e6923 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 */