Date: Fri, 31 Jan 2014 19:48:26 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342057 - in head/sysutils: . scterc scterc/files Message-ID: <201401311948.s0VJmQRG070383@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Jan 31 19:48:26 2014 New Revision: 342057 URL: http://svnweb.freebsd.org/changeset/ports/342057 QAT: https://qat.redports.org/buildarchive/r342057/ Log: Modern hard drives allow to set the amount of time a hard disk is allowed to spend recovering from a read or write error. This feature is called ERC (error recovery control, usually in Seagate), TLER (time-limited error recovery, usually on Western Digital) or CCLT (command completion time limit, usually on Samsung or Hitachi). This rc.d script allows to set these valus on system startup to tune disks for RAID usage. WWW: https://github.com/AMDmi3/scterc-rc.d Added: head/sysutils/scterc/ head/sysutils/scterc/Makefile (contents, props changed) head/sysutils/scterc/distinfo (contents, props changed) head/sysutils/scterc/files/ head/sysutils/scterc/files/pkg-message.in (contents, props changed) head/sysutils/scterc/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Fri Jan 31 19:47:28 2014 (r342056) +++ head/sysutils/Makefile Fri Jan 31 19:48:26 2014 (r342057) @@ -850,6 +850,7 @@ SUBDIR += screen SUBDIR += screenfetch SUBDIR += screenie + SUBDIR += scterc SUBDIR += sdd SUBDIR += sdparm SUBDIR += searchmonkey Added: head/sysutils/scterc/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/scterc/Makefile Fri Jan 31 19:48:26 2014 (r342057) @@ -0,0 +1,34 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= scterc +PORTVERSION= 0.0.1 +CATEGORIES= sysutils + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Configure SCT ERC for hard disks on system startup + +RUN_DEPENDS= ${LOCALBASE}/sbin/smartctl:${PORTSDIR}/sysutils/smartmontools + +USE_GITHUB= yes +GH_ACCOUNT= AMDmi3 +GH_PROJECT= ${PORTNAME}-rc.d +GH_COMMIT= c8dc8c1 + +NO_BUILD= yes +SUB_FILES= pkg-message + +PLIST_FILES= etc/rc.d/scterc +PORTDOCS= * + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/scterc.sh + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/scterc.sh ${STAGEDIR}${PREFIX}/etc/rc.d/scterc + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ + +.include <bsd.port.mk> Added: head/sysutils/scterc/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/scterc/distinfo Fri Jan 31 19:48:26 2014 (r342057) @@ -0,0 +1,2 @@ +SHA256 (scterc-0.0.1.tar.gz) = 14edaef5e3ab554f86f0284e771fa1347c9fb7e24c820a84459a4bf78890c9ef +SIZE (scterc-0.0.1.tar.gz) = 3145 Added: head/sysutils/scterc/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/scterc/files/pkg-message.in Fri Jan 31 19:48:26 2014 (r342057) @@ -0,0 +1,15 @@ +To enable setting hard disk SCT ERC on system boot time, add the +following to your /etc/rc.conf: + + scterc_enable="YES" + + # specify hard disks to configure + scterc_disks="ada0 ada1" + + # specify read and write timeouts in tenths of second + # here each is set to 7.0 seconds, which is also the default + # for which you may omit these lines + scterc_read_timeout="70" + scterc_write_timeout="70" + +See %%DOCSDIR%%/README.md for more info. Added: head/sysutils/scterc/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/scterc/pkg-descr Fri Jan 31 19:48:26 2014 (r342057) @@ -0,0 +1,10 @@ +Modern hard drives allow to set the amount of time a hard disk is +allowed to spend recovering from a read or write error. This feature +is called ERC (error recovery control, usually in Seagate), TLER +(time-limited error recovery, usually on Western Digital) or CCLT +(command completion time limit, usually on Samsung or Hitachi). + +This rc.d script allows to set these valus on system startup to +tune disks for RAID usage. + +WWW: https://github.com/AMDmi3/scterc-rc.d
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401311948.s0VJmQRG070383>