Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2006 12:35:23 -0700
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        "Greg 'groggy' Lehey" <grog@FreeBSD.org>, freebsd-questions@freebsd.org
Subject:   Re: Determining whether or not a SCSI disk is in use
Message-ID:  <443FF97B.6000303@u.washington.edu>
In-Reply-To: <20060414091338.GY44921@wantadilla.lemis.com>
References:  <443F5CE6.4080107@u.washington.edu> <20060414091338.GY44921@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443FF97B.6000303>