Hi, here are some features that allowed me to use your program to investigate a damaged ext4 partition. Maybe you want to cherry-pick some of it, if not all.
I don't know if my way of propagating the option values into the methods are optimal or in your taste, let me know.
The "PRIx64" commit should be the best way to do it, but I don't know if it works on your platforms*. It can be squashed with the previous commit if it is fine. The previous commit certainly would work but is less "correct". Just let me know and I can repush this request also.
The "Better explain" is maybe not much better, but I found the original code/comment more difficult to read.
In addition to this I had to add some sanity checks of inodes etc for use with corrupted file systems. I don't know if you are interested in going in this direction with your tool.
*) I tried cross-building with MinGW but hit issues with cpp-utils and sys/mmem.h.
Hi, here are some features that allowed me to use your program to investigate a damaged ext4 partition. Maybe you want to cherry-pick some of it, if not all.
In addition to this I had to add some sanity checks of inodes etc for use with corrupted file systems. I don't know if you are interested in going in this direction with your tool.
*) I tried cross-building with MinGW but hit issues with cpp-utils and sys/mmem.h.