eppure anche le directory sembrano avere un inode... e pure degli hard
link ( . e .. )
http://linuxgazette.net/issue93/tag/2.html
USER'S (including 'root') are forbidden to create additional hard
links because this would make fsck much more difficult to implement
and it might allow one to create hard link loops, and dangling sub
trees.
Basically the directory linkages are maintained by the filesystem
to glue the whole tree together, to ensure that it is truly an acyclic
tree structure with a single root.
In other words it's a policy enforced by the kernel. Some other
UNIX systems have allowed root to create hardlinked directories; and
it could be done with a disk editor like LDE under Linux (though I'd
expect fsck to complain the next time it was run --- and if you did
something degenerate you might cause some interesting problems ---
possibly even cause the kernel to treat the fs as corrupt and invoke
it's handler (remount,ro, panic, or continue) and possibly even cause
some kernel threads to run amok or panic the system.
Davide
"interesting problems" :)
> possibly even cause the kernel to treat the fs as corrupt and invoke
> it's handler (remount,ro, panic, or continue) and possibly even cause
> some kernel threads to run amok or panic the system.
>
> Davide
un'altro piccolo pezzetto del grande puzzle...
grazie 1000