Date: Wed, 30 Oct 2002 15:41:55 -0400 From: Matthias Trevarthan <trevarthan@wingnet.net> To: freebsd-questions@FreeBSD.ORG Subject: Sony AIT tape position question Message-ID: <200210301441.55643.trevarthan@wingnet.net>
next in thread | raw e-mail | index | archive | help
Howdy peeps, I've got a not-so-quick question for ya: I have a Sony AIT tape drive (one of the nifty 4 tape autoloaders): TSL-S= A300C It has a nice little display on the front that indicates the tape's "woun= d"=20 status. When the tape is fully rewound, the bar graph is full. When the t= ape=20 is fully recorded, or wound, the bar graph is empty. Is there any way that I can detect this programmatically? I would like my= =20 scripts to be intelligent enough that they can approximate the size requi= red=20 for a dump, and the size left on the tape. (I would also like to detect which tape I have loaded at any given point,= but=20 I suspect that is outside the bounds of standard SCSI communication. I'd=20 probably need some proprietary code to do this...) When I use the 'mt' command with 'rdspos' I get a block number. Would thi= s=20 number be useful in determining how wound the tape is? If so, how would I= go=20 about interpreting this as a percentage or as a byte volume? I'm from the windows world, so I'm not very familiar with block sizes. I=20 understand bytes though, so if I can translate the block number I'll be=20 alright. Feel free to throw programming concepts and code at me. I'm a proficient=20 programmer. (I just don't know what the heck a SCSI logical block is) Thanks! Matthias To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210301441.55643.trevarthan>