[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:
On Sunday 01 June 2003 08:19 pm, escii zer0for0je wrote:
> Hello everyone.
> Thankyou for your reply, I'm going to try explain a bit more of my
> situation so you can get an idea of what im trying to do.
>
> I've wrote a little C program that gets the pid of mpg123, uses lsof
> to find out what mp3 it has open, then mpg123info to get information
> from the mp3, and this end result is dumped to stdout.
>
> THE PROBLEM: the kernel does not store the entire filename in memory
> only a porition of it and inodes and such, so i can only
> properly locate mp3's if thier shorter than N ( N being the
> biggest possible file name without openbsd's kernel truncicating
> it)
>
> Do you have any solutions to my problem, speed is also and issue.
> so searching a entire parition for a certain inode is a bad idea.
>
> Thank you.
Wouldn't the better solution be to take mpg123 and add the code to
print out the file info in there? It should be close to trivial to do that.
Thats the right place for it.
--STeve Andre'
- References:
- No Subject
- From: escii zer0for0je <brendan@escii.org>