Tweeted twitter.com/StackUnix/status/1105755545519173633
2 deleted 2 characters in body
source | link

If I know the index node (inode) of a file, but I don't know it'sits path (or any of it'sits paths), is it possible to create a hard link to that inode directly?

I could find the file using sudo find / -inum 123546 and then create a hardlink, but that would be way too slow for my application.

N.B. I'm using an ext4 filesystem.

If I know the index node (inode) of a file, but I don't know it's path (or any of it's paths), is it possible to create a hard link to that inode directly?

I could find the file using sudo find / -inum 123546 and then create a hardlink, but that would be way too slow for my application.

N.B. I'm using an ext4 filesystem.

If I know the index node (inode) of a file, but I don't know its path (or any of its paths), is it possible to create a hard link to that inode directly?

I could find the file using sudo find / -inum 123546 and then create a hardlink, but that would be way too slow for my application.

N.B. I'm using an ext4 filesystem.

    Became Hot Network Question
1
source | link

How to create a hard link to an inode (ext4)?

If I know the index node (inode) of a file, but I don't know it's path (or any of it's paths), is it possible to create a hard link to that inode directly?

I could find the file using sudo find / -inum 123546 and then create a hardlink, but that would be way too slow for my application.

N.B. I'm using an ext4 filesystem.