Skip to content

Commit

Permalink
fix log level. add new Docker file for deb to be compatible with macO…
Browse files Browse the repository at this point in the history
…S too
  • Loading branch information
radumarias committed Dec 5, 2024
1 parent 9acc7ae commit 364bcfd
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 9 deletions.
28 changes: 28 additions & 0 deletions Dockerfile-deb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Use the official Rust image as a base
FROM rust:latest

# Set the working directory inside the container
WORKDIR /usr/src/app

# Copy the current directory's contents to the container
COPY . .

# Install dependencies (if needed)
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
binutils \
build-essential \
ca-certificates \
curl \
file \
g++ \
gcc \
make \
patch \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*

# Build the Rust project
RUN cargo build --release

# Set the command to run the built binary
CMD ["./target/release/rencfs"]
18 changes: 9 additions & 9 deletions src/encryptedfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1677,15 +1677,15 @@ impl EncryptedFs {
buf.len()
);
}
warn!(
"written uncommited for {ino} size {}",
self.sizes_write
.lock()
.await
.get(&ino)
.unwrap()
.load(Ordering::SeqCst)
);
// warn!(
// "written uncommited for {ino} size {}",
// self.sizes_write
// .lock()
// .await
// .get(&ino)
// .unwrap()
// .load(Ordering::SeqCst)
// );

Ok(len)
}
Expand Down

0 comments on commit 364bcfd

Please sign in to comment.