* fhandler_raw.cc (fhandler_dev_raw::raw_read): When reading with
variable block size, read only one block, read directly into user supplied buffer, return ENOMEM if user supplied buffer is smaller than size of next block to read. Use read2 instead of bytes_to_read to count number of bytes read. * fhandler_tape.cc (fhandler_dev_tape::open): Add debug output.
This commit is contained in:
@@ -90,6 +90,7 @@ fhandler_dev_tape::open (int flags, mode_t)
|
||||
* The call to tape_set_pos seems to reset some internal flags. */
|
||||
if ((!ioctl (MTIOCPOS, &pos)) && (!pos.mt_blkno))
|
||||
{
|
||||
debug_printf ("rewinding");
|
||||
op.mt_op = MTREW;
|
||||
ioctl (MTIOCTOP, &op);
|
||||
}
|
||||
|
Reference in New Issue
Block a user