Re: Discovering list of open files from "kernel level" without using utils like lsof

2007-04-10 Thread soralx
good_localtime(all); > I'm thinking of changing "spinning down" to "adjusting acoustics > level", i.e. reduce spindle speed to avoid pricey spin-downs, which > may cause long-term serious damage to disks. Whoa, hold your horses. Recall that the friction between air and rotating plates inside you

Re: Discovering list of open files from "kernel level" without using utils like lsof

2007-04-09 Thread youshi10
On Mon, 9 Apr 2007, Rick C. Petty wrote: On Sun, Apr 08, 2007 at 11:05:48AM -0700, Garrett Cooper wrote: I'm trying to see if there's a simple tool that I could code in C/C++ if necessary to spin down disks automatically to save power and disk life. Plus, I think that lsof actually w

Re: Discovering list of open files from "kernel level" without using utils like lsof

2007-04-09 Thread Rick C. Petty
On Sun, Apr 08, 2007 at 11:05:48AM -0700, Garrett Cooper wrote: > I'm trying to see if there's a simple tool that I could code in C/C++ > if necessary to spin down disks automatically to save power and disk > life. Plus, I think that lsof actually would probe the devices and 'wake > them up'

Re: Discovering list of open files from "kernel level" without using utils like lsof

2007-04-09 Thread youshi10
On Mon, 9 Apr 2007, Dan Nelson wrote: In the last episode (Apr 08), Garrett Cooper said: I'm trying to see whether it's possible to grab the list of files open from a kernel level on FreeBSD, using a userland library interface as opposed to lsof. I'm trying to see if there's a s

Re: Discovering list of open files from "kernel level" without using utils like lsof

2007-04-09 Thread youshi10
On Mon, 9 Apr 2007, David Malone wrote: On Sun, Apr 08, 2007 at 11:05:48AM -0700, Garrett Cooper wrote: I'm trying to see whether it's possible to grab the list of files open from a kernel level on FreeBSD, using a userland library interface as opposed to lsof. Have a look at the sour

Re: Discovering list of open files from "kernel level" without using utils like lsof

2007-04-09 Thread Dan Nelson
In the last episode (Apr 08), Garrett Cooper said: > I'm trying to see whether it's possible to grab the list of > files open from a kernel level on FreeBSD, using a userland library > interface as opposed to lsof. > I'm trying to see if there's a simple tool that I could code in > C/C+

Discovering list of open files from "kernel level" without using utils like lsof

2007-04-08 Thread Garrett Cooper
Hello, I'm trying to see whether it's possible to grab the list of files open from a kernel level on FreeBSD, using a userland library interface as opposed to lsof. I'm trying to see if there's a simple tool that I could code in C/C++ if necessary to spin down disks automatically to