From owner-freebsd-questions@FreeBSD.ORG Fri Apr 14 09:13:40 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 29D7A16A400 for ; Fri, 14 Apr 2006 09:13:40 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FA6943D45 for ; Fri, 14 Apr 2006 09:13:39 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 77BD2131E4E; Fri, 14 Apr 2006 18:43:38 +0930 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 5CCE984688; Fri, 14 Apr 2006 18:43:38 +0930 (CST) Date: Fri, 14 Apr 2006 18:43:38 +0930 From: Greg 'groggy' Lehey To: Garrett Cooper Message-ID: <20060414091338.GY44921@wantadilla.lemis.com> References: <443F5CE6.4080107@u.washington.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="npbjE3dh3wBH6WIP" Content-Disposition: inline In-Reply-To: <443F5CE6.4080107@u.washington.edu> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: freebsd-questions@freebsd.org 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 09:13:40 -0000 --npbjE3dh3wBH6WIP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --npbjE3dh3wBH6WIP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFEP2fCIubykFB6QiMRAqw+AJ0YngBE5MHss46RVY/migXrK2clgQCcC0mr /P2gN82Rs4JkbYAki2Au9Mk= =H5Pg -----END PGP SIGNATURE----- --npbjE3dh3wBH6WIP--