Hello hackers... I just wondering... Now we got problems with caching, and problems could be seriuos in -CURRENT when we want to use some TrustedBSD features, etc. Sometimes there is NEED to get filename (or full path) from vnode to log selected behaviour or many other useful things (for example property working __getcwd()). For now we could get pathname from cache, but not always it is possible.
My sugestion is to add some flags that will describe priority of cached objects. Objects with some flag should be removed from cache only when it's really necessary. This flag should be set for: - working directory of every process (p->p_fd->fd_cdir), - filename of executable (p->p_textvp), - filenames of all opened files )p->p_fd->fd_ofiles[X]->f_data). - maybe something else? On every [f]chdir(), our flag should be removed from actual object and set on new one. Exactly that same for execve() and exit1() and for open() and p->p_fd->fd_ofiles[X]->f_ops->fo_close(). This don't have to be done via VFS caching mechanism, this could also be made by some separated mechanism used only for this. Think over this, please! -- Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message