scsi_tape.7 (2010 09)

s
scsi_tape(7) scsi_tape(7)
#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 programmatically 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).
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010