The Ftape Installation and Usage Guide - Ioctls
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. |
![]() |
Use these buttons to jump to the top menu |