From 8d68f9d430105e18bd7246235957dffd13cd1049 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 20 Nov 2017 21:56:25 +0000 Subject: [PATCH] Print ZAC device type in "camcontrol identify" output ZAC (Zoned-device ATA Command set) is the standard for addressing SMR (shingled magnetic recording) devices over SATA. Drives indicate their support for ZAC in their IDENTIFY block. Print whether and how a drive supports ZAC in the output of "camcontrol identify". Reviewed by: ken, imp MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D13171 --- sbin/camcontrol/camcontrol.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 7e30e58eb4fc..17e5d14aff06 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -1403,6 +1403,18 @@ atacapprint(struct ata_params *parm) parm->media_rotation_rate); } + printf("Zoned-Device Commands "); + switch (parm->support3 & ATA_SUPPORT_ZONE_MASK) { + case ATA_SUPPORT_ZONE_DEV_MANAGED: + printf("device managed\n"); + break; + case ATA_SUPPORT_ZONE_HOST_AWARE: + printf("host aware\n"); + break; + default: + printf("no\n"); + } + printf("\nFeature " "Support Enabled Value Vendor\n"); printf("read ahead %s %s\n",