On Mon, 7 Jan 2002, William A. Rowe, Jr. wrote: > From: "Sander van Zoest" <[EMAIL PROTECTED]> > Sent: Monday, January 07, 2002 12:48 PM > > So, you are saying that I can create an apache httpd daemon where it would never >make a > > stat(2) in the default DocumentRoot directory? > > If so, let me know how, because that would be really useful. > As Ryan suggested, you can do that _today_ if you are the module author. > Catch the map_to_storage hook, say HOOK_MIDDLE, and return OK if the request matches > your module's critera. > Since map_to_storage is run-first, your OK will confirm that it finished configuring > the r->per_dir_config, and dir_walk/file_walk are skipped (they are HOOK_LAST). > If you aren't the module author, you have to wait for us to finish debating this >patch, > and for Sander to grok the 'unset' directive :)
Okay. So, in my last example, we could alter mod_status.c to use the map_to_storage hook to avoid all the stats(2). Sounds great, I wasn't aware of that. Thanks, -- Sander van Zoest [EMAIL PROTECTED] High Geek http://Sander.vanZoest.com/