X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=device-src%2Ftape-xenix.c;h=1890cd20de66e3109463fd0186f567fd4ca53274;hb=fb2bd066c2f8b34addafe48d62550e3033a59431;hp=87be604bc8c1d9f49b451c06c113a1fc609bd896;hpb=a6127998ee6dcab6bb034f6ca985b07804a86f9a;p=debian%2Famanda diff --git a/device-src/tape-xenix.c b/device-src/tape-xenix.c index 87be604..1890cd2 100644 --- 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; } -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)) { - return TAPE_CHECK_SUCCESS; + return READ_LABEL_STATUS_SUCCESS; } else { - return TAPE_CHECK_FAILURE; + dbprintf("tape_is_tape_device: ioctl(MTIOCTOP/MTNOP) failed: %s", + strerror(errno)); + return READ_LABEL_STATUS_DEVICE_ERROR; } }