3 ms·
> or just an inode? But then how is inode re-use handled? inodes have generations. Each reuse increments generation. (ino, generation) tuple uniquely identifie
by blattimwind 8y ago
> or just an inode? But then how is inode re-use handled?
inodes have generations. Each reuse increments generation. (ino, generation) tuple uniquely identifies an object within the file system.
- avar 8y agoThanks. I was wrong about that, I was confusing this with PID re-use.
- dchest 8y agoThis is correct, however generation is mostly needed (and was created) for NFS, and rarely used for anything else. Unveal lives in kernel, it just keeps a reference to vnode (https://github.com/openbsd/src/blob/03249988e9bbffb48a56883955bda316855561b9/sys/sys/proc.h#L428-L433 https://github.com/openbsd/src/blob/03249988e9bbffb48a568839...)