Why can't files be manipulated by inode?

前端 未结 5 1341
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条回答
  •  -上瘾入骨i
    2020-12-09 09:23

    Btrfs does have an ioctl for that (BTRFS_IOC_INO_PATHS added in this patch), however it does no attempt to check permissions along the path, and is simply reserved to root.

提交回复
热议问题