Re: UTF-8 and case-insensitivity

From: Helge Hafting
Date: Thu Feb 19 2004 - 05:08:47 EST


tridge@xxxxxxxxx wrote:
Ted,

> Actually, not necessarily. What if Samba gets notifications of all
> filename renames and creates in the directory, so that after the
> initial directory scan, it can keep track of what filenames are
> present in the directory? It can then "prove the negative", as you
> put it, without having to continuously do directory scans.

Currently dnotify doesn't give you the filename that is being
added/deleted/renamed. It just tells you that something has happened,
but not enough to actually maintain a name cache in user space.

You can still keep per-directory caches that you simply invalidate on each dnotify,
and rebuild when necessary. At least it would help the "repeated
lookup of nonexistant filenames" case. Path searches for executables usually happens on directories that don't see much writing.

Helge Hafting

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/