In the last episode (May 19), [EMAIL PROTECTED] said: > I am trying to calculate how much of the space on my tape has been used. > > This is what I have done, and I want to make sure I barking up the > right tree before going too far. > > Move the tape to the end of the data. (mt eod). > > Find the logical block location of the drive (mt rdspos). > > /dev/nsa0: logical block location 2242573 > > If I multiply the result (2242573) by my blocksize, does this give me > the total amount of the tape that has been used?
If your tape drive has hardware compression turned off, that should be accurate. With compression enabled, logical blocks can be varying size on tape depening on the compression ratio. If your device supports the "rdhpos" command, that might give you a number that more accurately indicates where on the physical tape you are. It's a "device-specific value", though, which may not translate to a sequential "0-max" range. -- Dan Nelson [EMAIL PROTECTED] _______________________________________________ email@example.com mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"