Skip to content

Commit 03ad7b1

Browse files
committed
fix ci
1 parent 0698f78 commit 03ad7b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/axfs/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ features = [
3939
"log_level_trace",
4040
"unicode",
4141
]
42-
git = "https://github.com/rafalh/rust-fatfs"
43-
rev = "4eccb50"
42+
git = "https://github.com/Josen-B/rust-fatfs.git"
4443

4544
[dev-dependencies]
4645
axdriver = {workspace = true, features = ["block", "ramdisk"]}

modules/axfs/src/fs/ext4fs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use alloc::boxed::Box;
21
use alloc::string::ToString;
32
use alloc::sync::Arc;
43
use alloc::vec::Vec;

modules/axfs/src/fs/fatfs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ impl FatFileSystem {
104104
pub fn new(mut disk: Disk) -> Self {
105105
let opts = fatfs::FormatVolumeOptions::new();
106106
fatfs::format_volume(&mut disk, opts).expect("failed to format volume");
107-
let inner = fatfs::FileSystem::new(disk, fatfs::FsOptions::new())
107+
let disk_size = disk.size();
108+
let wrapper = PartitionWrapper::new(crate::dev::Partition::new(disk, 0, disk_size / 512));
109+
let inner = fatfs::FileSystem::new(wrapper, fatfs::FsOptions::new())
108110
.expect("failed to initialize FAT filesystem");
109111

110112
Self {

0 commit comments

Comments
 (0)