Skip to content

Commit

Permalink
feat(write-sd): enable write back to disk now
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenRuiwei committed Aug 19, 2024
1 parent cb524a2 commit 14f407f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ltp/
testcase/24/final_no_ltp
target/
rootfs/
old_rootfs/
third-party/vendor/
crates/virtio-drivers/
crates/lwext4_rust/
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/ext4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ systype = { path = "../systype/" }
log = "0.4"
downcast-rs = { version = "1.2", default-features = false }
async-trait = "0.1"
lwext4_rust = { git = "https://github.com/ChenRuiwei/lwext4_rust.git", rev = "293f" }
lwext4_rust = { git = "https://github.com/ChenRuiwei/lwext4_rust.git", rev = "fb4e" }
# lwext4_rust = { path = "../../crates/lwext4_rust/" }
4 changes: 2 additions & 2 deletions modules/vfs-core/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ pub trait File: Send + Sync + DowncastSync {
"[File::write_at] write beyond file, offset_it:{offset_it}, size:{}",
self.size()
);
// self.base_write_at(self.size(), &buf[self.size() - offset..])
// .await?;
self.base_write_at(self.size(), &buf[self.size() - offset..])
.await?;
let old_size = self.size();
let new_size = offset_it;
// let virtio_blk = device
Expand Down
2 changes: 0 additions & 2 deletions testcase/24/final/run_ltp.sh → testcase/24/final/run-ltp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
./test-ltp.sh ltp/testcases/bin/futex_wait04
./test-ltp.sh ltp/testcases/bin/futex_wake01
./test-ltp.sh ltp/testcases/bin/genload
./test-ltp.sh ltp/testcases/bin/genlog10
./test-ltp.sh ltp/testcases/bin/getcontext01
./test-ltp.sh ltp/testcases/bin/getcwd01
./test-ltp.sh ltp/testcases/bin/getcwd02
Expand Down Expand Up @@ -182,7 +181,6 @@
./test-ltp.sh ltp/testcases/bin/memset01
./test-ltp.sh ltp/testcases/bin/mincore02
./test-ltp.sh ltp/testcases/bin/mincore03
./test-ltp.sh ltp/testcases/bin/mincore04
./test-ltp.sh ltp/testcases/bin/mkdir04
./test-ltp.sh ltp/testcases/bin/mkdirat01
./test-ltp.sh ltp/testcases/bin/mknod09
Expand Down

0 comments on commit 14f407f

Please sign in to comment.