This will allow user-space programs (e.g. lsof) to locate deleted files
whose nlink equals to zero. Prior to this commit, programs has to use
stat(kf_path) to get nlink, but that will fail if the file is deleted.
Details
Details
Tested the patch with changes in lsof to list deleted files.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Huh, I did not even realize this information was missing.
I'll probably commit in a day or two. Can you show me the matching lsof diff if you have it ready?
Comment Actions
Sure, you can find it at https://github.com/lsof-org/lsof/commit/4e0aaacf290133859d0f5ac205311079bc9fb170
Comment Actions
can you send me the commit generated with git format-patch so that I have something nice to apply? mjg@
I would change "Number of references to file." to "Link count." but I'm not going to insist.