Re: Getting a list of open files, the smart way?



On 5/15/08, Benoît Dejean <benoit placenet org> wrote:
>
>  > Hi,
>  >
>  > I have made a quite simple patch for bug 528559[0], it makes the quite
>  > useless "drive is being used" dialog into a list of applications using
>  > such drive[1].
>  >
>  > I'm using a little hack with lsof, but it's not really reliable, like
>  > when process names are too long. I checked libgtop quickly but the
>  > lack of documentation didn't help.
>  >
>
> > So, I'm writing to get some clues about this, any advice? My main
>  > problem is to do something like "tell me which files in device $d are
>  > in use, and tell me the executable for the process using such file"
>
>
> system-monitor has this using libgtop. feel free to steal the code. i'll
>  answer all your technical questions.
>

I read it but didn't get too far, I'll check again and spam you with
questions. Thanks.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]