Hi,

 

Is there any way how to detect in an application that 34xx tape was
attached through ccw. In other words, detect that new directory for that
tape appeared in /sys/bus/ccw/devices/ and that it is ready for
"chccwdev -e". I would like to have a program that tracks whether any
tape was attached or detached and I was wondering whether there is
another option than "try-to-open and wait" loop.

 

These are messages in the system log which describes events I'd like to
trap:

 

kernel: crw_info : CRW reports slct=0, oflw=0, chn=0, rsc=3, anc=1,
erc=4, rsid=5

kernel: TAPE_CORE: tape device 0.0.0186 found

kernel: TAPE_CORE: (0.0.0186): Tape has been mounted

kernel: TAPE_BLOCK: Detecting media size...

kernel: TAPE_BLOCK: Found 2 blocks on media

kernel: TAPE_CORE: (0.0.0186): Tape is unloaded

kernel: crw_info : CRW reports slct=0, oflw=0, chn=0, rsc=3, anc=1,
erc=4, rsid=5

 

Radek Vlacil

 


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to