1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

- Support SATA disks attached to a SAS controller

- Compile with -O to prevent SCSI bus resets on amd64

Submitted by:	ru
This commit is contained in:
Pav Lucistnik 2009-05-21 07:47:02 +00:00
parent 3b298f63e2
commit 5b0c008d13
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234319
4 changed files with 24 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= smartmontools
PORTVERSION= 5.38
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -25,6 +25,8 @@ USE_RC_SUBR= smartd
MAN5= smartd.conf.5
MAN8= smartd.8 smartctl.8
CFLAGS:= ${CFLAGS:S/-O2/-O/}
post-patch:
@${REINPLACE_CMD} -e 's| install-initdDATA | |' ${WRKSRC}/Makefile.in

View File

@ -8,6 +8,15 @@
return -1;
}
@@ -525,7 +524,7 @@
return -1;
}
- if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
+ if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_SCSI_STATUS_ERROR)) {
#if __FreeBSD_version > 500000
cam_error_print(cam_dev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr);
#endif
@@ -924,6 +923,7 @@
static const char * fbsd_dev_prefix = "/dev/";
static const char * fbsd_dev_ata_disk_prefix = "ad";

View File

@ -7,7 +7,7 @@
PORTNAME= smartmontools
PORTVERSION= 5.38
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -25,6 +25,8 @@ USE_RC_SUBR= smartd
MAN5= smartd.conf.5
MAN8= smartd.8 smartctl.8
CFLAGS:= ${CFLAGS:S/-O2/-O/}
post-patch:
@${REINPLACE_CMD} -e 's| install-initdDATA | |' ${WRKSRC}/Makefile.in

View File

@ -8,6 +8,15 @@
return -1;
}
@@ -525,7 +524,7 @@
return -1;
}
- if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
+ if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_SCSI_STATUS_ERROR)) {
#if __FreeBSD_version > 500000
cam_error_print(cam_dev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr);
#endif
@@ -924,6 +923,7 @@
static const char * fbsd_dev_prefix = "/dev/";
static const char * fbsd_dev_ata_disk_prefix = "ad";