PREV UP NEXT The Ftape Installation and Usage Guide - Ioctls


8.8.6: MTIOCGETSIZE

This should be self-explanatory:

/* get tape capacity (ftape/zftape). This is measured in KB
 */
struct mttapesize {
        unsigned int mt_capacity; /* entire, uncompressed capacity */
        unsigned int mt_used;     /* what has been used so far, raw 
                                   * uncompressed amount
                                   */
};
#define MTIOCGETSIZE _IOR('m',  9, struct mttapesize) /* get cartridge size */
mt_capacity

entire capacity of the tape cartridge, measured in kilobytes.


mt_used what has been used so far, measured in kilobytes.


ftape logo Use these buttons to jump to the top menu

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