Why can't files be manipulated by inode?

前端 未结 5 1364
Happy的楠姐
Happy的楠姐 2020-12-09 08:34

Why is it that you cannot access a file when you only know its inode, without searching for a file that links to that inode? A hard link to the file contains nothing but a n

5条回答
  •  不知归路
    2020-12-09 09:16

    In response to your comment: To "pass a file", you can use fd passing over AF_LOCAL sockets by means of SCM_RIGHTS (see man 7 unix).

提交回复
热议问题