HP-UX Reference (11i v2 04/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

s
scsi_tape(7) scsi_tape(7)
(Workstations Only)
#define SIOC_GET_BLOCK_SIZE _IOR(’S’, 30, int)
#define SIOC_SET_BLOCK_SIZE _IOW(’S’, 31, int)
#define SIOC_GET_BLOCK_LIMITS _IOW(’S’, 32, struct scsi_block_limits)
#define SIOC_GET_POSITION _IOR(’S’, 33, int)
#define SIOC_SET_POSITION _IOW(’S’, 34, int)
/* structure for SIOC_GET_BLOCK_LIMITS ioctl */
struct scsi_block_limits {
unsigned min_blk_size;
unsigned max_blk_size;
};
WARNINGS
SCSI bus and device resets cause some devices to reposition media to beginning-of-tape (BOT). This
unintentional media repositioning can cause loss of data. The
scsi_tape driver causes the first subse-
quent
open() attempt to fail as an indication of potential data loss.
The
scsi_tape driver does not write filemarks at close if the media has been programatically reposi-
tioned. Applications that reposition the media prior to closing the device should write any required tape-
marks.
SEE ALSO
mknod(1M), mt(7), scsi(7).
HP-UX 11i Version 2: September 2004 2 Hewlett-Packard Company Section 7145