From: VS Prasad <vs_p () hotmail ! com>
To: tru64-unix-managers
Subject: Tape erase program.
Date: Wed, 11 Jul 2001 13:18:21 +0000 [thread overview]
Message-ID: <102653652421804.tru64-unix-managers.marc@archive.invalid> (raw)
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.
reply other threads:[~2001-07-11 13:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox