hpc / hpc/mpifileutils

How to detect hardlinks?

Open
#336 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
200
Forks
85
Avg merge
3d 21h
Merged PRs (30d)
2

Description

We would like to use dfind in combination with dwalk to find hardlinks.
The dfind command line tool does not provide this option as of now.
I am wondering how difficult it would be to add this feature?
As far as I can tell, dwalk uses stat to retrieve information about a file/directory which is used for some filters (gid, atime, etc).
Is the entire stat struct stored in the binary output of dwalk ? (the text output does not contain it)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the dfind and dwalk command-line entry points, then inspect how stat metadata is collected and represented in dwalk's binary and text output. Define how hardlinks should be identified and exposed by dfind, and verify the behavior with the project's existing command-line checks; the issue names no specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.