Re:what are some alternative path methods(like C:\ /linux)
Posted: Sat Jul 22, 2006 2:34 pm
The point was more on allowing directories to be hardlinked. Current Unix doesn't allow you to, since it would seriously confuse some older tools and since you could make problems with it.evincarofautumn wrote:I realise that there could be a problem with circular references if a directory kept a reference to itself. The thing that would prevent such circular references from becoming a problem is that data blocks keep a list of references to the blocks that reference them.Also, will you allow it for directories? That gives a problem when you link a directory into itself, creating a loop, and even more when you subsequently delete the first (entry of loop) entry. You'd be stuck with a directory loop that would never be freed, because it always pointed to itself for use.
The one I was aiming at specifically was the expanded link-to-self problem, what if you have a chain of objects that in the end point to the first? Then, if you unlink the link you had it'll be lost forever. This is a problem that's also experienced by garbage collecting memory allocator designers, since they also can't garbage collect a block if it's in a circular reference. Their common solution is to ignore the problem and to make a last-resort GC that checks all links and freezes the program for some seconds.
If you do that on a 250GB disk, or worse, on a RAID system of 4TB, you could be freezing the computer for minutes to hours.