]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] tape: Fix device online messages
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Fri, 11 Sep 2009 08:29:02 +0000 (10:29 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 11 Sep 2009 08:29:55 +0000 (10:29 +0200)
commitcb9fa9da00f6ad147ec64636ec8a1c60d0d783b4
tree85e8e2aa766b1cc732839af6f3b3be418fcb9389
parentb0b2213a9454ee38ddffd33f38d51a64e9ca573f
[S390] tape: Fix device online messages

Currently, when a tape device is set online and no cartridge is loaded, we
get the messages "The tape cartridge has been successfully unloaded" and
"Determining the size of the recorded area". These messages are not correct.
To fix this, we now print the "cartridge loaded/unloaded" messages only,
when the load/unload event really occurs. In addition to that, the message
"Determining the size of the recorded area" is only printed, if a cartridge
is loaded.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tape_block.c
drivers/s390/char/tape_core.c