Lines Matching defs:read

242  * on the exception we have to show a zero read or write before we show
305 static const char rd_str[] = "read";
445 st_read, /* read */
457 st_aread, /* async I/O read entry point */
636 static int st_recovery_get_position(struct scsi_tape *un, tapepos_t *read,
639 cmd_attribute const * cmd_att, tapepos_t *read);
1032 " For more information, read about "
2376 "fail to read block limits.\n");
2396 "fail to read vitial inquiry.\n");
3104 } else { /* error on read block limits */
3112 * since read block limits cmd failed,
3135 * Even if read block limits fails.
3327 * density so that a later read at BOT comes along
3414 * an EOF (but not yet read across it).
3442 * if we were reading and did not read the complete file
3444 * positioned to read the first record of the next file
3446 * read a block
3511 * over doing a read in between the two filemarks that constitute
3543 * - open for write (possibly read/write)
3686 * open occures it will do a read position.
3942 * If in fixed block size mode and requested read or write
3972 * Reset this so it can be set if Berkeley and read over a filemark.
4034 * If in fixed block size mode and requested read or write
4369 "now file %d (read)\n",
4553 * read a block to see if we have reached
4668 * mode that is not invalid a read position command will
4670 * read position format a valid file position can be
6967 * is 0, then we know there was no error and we return a 0 read or
7177 * set up large read and write retry counts
7281 * Try to determine density. We do this by attempting to read the
7460 * it's at EOM. In that case, issue a read. The read should fail
7465 * we have to do the append test. A read in the middle of
7525 * The append failed. Do a short read. If that fails, we are at EOM
7529 * XXX: should the dummy read be > SECSIZE? should it be the device's
7540 * Okay- the read failed. We should actually have confused
7689 "special read %"PRId64"\n", count);
7769 "read block limits\n");
7790 "read position\n");
7803 "Unknown read position type 0x%x in "
8590 "(read: %u requested: %u)\n", nblksz, un->un_bsize);
8656 * Length Indicator bits on read/write commands, for setting
8723 "special read %"PRId64"\n", count);
8900 "read block limits\n");
8925 "read position\n");
8943 "Unknown read position type 0x%x in "
10756 "st_decode_sense(special read): resid=%ld\n",
10984 * no error for read with or without data xferred
11601 * So its possable to read some blocks and hit a filemark.
11605 * of blocks is read.
11642 * If we didn't just read a filemark.
11667 * read and a filemark was.
12020 * Among other things the prevents read positions used
12082 * Under BSD behavior, when you get a zero read, the logical position
12087 * The next read gives a silent skip to the next file.
12098 * If we've seen a filemark via the last read operation
12100 * the next read operation gets a zero count. We have
12131 * attempt to read X blocks resulted in less then X.
12146 * If the read of the filemark was a side effect
12148 * read), then the EOF mark is pending and the
12149 * bump into the next file awaits the next read
12173 * If the read of the filemark was a side effect
12175 * read), then the next read should return 0
12474 "read/write error counter: %d\n", count);
12493 "read/write retry counter: %d\n",
12633 * the read and write error thresholds based on the amount of
13180 * If a position was read and is in logical position mode.
13181 * If a drive supports read position it supports locate.
13182 * If the read position type is not NO_POS. even though
13183 * a read position make not have been attemped yet.
13380 * information will be read from this page. Otherwise we will see if one of
14158 * support thr read attributes command return error in the
14326 "AIT device config mode sense page read command failed"
14540 * If read position command returned good status
14564 "st_update_block_pos() read position cmd 0x%x"
14567 /* ENOTTY means it read garbage. try something else. */
14575 "st_update_block_pos() read position cmd %x"
14595 "Unexpected read position type 0x%x",
14721 * EIO If read postion responce data was unuseable or invalid.
14723 * ENOTTY If the responce data looks invalid for the read position type.
14747 * See what kind of read position was requested.
14766 * Position is to large to use this type of read position.
14807 "SHORT_POS current logical 0x%"PRIx64" read"
14836 "SHORT_POS current partition %d read %d\n",
14907 " read 0x%"PRIx64"\n",
14938 " read %d\n", dest->partition, part);
15047 " read 0x%"PRIx64"\n",
15076 "EXT_POS current partition %d read %d\n",
15096 "position read in", &org);
15098 "position read out", dest);
15136 * If the drive doesn't give a 64 bit read position data
15195 /* read position failed */
15197 "Big LOCATE and read pos: rval = %d\n", rval);
15200 /* read position worked but position was not expected */
15202 "Big LOCATE and recover read less then desired 0x%"
15208 /* read position was what was expected */
15378 * The LONG_POS read position contains the fileno.
15379 * If the read position works, rewind and space.
15386 * read position command.
15881 * a read.
16534 "resizing read attribute data from %d to %d format"
17011 * if drive doesn't support read position we are done
17318 * Running being set invalid means we are not in a read, write
17488 * i.e. read or write.
17635 * Does read position using recov_buf and doesn't update un_pos.
17636 * Does what ever kind of read position you want.
17690 st_recovery_get_position(struct scsi_tape *un, tapepos_t *read,
17728 rval = st_interpret_read_pos(un, read, type,
17743 cmd_attribute const * cmd_att, tapepos_t *read)
17752 ASSERT(read != NULL);
17755 COPY_POS(read, &ei->ei_expected_pos);
17759 rval = st_recovery_get_position(un, read, readp_datap);
17767 ST_POS(ST_DEVINFO, "st_compare_expected_position", read);
17769 if ((read->pmode == invalid) ||
17792 if (read->lgclblkno == ei->ei_expected_pos.lgclblkno) {
17822 ei->ei_expected_pos.lgclblkno - read->lgclblkno;
17835 * and the expected position (partial read or write).
17839 if ((read->lgclblkno == 0) ||
17842 st_uscsi_rcmd, read,
17852 * This handles flushed read ahead on the drive or
17853 * an aborted read that presents as a busy and advanced
17859 st_uscsi_rcmd, read,
17865 " read command retrying\n");
17879 st_uscsi_rcmd, read,
17905 read->lgclblkno - ei->ei_expected_pos.lgclblkno;
17914 if ((read->lgclblkno == 0) ||
17917 st_uscsi_rcmd, read,
17926 /* This handles read ahead in reverse direction */
17930 st_uscsi_rcmd, read,
17936 " read command retrying\n");
17967 * If the read position is the starting position,
17970 if (ei->ei_expected_pos.lgclblkno == read->lgclblkno) {
17980 rval = st_logical_block_locate(un, st_uscsi_rcmd, read,
17997 "Read position above did not make sense", read);