Re: Suggestion for file type detection approach



Jeffrey Stedfast <fejj ximian com> writes:

> unless someone knows of a way to be sure that there's no cache, it's an
> impossible-to-do-fairly task.

You can mmap() the file, then use mincore() to determine what parts
are loaded. 

But even if you don't do that, the numbers immediately after boot will
be a much better reflection of the first-use numbers than the n'th-run
numbers are. And the first-run numbers are the interesting ones
because nautilus is likely going to be the first one to read the
directory when you open a folder.


Søren



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