 |
Index for Section 9 |
|
 |
Alphabetical listing for V |
|
 |
Bottom of page |
|
v1_tape_dev_info_t(9s)
NAME
v1_tape_dev_info_t - Stores tape information
SYNOPSIS
typedef struct v1_tape_dev_info {
uint_t media_status;
uint_t unit_status;
long recordsz;
long density_bpi;
long density_bpi_wrt;
long position;
long fm_cnt;
uchar_t class;
uchar_t pad[7];
union {
struct {
uint_t blocking_factor;
uchar_t valid_flags;
uchar_t density_code;
uchar_t buffered_mode;
uchar_t speed;
uchar_t compression_code;
} scsi;
uchar_t archdata[DEV_ARCH_LEN];
} arch;
} v1_tape_dev_info_t;
MEMBERS
media_status
Specifies the status of the media. See the DESCRIPTION section for the
status values associated with the media_status member.
unit_status
Specifies the current status of the unit. See the DESCRIPTION section
for the status values associated with the unit_status member.
recordsz
Specifies the record size, or 0 for variable-sized records.
density_bpi
Specifies the current density setting.
density_bpi_wrt
Specifies the density used for write operations.
position
Specifies the number of records that have been written since the last
file mark.
fm_cnt
Specifies the number of file marks that have been encountered since the
beginning of the tape.
class
Specifies the tape device class, such as 9-track or QIC.
pad Specifies a reserved member.
arch
Specifies architecture-specific information, either a SCSI-specific
structure or a character string.
DESCRIPTION
The v1_tape_dev_info_t structure contains information about the tape device
that is returned by the DEVGETINFO ioctl command.
The following status values are defined for the media_status member:
TPDEV_BOM Beginning of medium (BOM)
TPDEV_EOM End of medium (EOM)
TPDEV_RESERVED1
Reserved
TPDEV_WRTPROT
Write-protected
TPDEV_BLANK Blank media
TPDEV_WRITTEN
Written since opened
TPDEV_RESERVED2
Reserved
TPDEV_SOFTERR
Device soft error
TPDEV_HARDERR
Device hard error
TPDEV_DONE Operation complete/Online
TPDEV_RETRY Retry
TPDEV_ERASED
Erased
TPDEV_TPMARK
Unexpected tape mark
TPDEV_SHRTREC
Short record
TPDEV_RDOPP Read opposite
TPDEV_RWDING
Rewinding
TPDEV_POS_VALID
Tape position information is valid
The following status values are defined for the unit_status member:
TPDEV_READY
Device online and ready
TPDEV_OFFLINE
Device not ready
TPDEV_NO_EOM
No warning on EOM
TPDEV_HAS_LOADER
Device has integral loader
TPDEV_1FM_ONCLOSE
Write 1 filemark on close
TPDEV_REW_ONCLOSE
Rewind on close
TPDEV_COMPACTING
Density is compacted
TPDEV_COMPRESSING
Compression enabled
TPDEV_BUFFERED
Device is buffering data
FILES
<io/common/devgetinfo.h>
SEE ALSO
Data Structures: v1_devtype_info_t(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for V |
|
 |
Top of page |
|