mirror of
https://github.com/opnsense/src.git
synced 2026-02-24 10:20:24 -05:00
Fix a minor bug (|| instead of |)
This commit is contained in:
parent
5ddc8ded1d
commit
40a2ce6ee5
2 changed files with 6 additions and 6 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue