Compare commits
2 commits
v1.0
...
developmen
Author | SHA1 | Date | |
---|---|---|---|
178f9a52db | |||
36156104ad |
4
Makefile
4
Makefile
|
@ -3,7 +3,9 @@ LDLIBS := -lutil
|
||||||
|
|
||||||
dump_inode:
|
dump_inode:
|
||||||
|
|
||||||
.PHONY: clean install
|
.PHONY: all clean install
|
||||||
|
all: dump_inode
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f dump_inode
|
rm -f dump_inode
|
||||||
|
|
||||||
|
|
|
@ -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 this way, you can try to dump
|
If you cannot find the inode number of your file another way, you can try to
|
||||||
the whole inode table.
|
dump the whole inode table.
|
||||||
To find your file this way, you need some criteria to identify it e.g. files
|
To identify your file, you need to filter for some criteria e.g. files that are
|
||||||
that are deleted but still open have nlink 0 but a size that is not 0:
|
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 ...
|
||||||
|
|
Loading…
Reference in a new issue