home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lhdsy1!usho93!usho93.hou281.chevron.com!hjgwi
- From: hjgwi@usho93.hou281.chevron.com (Jay G. Williamson)
- Newsgroups: comp.unix.ultrix
- Subject: "mount device busy" error on tape drives
- Keywords: tape, tz
- Message-ID: <1992Aug12.085647@usho93.hou281.chevron.com>
- Date: 12 Aug 92 13:56:47 GMT
- Sender: news@usho93.hou281.chevron.com (USENET News System)
- Distribution: usa
- Organization: Chevron
- Lines: 37
-
- We have some software that dies sometimes while accessing some 8mm
- drives. When this happens, the tape drives become unaccessable.
- Attempting to access it will return with "mount device busy". The
- only way to clear this up is to reboot the machine. I would assume
- that there is some byte in the kernel that signifies that the tape
- drive is still busy but I do not know what it is or exactly how to
- access this value to change it.
-
- In the system include file, /sys/io/scsi/mips/scsivar.h, there is a
- SZ_BUSY status byte. It is not clear whether this is for a device
- or for the whole SCSI bus. Even if this is the byte value to unset,
- it still looks like a challenge to find where in the structure to unset
- this. Even more challenging (to me at least) is how to find where
- this structure starts within the kernel. I can imagine the sudo code
- below but I still have alot of unknowns with no more ideas on how to
- get these unknowns.
-
- open (/dev/kmem)
- addr of struct == OFFSET_TO_TAPE_STRUCT
- remove_busy_bits (struct->some_flag)
-
- ** Is this possible ?
- ** Has this already been done by someone ?
- ** If it has not, can someone give me any help with the unknowns and
- the technique to alter the flag ??
-
- INFO:
- DECstation 5100
- Ultrix 4.2b
-
- I will summarize if there is any interest.
-
- Thanks in advance,
- --
- Jay Williamson Office: 2301 Hayes Rd. Phone: 713-596-3139
- UNIX Sys Admin Houston, Tx hjgwi@hou281.chevron.com
- Chevron Info Tech.
-