* Tape erase program.
@ 2001-07-11 13:18 VS Prasad
0 siblings, 0 replies; only message in thread
From: VS Prasad @ 2001-07-11 13:18 UTC (permalink / raw)
To: tru64-unix-managers
Hi All,
I am getting the error "No such device or address" when I try to
erase the tape. But the same device name works fine with my scu -f mt erase
command to erase my tape.
I could n't able to find where I am going wrong.
main(argc, argv)
int argc ;
char *argv[] ;
{
struct mtop mt;
int fd;
mt.mt_op = MTERASE;
mt.mt_count = 1;
if((fd = open("/dev/ntape/tape6", O_RDONLY|O_NONBLOCK|O_NDELAY)) ==
-1 )
{
perror("Open");
exit(0);
}
if( ioctl(fd, MTIOCTOP, &mt) == -1 )
{
perror("MTERASE");
exit(0);
}
}
Thanks in advance,
Srinivas.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-11 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-11 13:18 Tape erase program VS Prasad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox