aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-07-31 09:00:39 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-07-31 09:00:39 +0000
commitb3816f9e6066268f02f4c1e869fa2335147afbf0 (patch)
tree625f84e0be31418c44a5caa2e2c12a11f72b3e36
parent84a6914bd88cbaee85d5a75dc494f8f6e7783a40 (diff)
Notes
-rw-r--r--sys/scsi/st.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index f7558f2ceb79..21d1267ffe00 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
- * $Id: st.c,v 1.90 1998/07/04 22:30:24 julian Exp $
+ * $Id: st.c,v 1.91 1998/07/11 07:46:01 bde Exp $
*/
/*
@@ -452,13 +452,14 @@ st_close(dev_t dev, int flag, int fmt, struct proc *p,
{
u_int32_t unit, mode;
struct scsi_data *st;
+ errval errcode = 0;
unit = STUNIT(dev);
mode = MODE(dev);
st = sc_link->sd;
if ((st->flags & (ST_WRITTEN | ST_FM_WRITTEN)) == ST_WRITTEN)
- st_write_filemarks(unit, 1, 0);
+ errcode = st_write_filemarks(unit, 1, 0);
/*
* Since the device has seen its last close, allow media removal.
@@ -484,7 +485,7 @@ st_close(dev_t dev, int flag, int fmt, struct proc *p,
sc_link->flags &= ~SDEV_OPEN;
st->flags &= ~ST_OPEN;
- return (0);
+ return (errcode);
}
/*