A case for variant symlinks
A case for variant symlinks
Posted Mar 30, 2016 2:02 UTC (Wed) by Cyberax (✭ supporter ✭, #52523)In reply to: A case for variant symlinks by viro
Parent article: A case for variant symlinks
Well, I didn't say it's easy or efficient.
I personally wouldn't mind hardlinked directories (I can see where they can be handy), but then I also want O_PONIES.
> You just need to verify that you do not attempt to make a node its own descendent, which is trivial if you keep track of the (only) chain of ancestors.
But that holds just as well for the multi-hardlinked directories. To avoid cycles the FS has to uphold the invariant "no links from a directory to any of its parent directories". It doesn't require full tree scanning.
If loops _are_ allowed then I'm pretty sure the filesystem will require a tracing garbage collector.
