* 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:
Corinna Vinschen
2004-03-02 13:07:47 +00:00
parent ddb1a4c10a
commit 7cdd029300
3 changed files with 36 additions and 11 deletions

View File

@@ -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);
}