X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=blobdiff_plain;f=ndmp-src%2Fndma_cops_query.c;h=098216ef6fb3151ff4f1fbd720f1947887aa1b19;hp=927829eb9440dc2edebcf37ca28ce554e2fb1a77;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e diff --git a/ndmp-src/ndma_cops_query.c b/ndmp-src/ndma_cops_query.c index 927829e..098216e 100644 --- a/ndmp-src/ndma_cops_query.c +++ b/ndmp-src/ndma_cops_query.c @@ -720,6 +720,7 @@ ndmca_opq_show_device_info (struct ndm_session *sess, ndmalogqr (sess, " device %s", dc->device); if (!strcmp(what, "tape")) { +#ifndef NDMOS_OPTION_NO_NDMP3 if (sess->plumb.tape->protocol_version == 3) { attr = dc->v3attr.value; ndmalogqr (sess, " attr 0x%lx", @@ -729,6 +730,18 @@ ndmca_opq_show_device_info (struct ndm_session *sess, if (attr & NDMP3_TAPE_ATTR_UNLOAD) ndmalogqr (sess, " UNLOAD"); } +#endif /* !NDMOS_OPTION_NO_NDMP3 */ +#ifndef NDMOS_OPTION_NO_NDMP4 + if (sess->plumb.tape->protocol_version == 4) { + attr = dc->v4attr.value; + ndmalogqr (sess, " attr 0x%lx", + attr); + if (attr & NDMP4_TAPE_ATTR_REWIND) + ndmalogqr (sess, " REWIND"); + if (attr & NDMP4_TAPE_ATTR_UNLOAD) + ndmalogqr (sess, " UNLOAD"); + } +#endif /* !NDMOS_OPTION_NO_NDMP4 */ } for (k = 0; k < dc->capability.capability_len; k++) { ndmalogqr (sess, " set %s=%s",