From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,acba6b6724958160,start X-Google-Attributes: gidfee84,public From: "Gerald Heinig" Subject: Mag tape takes 40 secs to show no tape in drive Date: 2000/03/15 Message-ID: <8ao0ei$s6m$1@news.nrw.net>#1/1 X-Deja-AN: 597774366 X-Trace: news.nrw.net 953124115 28886 194.176.3.202 (15 Mar 2000 12:41:55 GMT) Organization: CSL - Computer Service Langenbach GmbH X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.unix.osf.osf1 X-Complaints-To: news@csl-gmbh.net Hi all, When I open a magnetic tape device (/dev/nrmt0a) and do an ioctl(MT_ONLINE,...) it takes 40 seconds to realise that there isn�t a tape in the drive. The code looks like this: int fd = ::open( "/dev/nrmt0a", O_RDWR ); if( fd < 0 ) return false; struct mtop tapeOp; tapeOp.mt_op = MTONLINE; tapeOp.mt_count = 1; int nRet = ioctl( fd, MTIOCTOP, &tapeOp ); close( fd ); return nRet >= 0; Anyone have any ideas as to why it takes so long, or as to what I�m doing wrong? Cheers, Gerald