Skip to content

Commit

Permalink
lockcd: Ensure that the base path is created
Browse files Browse the repository at this point in the history
It's /sys/fs/bpf/lockc by default, which of course doesn't exists on
fresh systems.

Signed-off-by: Michal Rostecki <[email protected]>
  • Loading branch information
vadorovsky committed Apr 1, 2022
1 parent 99841c4 commit 65ed2ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lockc/src/bin/lockcd.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env, path, thread};
use std::{env, fs, path, thread};

use anyhow::Result;
use clap::Parser;
Expand Down Expand Up @@ -58,6 +58,7 @@ async fn ebpf(
.join("fs")
.join("bpf")
.join("lockc");
fs::create_dir_all(&path_base)?;

let mut bpf = load_bpf(&path_base)?;

Expand Down

0 comments on commit 65ed2ab

Please sign in to comment.