Re: [RFC PATCH -v4 00/14] fsnotify, dnotify, and inotify

From: Al Viro
Date: Thu Dec 25 2008 - 15:34:30 EST


On Thu, Dec 25, 2008 at 01:17:28PM -0500, C. Scott Ananian wrote:
> getcwd doesn't actually hold a file descriptor to the working
> directory. If you reread my message, you'll find that I was explicit
> about where the information was stored.

Indeed - explicit, persistent and wrong. For current directory of a process
we store vfsmount and dentry. And use those in getcwd() rather than playing
hopeless games with inodes.
--
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/