From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 27 13:29:08 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81B60106566B; Wed, 27 Oct 2010 13:29:08 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id A0F0F8FC2B; Wed, 27 Oct 2010 13:29:07 +0000 (UTC) Received: by bwz3 with SMTP id 3so550491bwz.13 for ; Wed, 27 Oct 2010 06:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=t7v9XW2GvWEdMioej4IMrJpO2AB5TSp4CvMk/a4GUaE=; b=CNRJ56M51sntM4r7zpzMnoV6KWOqMq0FQ5m+V7SEQyxqq8htOTCCkZRzr1p0Q4rWPw LvcK+NIeFzkXuKBuulmQcxQjpGlUW/lecKZuCwnQ3W+xiW5LpgRjUjZXa/RvVuU5oKcG baZHVAjpJSbRNoe8jtqf6u001KF40gnLoYWhc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Mo4U9WvRvP2DWgQX1Hvk3prPrPDMk1CQKk5cERomahd5K3bxGW6JQmXsCsLT3gLi9X zhpcG223PQ4wJGmgKdVJg94KmuJwDzVquhvdrES+39HqjtNm0Mf/79AYWl1NJtwhy8ia Ggl18W9a5Bw0pFjnN0cpxtSZDaYvPVFXaetUw= Received: by 10.204.73.13 with SMTP id o13mr7162565bkj.173.1288186146348; Wed, 27 Oct 2010 06:29:06 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([91.198.175.253]) by mx.google.com with ESMTPS id 4sm6972290bki.1.2010.10.27.06.29.03 (version=SSLv3 cipher=RC4-MD5); Wed, 27 Oct 2010 06:29:04 -0700 (PDT) Sender: Alexander Motin Message-ID: <4CC8291E.1060002@FreeBSD.org> Date: Wed, 27 Oct 2010 16:29:02 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Alexander Best References: <201009161742.24228.tijl@coosemans.org> <201009161619.o8GGJAmv035378@lurza.secnetix.de> <20101018155944.GA12425@freebsd.org> <868w1r92rf.fsf@ds4.des.no> <20101021122110.GA65490@freebsd.org> <86zku77mj6.fsf@ds4.des.no> <20101021135442.000054c9@unknown> <20101021134114.GB72290@freebsd.org> <20101027124113.GA6206@freebsd.org> <20101027125453.GA8433@freebsd.org> In-Reply-To: <20101027125453.GA8433@freebsd.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Bruce Cran , Tijl Coosemans , Oliver Fromme , freebsd-hackers@freebsd.org, Garrett Cooper , =?ISO-8859-15?Q?Dag-Erling_Sm=F8rgrav?= Subject: Re: Summary: Re: Spin down HDD after disk sync or before power off X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 13:29:08 -0000 Alexander Best wrote: > On Wed Oct 27 10, Garrett Cooper wrote: >> Why not just be consistent with other interfaces and provide >> suffixes for the values to parse out integral times (i.e. 1 [second], >> 1m, 2h)? As long as the value is behavior is properly documented in >> the manpage (and potentially as examples in the usage message), that >> should be enough. > > that would increase usability, since users don't have to specify large values > in seconds, if they e.g. want the spindown to happen after 24 hours (24*60*60). Largest value that could be set more or less precisely for ATA disks is 5.5hours. Absolute maximum is 12 hours. So 24h interval is just inapplicable. > but this will not solve the real issue: specifying 'atacontrol spindown 1s' > WILL damage your hardware! imo users should be reminded about this even if this > is already mentioned in the manual. I would say "WILL" depends on hardware. And it's reasonability also depends on situation. -- Alexander Motin