* fhandler_tape.cc (fhandler_dev_tape::ioctl): Check
for filemark feature on MTWEOF operation.
This commit is contained in:
parent
0bf4b1e8ab
commit
670d8ef016
|
@ -1,3 +1,9 @@
|
|||
Tue May 16 23:39:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
Patch suggested by John Rowley <wjr@bgs.ac.uk>
|
||||
* fhandler_tape.cc (fhandler_dev_tape::ioctl): Check
|
||||
for filemark feature on MTWEOF operation.
|
||||
|
||||
Tue May 16 11:49:13 2000 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* include/cygwin/in.h (AF_INET6): Use correct in6_addr struct.
|
||||
|
|
|
@ -263,7 +263,12 @@ fhandler_dev_tape::ioctl (unsigned int cmd, void *buf)
|
|||
ret = tape_set_pos (TAPE_SPACE_RELATIVE_BLOCKS, -op->mt_count);
|
||||
break;
|
||||
case MTWEOF:
|
||||
ret = tape_write_marks (TAPE_FILEMARKS, op->mt_count);
|
||||
if (tape_get_feature (TAPE_DRIVE_WRITE_FILEMARKS))
|
||||
ret = tape_write_marks (TAPE_FILEMARKS, op->mt_count);
|
||||
else if (tape_get_feature (TAPE_DRIVE_WRITE_LONG_FMKS))
|
||||
ret = tape_write_marks (TAPE_LONG_FILEMARKS, op->mt_count);
|
||||
else
|
||||
ret = tape_write_marks (TAPE_SHORT_FILEMARKS, op->mt_count);
|
||||
break;
|
||||
case MTREW:
|
||||
ret = tape_set_pos (TAPE_REWIND, 0);
|
||||
|
|
Loading…
Reference in New Issue