The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

virtfs hard links orphans

Discussion in 'General Discussion' started by santrix, Dec 27, 2013.

  1. santrix

    santrix Well-Known Member

    Joined:
    Nov 30, 2008
    Messages:
    223
    Likes Received:
    2
    Trophy Points:
    18
    I'm having a brain fart regarding ls - my understanding was the ls -l 2nd column gives the number of links to the file

    I see this, which seems to indicate only one hard link TO each file - kind of makes sense.

    -rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user1/usr/tmpDSK
    -rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user2/usr/tmpDSK
    -rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user3/usr/tmpDSK
    -rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user4/usr/tmpDSK
    -rw------- 1 root root 4194304000 Jan 26 2012 /home/virtfs/user5/usr/tmpDSK

    However, the above all share the same inode number on the server (Centos 5.9 Cloudlinux). So when I look at the 'source file' - i.e. with the same inode number:

    -rw------- 1 root root 4194304000 Jan 26 2012 /usr/tmpDSK

    It shows again only 1 link to it. Shouldn't it show 6 ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page