On Sun, 4 May 2008, leno wrote: > mv /export/home/us/oldfile /export/home/us/newfile > but rename(2) never update cache path. v_path = /export/home/us/oldfile. > help me...,how about update caceh path?
Why do you need that ? v_path is _NOT_ the cached path used for name lookups via system call. It's the pathname the vnode had when it was first initialized. Doing a rename() syscall does not preserve that. There's a request for enhancement pending that asks to have rename() update v_path. Question is - what's gained by that, compared to what it will cost to do that ? FrankH. _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org