Skip to content

Commit

Permalink
fix: temporarily remove lwext4_rust
Browse files Browse the repository at this point in the history
  • Loading branch information
PKTH-Jx committed Mar 4, 2025
1 parent e3fdd09 commit e14b5fb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 23 deletions.
10 changes: 0 additions & 10 deletions 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 api/ruxfeat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ blkfs = ["ruxdriver/virtio-blk", "ruxruntime/blkfs", "ruxfs/blkfs"]
myfs = ["ruxfs?/myfs"]
9pfs = []
fatfs = ["ruxfs?/fatfs"]
lwext4_rust = ["ruxfs?/lwext4_rust"]
# lwext4_rust = ["ruxfs?/lwext4_rust"]
ext4_rs = ["ruxfs?/ext4_rs"]
another_ext4 = ["ruxfs?/another_ext4"]

Expand Down
4 changes: 2 additions & 2 deletions modules/ruxfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sysfs = ["dep:axfs_ramfs"]
etcfs = ["dep:axfs_ramfs"]
blkfs = []
fatfs = ["blkfs", "dep:fatfs"]
lwext4_rust = ["blkfs", "dep:lwext4_rust"]
# lwext4_rust = ["blkfs", "dep:lwext4_rust"]
ext4_rs = ["blkfs", "dep:ext4_rs"]
another_ext4 = ["blkfs","dep:another_ext4"]
myfs = []
Expand All @@ -46,7 +46,7 @@ crate_interface = { version = "0.1.1" }
ruxdriver = { path = "../ruxdriver", features = ["block"] }
axalloc = { path = "../axalloc", optional = true }
memory_addr = "0.1.0"
lwext4_rust = { git = "https://github.com/elliott10/lwext4_rust", optional = true }
# lwext4_rust = { git = "https://github.com/elliott10/lwext4_rust", optional = true }
ext4_rs = { git = "https://github.com/yuoo655/ext4_rs.git", rev= "6bcc7f5", optional = true }
another_ext4 = { git = "https://github.com/LJxTHUCS/another_ext4.git", optional = true }

Expand Down
4 changes: 2 additions & 2 deletions modules/ruxfs/src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ cfg_if::cfg_if! {
pub mod myfs;
} else if #[cfg(feature = "fatfs")] {
pub mod fatfs;
} else if #[cfg(feature = "lwext4_rust")] {
pub mod lwext4_rust;
// } else if #[cfg(feature = "lwext4_rust")] {
// pub mod lwext4_rust;
} else if #[cfg(feature = "ext4_rs")] {
pub mod ext4_rs;
} else if #[cfg(feature = "another_ext4")] {
Expand Down
14 changes: 7 additions & 7 deletions modules/ruxfs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ cfg_if::cfg_if! {
} else if #[cfg(feature = "fatfs")] {
use lazy_init::LazyInit;
use alloc::sync::Arc;
} else if #[cfg(feature = "lwext4_rust")] {
use lazy_init::LazyInit;
use alloc::sync::Arc;
// } else if #[cfg(feature = "lwext4_rust")] {
// use lazy_init::LazyInit;
// use alloc::sync::Arc;
} else if #[cfg(feature = "ext4_rs")] {
use lazy_init::LazyInit;
use alloc::sync::Arc;
Expand Down Expand Up @@ -100,10 +100,10 @@ pub fn init_blkfs(mut blk_devs: AxDeviceContainer<AxBlockDevice>) -> MountPoint
FAT_FS.init_by(Arc::new(fs::fatfs::FatFileSystem::new(disk)));
FAT_FS.init();
let blk_fs = FAT_FS.clone();
} else if #[cfg(feature = "lwext4_rust")] {
static EXT4_FS: LazyInit<Arc<fs::lwext4_rust::Ext4FileSystem>> = LazyInit::new();
EXT4_FS.init_by(Arc::new(fs::lwext4_rust::Ext4FileSystem::new(disk)));
let blk_fs = EXT4_FS.clone();
// } else if #[cfg(feature = "lwext4_rust")] {
// static EXT4_FS: LazyInit<Arc<fs::lwext4_rust::Ext4FileSystem>> = LazyInit::new();
// EXT4_FS.init_by(Arc::new(fs::lwext4_rust::Ext4FileSystem::new(disk)));
// let blk_fs = EXT4_FS.clone();
} else if #[cfg(feature = "ext4_rs")] {
static EXT4_FS: LazyInit<Arc<fs::ext4_rs::Ext4FileSystem>> = LazyInit::new();
EXT4_FS.init_by(Arc::new(fs::ext4_rs::Ext4FileSystem::new(disk)));
Expand Down
2 changes: 1 addition & 1 deletion ulib/axstd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ virtio-9p = ["ruxfeat/virtio-9p"]
virtio_console = ["ruxfeat/virtio_console"]
net-9p = ["ruxfeat/net-9p"]
fatfs = ["blkfs", "ruxfeat/fatfs"]
lwext4_rust = ["blkfs", "ruxfeat/lwext4_rust"]
# lwext4_rust = ["blkfs", "ruxfeat/lwext4_rust"]
ext4_rs = ["blkfs", "ruxfeat/ext4_rs"]
another_ext4 = ["blkfs", "ruxfeat/another_ext4"]

Expand Down

0 comments on commit e14b5fb

Please sign in to comment.