Compare commits

..

No commits in common. "development" and "v1.0" have entirely different histories.

2 changed files with 5 additions and 7 deletions

View file

@ -3,9 +3,7 @@ LDLIBS := -lutil
dump_inode: dump_inode:
.PHONY: all clean install .PHONY: clean install
all: dump_inode
clean: clean:
rm -f dump_inode rm -f dump_inode

View file

@ -103,10 +103,10 @@ has always inode number 2:
Note, that the listing of deleted entries is based on heuristics and might be Note, that the listing of deleted entries is based on heuristics and might be
spurious. spurious.
.Pp .Pp
If you cannot find the inode number of your file another way, you can try to If you cannot find the inode number of your file this way, you can try to dump
dump the whole inode table. the whole inode table.
To identify your file, you need to filter for some criteria e.g. files that are To find your file this way, you need some criteria to identify it e.g. files
deleted but still open have nlink 0 but a size that is not 0: that are deleted but still open have nlink 0 but a size that is not 0:
.Pp .Pp
.Dl # dump_inode -a sd1k | grep nlink:0 | grep -v size:0 .Dl # dump_inode -a sd1k | grep nlink:0 | grep -v size:0
.Dl ... .Dl ...