Commit Graph

5 Commits

Author SHA1 Message Date
ff6a8713d3 Removed useless comments from main.c. 2024-11-20 10:35:58 +01:00
8fcfebe3f9 Implemented getattr and source_stat.
Now filesystem implements getattr through source_stat,
which is a wrapper for an fstatat with
`dirfd == handle.root_path`.
2024-11-20 10:32:33 +01:00
e48cbc62f1 Added source files initialization.
Now source files handling is delegated to functions defined
in `sourcefs.c` file. By encapsulating methods for managing
the underlying source files structure we ensure that all
code changes to the source file protection strategy will be
localized to `sourcefs.c` file.

Also changed Makefile to use more sane way of handling
options and build flags.
2024-11-20 09:28:20 +01:00
64aee2d9e5 Moved from C++ to C.
After some consideration I decided to use C instead of C++ because:
* `libfuse` is written in C.
* C is simpler.
* My original concerns with using C turned out to be BS.
2024-11-18 18:42:52 +01:00
560bf8a7e0 Added main and .gitignore 2024-11-17 20:23:57 +01:00