From owner-freebsd-questions@FreeBSD.ORG Fri Apr 14 19:35:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5062A16A401; Fri, 14 Apr 2006 19:35:27 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9F7B43D5D; Fri, 14 Apr 2006 19:35:24 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout7.cac.washington.edu (8.13.6+UW06.03/8.13.5+UW06.03) with ESMTP id k3EJZOE2027486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Apr 2006 12:35:24 -0700 X-Auth-Received: from [128.208.4.96] (dzihan.cs.washington.edu [128.208.4.96]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.6+UW06.03/8.13.6+UW06.03) with ESMTP id k3EJZNPV007661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 14 Apr 2006 12:35:24 -0700 Message-ID: <443FF97B.6000303@u.washington.edu> Date: Fri, 14 Apr 2006 12:35:23 -0700 From: Garrett Cooper User-Agent: Mozilla Thunderbird 1.0.6-1.1.1.1vy+fc4a (X11/20050728) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Greg 'groggy' Lehey" , freebsd-questions@freebsd.org References: <443F5CE6.4080107@u.washington.edu> <20060414091338.GY44921@wantadilla.lemis.com> In-Reply-To: <20060414091338.GY44921@wantadilla.lemis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Subject: Re: Determining whether or not a SCSI disk is in use X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 19:35:27 -0000 Greg 'groggy' Lehey wrote: >On Friday, 14 April 2006 at 1:27:18 -0700, Garrett Cooper wrote: > > >>Hello again list, >> Just wondering if there was any way where I could possibly tie into >>the kernel or do something where I could determine whether or not a disk >>is currently 'in use'. >> Problem: I'm trying to spin down my disks periodically via a cronjob >>to save energy, reduce noise, and heat, and I don't want my disk to be >>spun down if it is currently in use. I do listen to music and watch >>videos for extended periods of time, so I'd rather not cause undue >>stress to the hard disks and cause the program I'm using on another >>machine to choke and die. >> >> > >This all depends on what you mean by "in use". Do you mean "recently >accessed"? > >Greg >-- >When replying to this message, please copy the original recipients. >If you don't, I may ignore the reply or reply to the original recipients. >For more information, see http://www.lemis.com/questions.html >See complete headers for address and phone numbers. > > Yes. Recently accessed or is being accessed. -Garrett