In Linux Operaing System, Can two files have same inode number Explain with reason?


  • 1
    W

    Asked at : Vmware interview
    Yes , In linux kernel Inode numbers are filesystem-specific and are created to index files locally. There is no mechanism for filesystems to coordinate across partitions and devices and future-connected devices to decide unique inode numbers. A file is identified by first
    identifying the device and an inode within the device. therefore two files on different devices or partitions can have same inode number.


  • 4
    F

    Hardlink is a good example.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.