Re: [PATCH] eventfs: Have inodes have unique inode numbers

Steven Rostedt
2024-01-29T00:21:14Z

On Sun, 28 Jan 2024 18:59:43 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:

> > - somebody is still using it (you can 'rmdir()' a directory that some
> > other process has as its cwd, for example), which keeps it alive and
> > active anyway
>
> Wouldn't it be bad if the dentry hung around after the rmdir. You don't
> want to be able to access files after rmdir has finished.

And thinking about this more, this is one thing that is different with
eventfs than a normal file system. The rmdir in most cases where
directories are deleted in eventfs will fail if there's any open files
within it.

eventfs doesn't itself enforce this, but the users of eventfs do.

-- Steve