Skip to content

Commit

Permalink
Adjust file write flags
Browse files Browse the repository at this point in the history
  • Loading branch information
elliott10 committed Apr 19, 2024
1 parent 64c8da3 commit 238d3a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/src/ext4fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,7 @@ impl VfsNodeOps for FileWrapper {
let mut file = self.0.borrow_mut();
let path = file.get_path();
let path = path.to_str().unwrap();
//file.file_open(path, O_RDWR)?;
file.file_open(path, O_RDWR | O_CREAT | O_APPEND)?;
file.file_open(path, O_RDWR)?;

file.file_seek(offset as i64, SEEK_SET)?;
let r = file.file_write(buf);
Expand Down

0 comments on commit 238d3a2

Please sign in to comment.