Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Prerequisites
*.d
# But not *.d directories!
!*.d/

# Object files
*.o
Expand Down Expand Up @@ -53,4 +55,12 @@ Mkfile.old
dkms.conf

# Other
mkfs/test.img
mkfs/test.img
compile_commands.json

# mkosi stuff
homedir/
*.local.conf
mkosi.local/*
mkosi.key
mkosi.crt
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ You can build the kernel module for your currently running kernel with `make`. I

This code was tested on a 6.5.7 kernel.

### Building with mkosi-kernel
You can compile this project using mkosi.
For this, please install the latest upstream versions of mkosi and mkosi-kernel
and copy and update the `mkosi.conf.d/20-paths.conf.sample` file.

### Formatting a partition
First, build `mkfs.ouichefs` from the mkfs directory. Run `mkfs.ouichefs img` to format img as a ouiche_fs partition. For example, create a zeroed file of 50 MiB with `dd if=/dev/zero of=test.img bs=1M count=50` and run `mkfs.ouichefs test.img`. You can then mount this image on a system with the ouiche_fs kernel module installed.

Expand Down
6 changes: 6 additions & 0 deletions kbuild-config/Kbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# We want to build this as if it were an in-tree module.
# To this end we mount this file under the lkp/Kbuild in the kernel sources
# and the rest of the repo under lkp/ouichefs/.
# From there, this Kbuild file will be included in the kernel build process.
# This requires that you already have added lkp/ to your Kbuild file in the kernel sources
obj-y += ouichefs/
Loading