projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.6.0p2
[debian/amanda]
/
device-src
/
tape-xenix.c
diff --git
a/device-src/tape-xenix.c
b/device-src/tape-xenix.c
index 87be604bc8c1d9f49b451c06c113a1fc609bd896..1890cd20de66e3109463fd0186f567fd4ca53274 100644
(file)
--- a/
device-src/tape-xenix.c
+++ b/
device-src/tape-xenix.c
@@
-81,12
+81,14
@@
gboolean tape_setcompression(int fd, gboolean on) {
return FALSE;
}
return FALSE;
}
-
TapeCheckResult
tape_is_tape_device(int fd) {
+
ReadLabelStatusFlags
tape_is_tape_device(int fd) {
struct tape_info result;
if (0 == ioctl(fd, MT_STATUS, &result)) {
struct tape_info result;
if (0 == ioctl(fd, MT_STATUS, &result)) {
- return
TAPE_CHECK
_SUCCESS;
+ return
READ_LABEL_STATUS
_SUCCESS;
} else {
} else {
- return TAPE_CHECK_FAILURE;
+ dbprintf("tape_is_tape_device: ioctl(MTIOCTOP/MTNOP) failed: %s",
+ strerror(errno));
+ return READ_LABEL_STATUS_DEVICE_ERROR;
}
}
}
}