Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
Signed-off-by: Monthon Klongklaew <monthonk@amazon.com>
  • Loading branch information
monthonk committed Jul 14, 2023
1 parent 99d6ed7 commit 446e5a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mountpoint-s3/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,10 @@ where
let handle_type = if flags & libc::O_RDWR != 0 {
let remote_file = lookup.inode.is_remote()?;
if remote_file {
trace!("fs:open choosing read handle for O_RDWR");
FileHandleType::new_read_handle(&lookup).await?
} else {
trace!("fs:open choosing write handle for O_RDWR");
FileHandleType::new_write_handle(&lookup, ino, flags, self).await?
}
} else if flags & libc::O_WRONLY != 0 {
Expand Down

0 comments on commit 446e5a0

Please sign in to comment.