diff options
author | Simon Rettberg | 2023-03-29 12:03:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-13 18:26:42 +0200 |
commit | ec0b9b5f72607335ac19d4ea00c24919943b7970 (patch) | |
tree | faf735a62dff9d88f22c1073b601e5af913cc3e9 /src/cowtest | |
parent | [FUSE] Fixed cow daemon issue (diff) | |
download | dnbd3-ec0b9b5f72607335ac19d4ea00c24919943b7970.tar.gz dnbd3-ec0b9b5f72607335ac19d4ea00c24919943b7970.tar.xz dnbd3-ec0b9b5f72607335ac19d4ea00c24919943b7970.zip |
[FUSE] cow: Cleanup, comments, fixes, minor refactoring
- Use the term "cluster" for a group of dnbd3-blocks instead of also
calling them blocks.
- Use term "table" instead of "array" for the L1 and L2 tables.
- Use term "index" instead of "offset" when addressing those tables
- Fix a few logic bugs, use-after-free
- Add TODOs for parts that need better comments
Diffstat (limited to 'src/cowtest')
-rw-r--r-- | src/cowtest/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowtest/main.c b/src/cowtest/main.c index c2e3161..38d0f16 100644 --- a/src/cowtest/main.c +++ b/src/cowtest/main.c @@ -1,3 +1,5 @@ +#include <dnbd3/config/cow.h> +#include <dnbd3/types.h> #include <fcntl.h> #include <errno.h> #include <stdio.h> @@ -9,7 +11,6 @@ #include <string.h> #include <sys/stat.h> #include <stdint.h> -#include <dnbd3/types.h> #include <stdatomic.h> #include <time.h> #include <pthread.h> |