From b7bdc3e202cee10b5d0eb3c1ef1e4756d1c17b67 Mon Sep 17 00:00:00 2001 From: samm2 <samm2@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Wed, 7 Oct 2009 00:26:43 +0000 Subject: [PATCH] FreeBSD: do not skip devices on the ata bus with cam autodetecion git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2942 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- smartmontools/os_freebsd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smartmontools/os_freebsd.cpp b/smartmontools/os_freebsd.cpp index 3f31ca063..de47845f2 100644 --- a/smartmontools/os_freebsd.cpp +++ b/smartmontools/os_freebsd.cpp @@ -1433,7 +1433,8 @@ int get_dev_names_cam(char*** names, bool show_all) { // if (dev_result->inq_data.device != T_DIRECT) // skip_device = 1; changed = 1; - } else if (ccb.cdm.matches[i].type == DEV_MATCH_PERIPH && skip_device == 0) { + } else if (ccb.cdm.matches[i].type == DEV_MATCH_PERIPH && + (skip_device == 0 || show_all)) { /* One device may be populated as many peripherals (pass0 & da0 for example). * We are searching for latest name */ -- GitLab