PREV UP NEXT The Ftape Installation Guide - Ioctls


8.5.3: MTIOCPOS, query the tape position

Note that ftape-2.x and sftape didn't implement this ioctl. zftape returns the block number relative to the current tape volume, i.e. the distance to the next file mark towards BOT. This command is sent to the drive by the mt command with

mt -f /dev/nqft0 tell

The following is from the standard Linux include file /usr/src/linux/include/linux/mtio.h.

/* structure for MTIOCPOS - mag tape get position command */

struct mtpos { long mt_blkno; /* current block number */ }; #define MTIOCPOS _IOR('m', 3, struct mtpos) /* get tape position */


Use these buttons to jump to the top menu

TOP (parent node)

TOP (previous node) TOP (this node) TOP (next node)