[6.3.2] shfs hardlink support bug


2 posts in this topic Last Reply

Recommended Posts

shfs is not accurately displaying hard link information

 

When accessing a hardlink file through shfs it is showing up twice in ls/du/etc.

 

root@Tower:/mnt/user/Test# du -h
5.3G	./Dir1
5.3G	./Dir2
11G	.

root@Tower:/mnt/user/Test# ls -i Dir1/File1
142 Dir1/File1
root@Tower:/mnt/user/Test# ls -i Dir2/Hardlink 
562 Dir2/Hardlink

But if you go to the disk itself...

 

root@Tower:/mnt/disk1/Test# ls -i Dir1/File1 
102 Dir1/File1
root@Tower:/mnt/disk1/Test# ls -i Dir2/Hardlink 
102 Dir2/Hardlink

However df -h reports the disk space usage correctly.

 

Thank you!

Link to post

Right, nothing we can do about that one.  The inode number displayed via /mnt/user refers to FUSE node-id which is not a real inode.  It's a transient memory structure that exists for a short amount of time (or if NFS enabled, for the 'fuse_remember' time period specified in Settings/NFS).

 

Is this breaking some application?

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.