Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    68
    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:
    43,659
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    cPanel uses bind mounts, not hard links, to set up the user's files under /home/virtfs.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice