FreeBSD Bugzilla – Attachment 124993 Details for
Bug 168523
[PATCH] sysutils/smartmontools smartd can't see ada(4) disks on ata buses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
smartmontools.patch
smartmontools.patch (text/plain), 1.52 KB, created by
Konstantin Kukushkin
on 2012-06-01 13:00:06 UTC
(
hide
)
Description:
smartmontools.patch
Filename:
MIME Type:
Creator:
Konstantin Kukushkin
Created:
2012-06-01 13:00:06 UTC
Size:
1.52 KB
patch
obsolete
>--- Makefile 2012-05-31 19:13:49.000000000 +0400 >+++ Makefile 2012-05-31 19:13:38.000000000 +0400 >@@ -7,7 +7,7 @@ > > PORTNAME= smartmontools > PORTVERSION= 5.42 >-PORTREVISION= 3 >+PORTREVISION= 4 > CATEGORIES= sysutils > MASTER_SITES= SF > >--- files/patch-atacam 2012-05-31 19:15:42.000000000 +0400 >+++ files/patch-atacam 2012-05-31 19:14:42.000000000 +0400 >@@ -0,0 +1,25 @@ >+--- os_freebsd.cpp 2012-05-31 17:43:19.000000000 +0400 >++++ os_freebsd.cpp 2012-05-31 17:45:44.000000000 +0400 >+@@ -1749,8 +1769,7 @@ >+ if (ccb.cdm.matches[i].type == DEV_MATCH_BUS) { >+ bus_result = &ccb.cdm.matches[i].result.bus_result; >+ >+- if (strcmp(bus_result->dev_name,"ata") == 0 /* ATAPICAM devices will be probed as ATA devices, skip'em there */ >+- || strcmp(bus_result->dev_name,"xpt") == 0) /* skip XPT bus at all */ >++ if (strcmp(bus_result->dev_name,"xpt") == 0) /* skip XPT bus at all */ >+ skip_bus = 1; >+ else >+ skip_bus = 0; >+@@ -1773,8 +1792,10 @@ >+ * We are searching for latest name >+ */ >+ periph_result = &ccb.cdm.matches[i].result.periph_result; >+- devname = strprintf("%s%s%d", _PATH_DEV, periph_result->periph_name, periph_result->unit_number); >+- changed = 0; >++ if (strcmp(periph_result->periph_name, "pass")) { >++ devname = strprintf("%s%s%d", _PATH_DEV, periph_result->periph_name, periph_result->unit_number); >++ changed = 0; >++ } >+ }; >+ if ((changed == 1 || show_all) && !devname.empty()) { >+ names.push_back(devname);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 168523
: 124993