I have a problem where a device file exists in an account, and it can be
written to, but can't write the End Of File marker.

Example:

>ASSIGN ATM20 TO MTU 0

in a program, it bombs out when trying 
WEOF ELSE

and at TCL it bombs out
>T.WEOF
Magnetic tape write end of file failed.  [ENOTTY] Not a typewriter

I backed up the file and tried emptying the file, but this didn't help:

$ cp -p DEVICE_ATM20 DEVICE_ATM20.orig  (at unix)
$ > DEVICE_ATM20  (cleared file, at unix)
> ASSIGN ATM20 TO MTU 0 (assigned virtual tape drive, at TCL)
>T.WEOF (attempted EOF write to device:)
Magnetic tape write end of file failed.  [ENOTTY] Not a typewriter

The device exists in the account as DEVICE_ATM20:

CT &DEVICE& ATM20

     ATM20
0001 8mm 20.0 GB scsi
0002 /prodDev/uv/Devel2.6/DEVICE_ATM20
0003 0
0004 DT
0005
0006 /prodDev/uv/Devel2.6/DEVICE_ATM20
0007 /prodDev/uv/Devel2.6/DEVICE_ATM20
0008 find $file -print | cpio -ovcB > $tape
0009 cpio -ivcdumB $file < $tape
0010 tctl -f $tape fsf 1
0011 tctl -f $tape rewind
0012 tctl -f $tape rewind
0013 L
0014 Y
0015 Y
0016 0
0017 Y
0018
0019

It is also visible in the UniVerse home account:

+-----------------------------  Maintain Devices
-----------------------------+
|                 File               Action               Help
|
+---------------------------------------------------------------------------
---+
| Device Name     : ATM20                              Rotate Flag    : Y
|
| Description     ? 8mm 20.0 GB scsi
|
| Device Type     : DT                  Block Size    : 0
|
| Device Pathname (norewind)  : /prodDev/uv/Devel2.6/DEVICE_ATM20
|
| Device Pathname (rewind)    : /prodDev/uv/Devel2.6/DEVICE_ATM20
|
| Lock File       :
|
| Backup Shell Command  : find $file -print | cpio -ovcB > $tape
|
| Restore Shell Command : cpio -ivcdumB $file < $tape
|
| Skip Shell Command    : tctl -f $tape fsf 1
|
| Rewind Shell Command  : tctl -f $tape rewind
|
| Offline Shell Command : tctl -f $tape rewind
|
| Account Transfer Block Size  : 0
|
| R/W position    : L   Close on Read   : Y   Mult. Read @ EOF: Y
|

I assume there is a problem with the way the file is setup to emulate a tape
device?

Any help appreciated.

Thanks,
LeRoi

LeRoi Keiller
Technical Support
 
Ultradata - Vision to Reality
+61 3 9291 1700
www.ultradata.com.au



Disclaimer Notice
This message contains privileged and confidential information intended only
for the use of the addressee named above. If you are not the intended
recipient of this message you are hereby notified that you must not
disseminate, copy or take any action or place any reliance on it. If you
have received this message in error please notify Ultradata immediately on
+61 3 9291 1600. Any views expressed in this message are those of the
individual sender, except where the sender specifically states them to be
the views of Ultradata Australia Pty. Ltd.

 To unsubscribe from receiving commercial electronic messages from Ultradata
Australia please email [EMAIL PROTECTED] with the subject heading
"Unsubscribe".
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to