From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 27 04:43:09 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 00E771065676 for ; Wed, 27 Jan 2010 04:43:09 +0000 (UTC) (envelope-from mozolevsky@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id 88CAD8FC2D for ; Wed, 27 Jan 2010 04:43:08 +0000 (UTC) Received: by ewy10 with SMTP id 10so821446ewy.3 for ; Tue, 26 Jan 2010 20:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=dJuowWH7txyjRavuZiNAJ4h0pRHfibYSaOqnA72o5E0=; b=UXV+15KkykAb9WhCvFaqzkusUchi/uYDrSKXkYup+MNoKbu/9sDaRzOWta8aM3Tgf0 SHF1lxpRbavxBpJ8l8KpYVHjwB3scXTwSDJCMCOK6ufObXKLJXBDhoHzKr6VCkRb9L/O 22eHnBzzXqPTwqtWH07QPGxgw1RlkyB+rvbMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=AtVLsQyjvwpmmnHyU2exoBzJWGhXaGBcOOFJI4U7b24EpufWsA8WJoEPKB8Nj12MZm VBOKBfh71TTFCEbchuStDCEo5btEwlnya4fBKeys45e0muU1CbT21QNzvzaJVABJBbuV 2lIvf4iiW8Gwv87UpZV7Hm1SE/EvEJEkylgKY= MIME-Version: 1.0 Sender: mozolevsky@gmail.com Received: by 10.213.15.19 with SMTP id i19mr4858037eba.65.1264567387221; Tue, 26 Jan 2010 20:43:07 -0800 (PST) In-Reply-To: References: From: Igor Mozolevsky Date: Wed, 27 Jan 2010 04:42:47 +0000 X-Google-Sender-Auth: ffa19f6b2b59f552 Message-ID: To: Alexander Best Content-Type: text/plain; charset=UTF-8 Cc: freebsd-hackers@freebsd.org Subject: 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 Jan 2010 04:43:09 -0000 2010/1/26 Alexander Best : > attached you'll find a very simple patch which issues ATA_STANDBY_IMMEDIATE > instead of ATA_FLUSHCACHE during hdd spin down. Hold on, does STANDBY IMMEDIATE not abort the previous command within some short timeframe? What if there are pending writes? Cheers, -- Igor