Skip to content

Commit

Permalink
Always append important pil4dfs env variables.
Browse files Browse the repository at this point in the history
Whitelist mode is on by default. "export D_IL_INTERCEPTION_ON=1" to force
interception always on.

Features: pil4dfs

Required-githooks: true
Skipped-githooks: codespell

Signed-off-by: Lei Huang <[email protected]>
  • Loading branch information
wiliamhuang committed Sep 1, 2024
1 parent 33a28a4 commit 4e43a45
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 216 deletions.
7 changes: 0 additions & 7 deletions docs/user/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -1031,13 +1031,6 @@ $ export D_IL_BYPASS_LIST="app_a:app_b:app_c:app_d"
Fake file descriptor (FD) is used in regular mode in libpil4dfs.so for efficiency. open() returns fake fd to applications. In cases of some APIs are not intercepted, applications could crash with the error "Bad File Descriptor". Compatible mode is provided to work around such situations.
Setting env "D_IL_COMPATIBLE=1" turns on compatible mode. Kernel fd allocated by dfuse instead of fake fd will be returned to applications. This mode provides better compatibility with degraded performance in open, openat, and opendir, etc. Please start dfuse with "--disable-caching" to disable caching before using compatible mode.

### Child Process Inheritance

Normally child processes inherit environmental variables from parent processes. In rare cases, e.g.
scons, envs are striped off when calling execve(). It might be useful to force pil4dfs related env
set in child processes by setting env "D_IL_ENFORCE_EXEC_ENV=1". This flag is 0 if not set.


### Directory caching

To improve performance, directories are cached in a hash table. The size of this hash table could
Expand Down
Loading

0 comments on commit 4e43a45

Please sign in to comment.