[1912] in linux-scsi channel archive
mt help
daemon@ATHENA.MIT.EDU (Dave Wreski)
Wed May 28 00:01:28 1997
Date: Mon, 26 May 1997 01:34:27 -0400 (EDT)
From: Dave Wreski <dave@nic.com>
To: linux-scsi@vger.rutgers.edu
Hi all. I'm trying to write an automated script that will perform backups
over night to my tape. At the end of the script, I would like to
figure out just how much space is available, and one day write some code
to determine if there's enough space left for another archive..
Using mt and status, I see there are a few things that might be of
interest:
MTIOCVOLINFO result:
file number = 0
block size = 10240
physical space used = 609.0 KBytes
real size of volume = 1.8 MBytes
compression ratio = 33 %
MTIOCGETSIZE result:
total bytes on tape = 1.5 GBytes
total bytes used = 638.0 KBytes
total bytes left = 1.5 GBytes
Can someone explain what the difference is between these two results?
Maybe someone has a better idea to figure out how much space is left on
the tape?
Thanks,
Dave Wreski