Regarding Hard Link

前端 未结 5 1950
谎友^
谎友^ 2021-02-14 09:50

Can somebody please explain me why the kernel doesn\'t allow us to make a hard link to a directory. Whether it is because it breaks the rule of directed acyclic graph structure

5条回答
  •  攒了一身酷
    2021-02-14 10:00

    This is entirely because allowing hard links to directories allows for potential loops and cycles in the directory graph without adding much value.

提交回复
热议问题