Files
ternfs-XTXMarkets/kmod/BUILD.md
Francesco Mazzoli 6addbdee6a First version of kernel module
Initial version really by Pawel, but many changes in between.

Big outstanding issues:

* span cache reclamation (unbounded memory otherwise...)
* bad block service detection and workarounds
* corrupted blocks detection and workaround

Co-authored-by: Paweł Dziepak <pawel.dziepak@xtxmarkets.com>
2023-05-18 15:29:41 +00:00

567 B

To get a compile_commands.json:

  • Call the kmod source dir (where this file is located) $KMOD_DIR
  • Download some version of the linux source (I used linux-5.4.237 to be in line with Ubuntu 20.20), say $LINUX_DIR
  • cd $LINUX_DIR && make LLVM=1 defconfig && make LLVM=1 -j
  • cd $KMOD_DIR && make KDIR=$LINUX_DIR LLVM=1 kmod
  • $LINUX_DIR/scripts/gen_compile_commands.py -d $KMOD_DIR to generate compile_commands.json
  • Replace all occurrences of "directory": $KMOD_DIR with "directory": $LINUX_DIR in the generated $KMOD_DIR/compile_commands.json